Re: [Puppet Users] Re: add lines to /etc/hosts on client

2011-07-08 Thread Jacob Helwig
On Fri, 08 Jul 2011 11:18:57 -0700, newguy wrote: > > class haproxy::init { > file { "/etc/init.d/haproxy": > ensure => present, > owner => 'root', > group => 'root', > mode => 0600, > source => "puppet:///modules/haproxy/

Re: [Puppet Users] Re: add lines to /etc/hosts on client

2011-07-08 Thread Rob McBroom
On Jul 8, 2011, at 1:52 PM, newguy wrote: > Thanks Rob but what if I simple decide to remove the existing smb.conf > file and push the new smb.conf from the server, I know I can use the > source to tell which file to install and its location but how would I > remove the smb.conf from the client.

Re: [Puppet Users] Re: add lines to /etc/hosts on client

2011-07-08 Thread Rob McBroom
On Jul 8, 2011, at 12:45 PM, newguy wrote: > How can I add lines to smb.conf with out overwriting the content of > the file. I think Augeas is what you’re looking for (for this and other inevitable use cases). http://projects.puppetlabs.com/projects/puppet/wiki/Puppet_Augeas -- Rob McBroom