[Puppet-dev] Re: PR hiera/137 - recursive hiera data item lookups

2013-06-25 Thread Henrik Lindberg
On 2013-26-06 3:06, Eric Sorenson wrote: Hi, there's been a lively discussion on an interesting pull request that came in: https://github.com/puppetlabs/hiera/pull/137 In the interest of soliciting input from a wider audience I'd like to move the discussion on this request to the list. Perso

[Puppet-dev] PR hiera/137 - recursive hiera data item lookups

2013-06-25 Thread Eric Sorenson
Hi, there's been a lively discussion on an interesting pull request that came in: https://github.com/puppetlabs/hiera/pull/137 In the interest of soliciting input from a wider audience I'd like to move the discussion on this request to the list. Personally I have two issues, one major/semantic

Re: [Puppet-dev] Puppet::Util.replace_file vs Puppet::Util::FileLocking

2013-06-25 Thread Trevor Vaughan
In this case, the Puppet::Util::SELInux code has everything necessary to wrap the call and works correctly with nil values. But yes, knowing what filesystem you were on and being able to handle it accordingly would be nice. Trevor On Tue, Jun 25, 2013 at 4:48 PM, Josh Cooper wrote: > > > > On

Re: [Puppet-dev] Puppet::Util.replace_file vs Puppet::Util::FileLocking

2013-06-25 Thread Josh Cooper
On Tue, Jun 25, 2013 at 12:56 PM, Trevor Vaughan wrote: > +1 for comments :-D. > > Thanks Andy. > > I filed two related bugs in that they don't preserve SELinux contexts. > Debugging that is extra exciting. > > Trevor > > > On Tue, Jun 25, 2013 at 12:48 PM, Andy Parker wrote: > >> They are for di

Re: [Puppet-dev] Puppet::Util.replace_file vs Puppet::Util::FileLocking

2013-06-25 Thread Trevor Vaughan
+1 for comments :-D. Thanks Andy. I filed two related bugs in that they don't preserve SELinux contexts. Debugging that is extra exciting. Trevor On Tue, Jun 25, 2013 at 12:48 PM, Andy Parker wrote: > They are for different purposes. If you want to securely and atomically > replace the conte

Re: [Puppet-dev] Puppet::Util.replace_file vs Puppet::Util::FileLocking

2013-06-25 Thread Andy Parker
They are for different purposes. If you want to securely and atomically replace the contents of a file then you use #replace_file. If you want to use a locking mechanism that another process can interact with, then you want Puppet::Util::FileLock. On Tue, Jun 25, 2013 at 6:36 AM, Trevor Vaughan w

Re: [Puppet-dev] Marking expired puppet resources

2013-06-25 Thread Andy Parker
On Mon, Jun 24, 2013 at 11:04 PM, Dean Wilson wrote: > On 29 April 2013 08:46, Luke Kanies wrote: > >> No - that's more about running a given chunk of code periodically, but >> not informing the user specifically, and I think what Dean is more looking >> for is a reminder to the user to delete s

Re: [Puppet-dev] Problem - init script in puppet-server-3.2.1-1.el6.noarch not updated for proper pid file path

2013-06-25 Thread Matthaus Owens
Kenneth, can you post your puppet.conf (or post a sanitized version)? On Tue, Jun 25, 2013 at 9:06 AM, Kenneth Edgar wrote: > I used genconfig to create the /etc/puppet/puppet.conf file. I also noticed > that the agent places the run file in /var/run/puppet/ > > On Sunday, June 23, 2013 3:22:56

Re: [Puppet-dev] Problem - init script in puppet-server-3.2.1-1.el6.noarch not updated for proper pid file path

2013-06-25 Thread Kenneth Edgar
I used genconfig to create the /etc/puppet/puppet.conf file. I also noticed that the agent places the run file in /var/run/puppet/ On Sunday, June 23, 2013 3:22:56 PM UTC-5, Matthaus Litteken wrote: > > Kenneth, > Have you edited puppet.conf since installing puppet? The puppet rpm > lays down

[Puppet-dev] Puppet::Util.replace_file vs Puppet::Util::FileLocking

2013-06-25 Thread Trevor Vaughan
So, what's better to use and why, Puppet::Util.replace_file or Puppet::Util::FileLocking? Thanks, Trevor -- Trevor Vaughan Vice President, Onyx Point, Inc (410) 541-6699 tvaug...@onyxpoint.com -- This account not approved for unencrypted proprietary information -- -- You received this messag