Swati Tiwari
2009-Jun-19 18:32 UTC
[Puppet Users] Is there a way to write to a file using puppet
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 --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
RijilV
2009-Jun-19 18:41 UTC
[Puppet Users] Re: Is there a way to write to a file using puppet
2009/6/19 Swati Tiwari <its.svati@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, > Swatihttp://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'' --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
lance dillon
2009-Jun-20 00:35 UTC
[Puppet Users] Re: Is there a way to write to a file using puppet
On Fri, Jun 19, 2009 at 2:41 PM, RijilV <rijilv@riji.lv> wrote:> > 2009/6/19 Swati Tiwari <its.svati@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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---