Displaying 1 result from an estimated 1 matches for "modify_flag".
2010 Dec 29
1
Puppet and augeas - onlyif conditions; overwriting default values
...context => "/files/etc/sysctl.conf",
changes => [
"set fs.aio-max-nr 1048576",
"set fs.file-max 9000",
],
notify => Exec["load-sysctl"],
onlyif => "match #comment[1] != ''MODIFY_FLAG''",
}
exec { "load-sysctl":
command => "/sbin/sysctl -p",
refreshonly => true,
}
...
####################################################
2. custom puppet module to adjust adjusted value:
############################################...