Displaying 2 results from an estimated 2 matches for "18c50d8800840696bac0".
2013 May 29
1
augeas for hosts.allow
...2/process ${process}", "set 02/client[.=''{$name}'']
${name}" ],
onlyif => "match *[process=''${process}''] size == 0",
}
But I have to provide node number (02 here) . The above code is mostly
based on
https://gist.github.com/rodjek/18c50d8800840696bac0
Can some one give a better option. What I want is that I can define
different process and ip range in node manifest file like this
ssh::hosts_allow { [ ''1.1.1.1'', ''2.2.2.2'', ]:
process => ''sshd'',
ssh::hosts_allow { [ ''3.3....
2012 Sep 24
7
augeas only add if doesn't exist
...,
I''m trying to add an entry to /etc/hosts.allow only if the entry for
''client'' (daemon) does not already exit.
In this #puppet log:
http://www.puppetlogs.com/puppet/%23puppet-2012-05-03.log.html
rodjek links a gist which should do exactly that:
https://gist.github.com/18c50d8800840696bac0
But I can''t get it to execute with augtool:
augtool> set /files/etc/hosts.allow/*[process=nrpe]/client[last()+1] 1.1.1.1
error: Failed to execute command
What am I doing wrong? (I''m using the latest from here:
https://raw.github.com/lutter/augeas/master/lenses/hosts_access....