Re: [Puppet Users] Knowing if a file is managed by puppet

2011-11-16 Thread Daniel Maher
On 11/16/2011 12:39 AM, Iain Sutton wrote: +1 for tangled strings On 16 November 2011 04:03, Ken Barber mailto:k...@puppetlabs.com>> wrote: Depends on why you want this info ... but its available in the catalog on the box for 'grepping' (more or less). Something I recommend to some

Re: [Puppet Users] Knowing if a file is managed by puppet

2011-11-15 Thread Iain Sutton
+1 for tangled strings On 16 November 2011 04:03, Ken Barber wrote: > Depends on why you want this info ... but its available in the catalog > on the box for 'grepping' (more or less). > > Something I recommend to some people: > > http://www.tenshu.net/2010/08/adventures-in-puppet-tangled-string

Re: [Puppet Users] Knowing if a file is managed by puppet

2011-11-15 Thread Ken Barber
Depends on why you want this info ... but its available in the catalog on the box for 'grepping' (more or less). Something I recommend to some people: http://www.tenshu.net/2010/08/adventures-in-puppet-tangled-strings.html Which does more or less that ... but shows a banner in VIM for users to w

Re: [Puppet Users] Knowing if a file is managed by puppet

2011-11-15 Thread Vince Taluskie
I'm using the puppet-ls script for this purpose. https://github.com/deanwilson/puppet-scripts/blob/master/puppet-ls vince On Tue, Nov 15, 2011 at 9:22 AM, Nigel Kersten wrote: > On Tue, Nov 15, 2011 at 8:14 AM, Nan Liu wrote: >> On Tue, Nov 15, 2011 at 5:38 AM, chaica wrote: >>> I'm looking f

Re: [Puppet Users] Knowing if a file is managed by puppet

2011-11-15 Thread Nigel Kersten
On Tue, Nov 15, 2011 at 8:14 AM, Nan Liu wrote: > On Tue, Nov 15, 2011 at 5:38 AM, chaica wrote: >> I'm looking for a simple way to check if a file on a client (where >> puppetd is running) is managed by puppet. At this time, I have to put >> a comment on the file and have to run a puppetd -to --

Re: [Puppet Users] Knowing if a file is managed by puppet

2011-11-15 Thread Nan Liu
On Tue, Nov 15, 2011 at 5:38 AM, chaica wrote: > I'm looking for a simple way to check if a file on a client (where > puppetd is running) is managed by puppet. At this time, I have to put > a comment on the file and have to run a puppetd -to --noop in order to > see if puppet triggers actions on t

Re: [Puppet Users] Knowing if a file is managed by puppet

2011-11-15 Thread DEGREMONT Aurelien
R.I.Pienaar a écrit : I wrote https://github.com/ripienaar/puppet-parselocalconfig some time ago that can do this on the node - I am not sure if it still works with latest puppet version but worth a try We are using a modified version of this script and it is mandatory for us. I do not know

Re: [Puppet Users] Knowing if a file is managed by puppet

2011-11-15 Thread R.I.Pienaar
- Original Message - > Hi, > > I'm looking for a simple way to check if a file on a client (where > puppetd is running) is managed by puppet. At this time, I have to put > a comment on the file and have to run a puppetd -to --noop in order > to > see if puppet triggers actions on this fi

[Puppet Users] Knowing if a file is managed by puppet

2011-11-15 Thread chaica
Hi, I'm looking for a simple way to check if a file on a client (where puppetd is running) is managed by puppet. At this time, I have to put a comment on the file and have to run a puppetd -to --noop in order to see if puppet triggers actions on this file. Is there any way to simply find if a file