Thanks for this help Ken, one more question please, suppose I want to add the following lines in the smb.conf file already existing on the client machine:
[USERNAME] path = /home/USERNAME available = yes valid users = XYZ read only =yes How can I add lines to smb.conf with out overwriting the content of the file. On Jul 8, 7:48 am, Ken Barber <k...@puppetlabs.com> wrote: > You can add new entries using the 'host' type: > > http://docs.puppetlabs.com/references/stable/type.html#host > > For example: > > host { "myhostname": > ip => "1.1.1.1", > > } > > By itself, it won't remove existing entries (but there is a way to do > this as well using purging). > > If you haven't read it already, there is a language guide which > explains using resources in more detail: > > http://docs.puppetlabs.com/guides/language_guide.html#resources > > ken. > > > > > > > > > > On Fri, Jul 8, 2011 at 3:45 PM, newguy <aimanparv...@gmail.com> wrote: > > Hi guys > > Am new to puppet so please take it easy on me. > > I want to know how can I add lines to hosts file on the client > > machine, I am trying to add a couple of IP addresses to the hosts file > > on client and I dont want to overwrite their hosts file, just add new > > stuff in there. > > My server and client both are running Ubuntu. > > > Thanks > > > -- > > You received this message because you are subscribed to the Google Groups > > "Puppet Users" group. > > To post to this group, send email to puppet-users@googlegroups.com. > > To unsubscribe from this group, send email to > > puppet-users+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/puppet-users?hl=en. > > -- > "Join us for PuppetConf, September 22nd and 23rd in Portland, > OR:http://bit.ly/puppetconfsig" -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.