rightscale-cookbooks / ephemeral_lvm

Configures available ephemeral devices on a cloud server

Home Page:http://community.opscode.com/cookbooks/ephemeral_lvm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fstab merge vs overwrite on defaults

shaiguitar opened this issue · comments

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?