I'm trying to add a mount option using puppet/augeas. Something like:
class acl {
augeas { "var_fs_acl":
context => "/files/etc/fstab",
changes => ["ins opt after *[file='/var']/
opt[last()]",
"set *[file='/var']/opt[last()] acl"],
onlyif => "match *[file='/var']/opt[.='acl'] size ==
0"
}
}
This works if /var is a filesystem, but fails if /var is not. Since I
can't have two onlyif clauses, I'm not sure how to say:
If /var is a filesystem and
doesn't already have an opt of acl
Any suggestions would be appreciated.
joe
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.