Displaying 1 result from an estimated 1 matches for "sysctl_".
Did you mean:
sysctl
2009 Sep 10
2
Adding comments to config files with augeas
...trolling
where a parameter should be put in the file.
Here''s a simplified version of a (broken) sysctl define. I know why
this doesn''t work - it''s just to give an idea of what I''d like to get
working!
define sysctl::config ($value, $comment) {
augeas { "sysctl_$name":
context => "/files/etc/sysctl.conf",
changes => [
"set $name $value",
"insert ''# ${comment}'' before $name",
],
onlyif => "get $name != $value",
}
}
Anyone have any ideas?
TIA,
Bryan
--~...