Re: [Puppet Users] compare filebucket

2015-03-02 Thread Sam Coffland
Found this old post when looking for a way to do this. I wrote the following short script for this purpose. It will give you a diff of each copy of a file you search for compared to the next older version in the file bucket starting with the current file. Hope it helps someone else as the file b

[Puppet Users] Re: Debugging which provider and which command it is using

2014-10-27 Thread Sam Coffland
I'm not sure exactly what your trying to achieve by getting the provider but I give it a shot at it anyway. In order to get debugging info from puppet you would use a notice. http://www.puppetcookbook.com/posts/simple-debug-messages.html So if you wanted to have your EL systems tell you they i

[Puppet Users] Re: best way to ensure (yum) package repository freshness ?

2014-09-29 Thread Sam Coffland
I came a across this post and like what I see but would off the following addition to Ian's suggestion so that the expire cache is not executed on every puppet run. exec { 'yum-clean-expire-cache': command => '/usr/bin/yum clean expire-cache', refreshonly => true, } package

[Puppet Users] Re: Ensure last line in a file

2013-12-05 Thread Sam Coffland
You can use concat fragments to specify the order of stanzas or lines. Forgive the pseudo code below but you should be able to get the idea concat::fragment { original_file: order => 10, } concat::fragment { other_stuff: order => 50, } concat::fragment { last_line: