Last active
December 11, 2015 11:48
-
-
Save dky/4595997 to your computer and use it in GitHub Desktop.
Puppet exec code to edit fstab only if acl support doesn't already exist.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exec { "add_fstab_acl": | |
command => "/bin/sed -i.backup '/srv/s/defaults/defaults,acl/g' /etc/fstab", | |
unless => "/bin/grep -E '/srv.*ext4.*defaults,acl' /etc/fstab", | |
path => "/usr/local/bin/:/bin/", | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment