Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fstab merge vs overwrite on defaults #47

Open
shaiguitar opened this issue May 3, 2016 · 1 comment
Open

fstab merge vs overwrite on defaults #47

shaiguitar opened this issue May 3, 2016 · 1 comment
Labels

Comments

@shaiguitar
Copy link

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?

@rshade rshade self-assigned this Jan 9, 2017
@rshade rshade added the bug label Jan 9, 2017
@rshade
Copy link
Contributor

rshade commented May 4, 2017

looking at this, it's definitely intentional: https://github.com/rightscale-cookbooks/ephemeral_lvm/blob/master/recipes/default.rb#L69

@rshade rshade removed their assignment Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants