[Puppet Users] Re: Augeas-1.5.0 to edit file using Puppet

2017-04-06 Thread Shrawan Bhagwat
Hi Peter, Is commenting and uncommenting any line using Augeas is possible? if so, how? On Friday, 7 April 2017 10:27:35 UTC+5:30, Shrawan Bhagwat wrote: > > Thanks Peter. It worked for me. > > On Thursday, 30 March 2017 17:27:30 UTC+5:30, Peter Faller wrote: >> >> Is there any reason you're no

[Puppet Users] Re: Augeas-1.5.0 to edit file using Puppet

2017-04-06 Thread Shrawan Bhagwat
Thanks Peter. It worked for me. On Thursday, 30 March 2017 17:27:30 UTC+5:30, Peter Faller wrote: > > Is there any reason you're not using the built-in 'host' type? For > example, this adds an entry to /etc/hosts: > > host {'north.xyz.com': > ip => '192.168.100.2', > host_aliases => [ >

[Puppet Users] Re: Augeas-1.5.0 to edit file using Puppet

2017-03-30 Thread Peter Faller
Is there any reason you're not using the built-in 'host' type? For example, this adds an entry to /etc/hosts: host {'north.xyz.com': ip => '192.168.100.2', host_aliases => [ 'north', 'main-switch' ], } On Thursday, 30 March 2017 09:55:33 UTC+2, Shrawan Bhagwat wrote: > > >