Re: [Puppet Users] augeas only add if doesn't exist

2012-10-16 Thread Dominic Cleal
On 15/10/12 16:52, Eugene Vilensky wrote: On Oct 14, 2012, at 12:40 PM, Dominic Cleal dcl...@redhat.com mailto:dcl...@redhat.com wrote: You're missing quotes around nrpe, the command should be: set /files/etc/hosts.allow/*[process='nrpe']/client[last()+1] 1.1.1.1 rodjek's example has

Re: [Puppet Users] augeas only add if doesn't exist

2012-10-16 Thread Dominic Cleal
On 16/10/12 11:42, Dominic Cleal wrote: On 15/10/12 16:52, Eugene Vilensky wrote: On Oct 14, 2012, at 12:40 PM, Dominic Cleal dcl...@redhat.com mailto:dcl...@redhat.com wrote: You're missing quotes around nrpe, the command should be: set

Re: [Puppet Users] augeas only add if doesn't exist

2012-10-15 Thread Eugene Vilensky
On Oct 14, 2012, at 12:40 PM, Dominic Cleal dcl...@redhat.com wrote: You're missing quotes around nrpe, the command should be: set /files/etc/hosts.allow/*[process='nrpe']/client[last()+1] 1.1.1.1 rodjek's example has the quotes in, so just a transcription error. Totally works for an

Re: [Puppet Users] augeas only add if doesn't exist

2012-10-14 Thread Dominic Cleal
On 24/09/12 19:03, Eugene Vilensky wrote: Hello, 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

[Puppet Users] augeas only add if doesn't exist

2012-09-24 Thread Eugene Vilensky
Hello, 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