On Fri, Jun 19, 2009 at 2:41 PM, RijilV <rij...@riji.lv> wrote:

>
> 2009/6/19 Swati Tiwari <its.sv...@gmail.com>:
> > Hey Guys,
> >
> > I am sorry if this sounds silly but I am new to puppet. I am trying to
> > append a particular line to the apt.conf file on all the clients that are
> > running puppetd. Is there any way to do this using puppet. Any help would
> be
> > appreciated!
> >
> > Thank you!
> >
> > --
> > Regards,
> > Swati
>
>
> http://reductivelabs.com/trac/puppet/wiki/Recipes/SimpleText
>
> Or take a look at Augeas, provided there is already a lens for
> apt.conf or you're comfortable writing one, would likely be a cleaner
> way of handling this.
>
> .r'
>

Depending on the format of the file (I don't know what that one is), you may
not need a custom lens.  I modified /etc/sysconfig/sysstat (part of the
sysstat package on rhel).  These files are generally simple key=value files,
and the basic lens is sufficient for that.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to