Hello Puppeteers; for those of us who are still suffering in the darkness of Puppet_Augeas, I put a couple of working examples here: http://projects.puppetlabs.com/projects/puppet/wiki/Puppet_Augeas and those of us who are no longer in the dark, please add there your working examples - for enlightenment, you know :-) Thank you; Andrei -- 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.
On Jul 28, 2010, at 11:39 AM, Andrei Pozolotin wrote:> Hello Puppeteers; > > for those of us who are still suffering in the darkness of > Puppet_Augeas, > I put a couple of working examples here: > > http://projects.puppetlabs.com/projects/puppet/wiki/Puppet_AugeasNice. I learned a few things I didn’t know (mostly about Puppet syntax). I wonder about wrapping things in a define for something as simple as `sysctl.conf` though. By doing that, every individual line will spawn it’s own Augeas resource. The only reason I bring it up is that when I look at the reports on my Puppetmaster, Augeas resources pretty consistently account for 75% of the time on each run. In other words, Augeas resources take 3 times as long as all other resources put together (and that’s with me combining all the changes for one file into a single resource).> and those of us who are no longer in the dark, please add there your > working examples - for enlightenment, you know :-)I’ll see if I have anything worth sharing. Pretty sure I do. While we’re on the subject, wouldn’t the "export foo” example (which I think was already part of the documentation) add a new line on every Puppet run as it’s currently written? -- Rob McBroom <http://www.skurfer.com/> -- 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.
Andrei Pozolotin
2010-Jul-29 14:29 UTC
[Puppet Users] Re: Puppet_Augeas: Working Examlples
Rob, hi On Jul 29, 8:45 am, Rob McBroom <mailingli...@skurfer.com> wrote:> I wonder about wrapping things in a define for something as simple as `sysctl.conf` though. > By doing that, every individual line will spawn it’s own Augeas resource.you are right; ideally I want this: a) have "sysctl:conf" calls scattered where needed, so I do not have to keep it in one place as you suggested; b) avoid "new augeas per define"; it is indeed a cpu hog; I do not know how to solve this yet; James Turnbull, are you there? a drop of your wisdom, please? :-) Thanks Andrei -- 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.
On Jul 28, 2010, at 11:39 AM, Andrei Pozolotin wrote:> and those of us who are no longer in the dark, please add there your > working examples - for enlightenment, you know :-)I just added a bunch of stuff starting here: http://projects.puppetlabs.com/projects/puppet/wiki/Puppet_Augeas#Simple+Examples I wonder if the discussions of numbered items and “onlyif” should be up in the main body of the doc before it gets into the working examples, since those are pretty fundamental things. Thoughts? I don’t seem to have a lens for `/etc/exports`, but I’m pretty sure that example is wrong. Can anyone test it? (Not one of my examples. It’s one of the first up in the main body.) I wrote everything in Markdown before I tried to edit the page. Happy to find out all I had to do was “Paste” and be done. :) -- Rob McBroom <http://www.skurfer.com/> Don''t try to tell me something is important to you if the whole of your “support” entails getting Congress to force *others* to spend time and money on it. -- 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.
Andrei Pozolotin
2010-Jul-30 04:18 UTC
[Puppet Users] Re: Puppet_Augeas: Working Examlples
Rob, wow! On Jul 29, 10:48 am, Rob McBroom <mailingli...@skurfer.com> wrote:> I just added a bunch of stuff starting here:http://projects.puppetlabs.com/projects/puppet/wiki/Puppet_Augeas#Simple+Examples thanks for sharing this; now this page is a real treasure; I learned a lot about augeas; Andrei -- 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.