Skip to content

fstab merge vs overwrite on defaults #47

@shaiguitar

Description

@shaiguitar

Due to

default['ephemeral_lvm']['mount_point_properties'] = {
options: ["defaults", "noauto"],
pass: 0
}
the cookbook will just merge the chef attributes set and not overwrite them. For example, with:

    "ephemeral_lvm": {
      "mount_point": "/mnt/mongodb",
      "mount_point_properties": { "options": ["defaults", "noatime","auto"], "paas": 0 }
    }

The end result fstab will be:

/dev/mapper/vg--data-ephemeral0 /mnt/mongodb ext4 defaults,noauto,noatime,auto 0 0

instead of having just the auto (and not both merged on top of each other). Is this intended behavior and/or something to do to fix?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions