[Puppet Users] Parsing yaml report locallly

2010-08-22 Thread Chris
Hi Is there a way to parse the yaml reports on locally on the puppet clients. What I'd like to offer our sysadmins is a command that will give them some info when the last puppetrun was and whether anything has changed. This could be included in .profile/.bashrc. We have an environment where

Re: [Puppet Users] Parsing yaml report locallly

2010-08-22 Thread R.I.Pienaar
hello, - Chris sinl...@gmail.com wrote: Hi Is there a way to parse the yaml reports on locally on the puppet clients. What I'd like to offer our sysadmins is a command that will give them some info when the last puppetrun was and whether anything has changed. This could be included in

Re: [Puppet Users] Parsing yaml report locallly

2010-08-22 Thread Christopher Johnston
Great idea Sent from my iPhone On Aug 22, 2010, at 9:58 AM, R.I.Pienaar r...@devco.net wrote: hello, - Chris sinl...@gmail.com wrote: Hi Is there a way to parse the yaml reports on locally on the puppet clients. What I'd like to offer our sysadmins is a command that will give

[Puppet Users] Re: How to change the node's class or groups

2010-08-22 Thread Timo Seven
Hi all: Who can help me to resolve this problem. ### Best regards Timo Seven blog: http://zauc.wordpress.com twitter: http://twitter.com/zauc Linux System Admin MySQL DBA 在 2010年8月19日 下午1:47,Timo Seven gre...@gmail.com 写道: follow is the log

[Puppet Users] Trouble making a pure ruby puppet type

2010-08-22 Thread Patrick
I'm making a cups manager type and I'm having trouble figuring out where I should parameters and where I should use properties. The file is at http://github.com/kc7zzv/puppet-cups_printer/blob/master/lib/puppet/type/cups_printer.rb . I was accidentally using newproperty and newparameter

Re: [Puppet Users] Trouble making a pure ruby puppet type

2010-08-22 Thread Dan Bode
Hi Patrick, On Sun, Aug 22, 2010 at 9:01 PM, Patrick kc7...@gmail.com wrote: I'm making a cups manager type and I'm having trouble figuring out where I should parameters and where I should use properties. The file is at

Re: [Puppet Users] Trouble making a pure ruby puppet type

2010-08-22 Thread Patrick
On Aug 22, 2010, at 9:26 PM, Dan Bode wrote: Hi Patrick, On Sun, Aug 22, 2010 at 9:01 PM, Patrick kc7...@gmail.com wrote: I'm making a cups manager type and I'm having trouble figuring out where I should parameters and where I should use properties. The file is at

Re: [Puppet Users] Trouble making a pure ruby puppet type

2010-08-22 Thread Dan Bode
On Sun, Aug 22, 2010 at 9:30 PM, Patrick kc7...@gmail.com wrote: On Aug 22, 2010, at 9:26 PM, Dan Bode wrote: Hi Patrick, On Sun, Aug 22, 2010 at 9:01 PM, Patrick kc7...@gmail.com wrote: I'm making a cups manager type and I'm having trouble figuring out where I should parameters and

Re: [Puppet Users] Trouble making a pure ruby puppet type

2010-08-22 Thread Patrick
On Aug 22, 2010, at 9:33 PM, Dan Bode wrote: On Sun, Aug 22, 2010 at 9:30 PM, Patrick kc7...@gmail.com wrote: On Aug 22, 2010, at 9:26 PM, Dan Bode wrote: Hi Patrick, Which is right? if you just need absent/present ensure states, then use the ensurable method (expects

[Puppet Users] extlookup in 2.6.1 defaults

2010-08-22 Thread Douglas Garstang
Hmmm So I was just trying the extlookup function that comes with puppet 2.6.1. It now lets you do this: $version = extlookup(rsyslog_version, present, packages) which, according to the documentation: # This will look for a version configured in packages.csv and then in the rest as

Re: [Puppet Users] extlookup in 2.6.1 defaults

2010-08-22 Thread Joe McDonagh
On 08/22/2010 02:42 AM, Douglas Garstang wrote: This seems a bit weird to me. The second parameter isn't optional (I think the 2nd and 3rd parameters should be switched), which means that you MUST have a default value in there, which means, you might as well use the same value as in the

Re: [Puppet Users] extlookup in 2.6.1 defaults

2010-08-22 Thread Douglas Garstang
On Sun, Aug 22, 2010 at 12:02 AM, Joe McDonagh joseph.e.mcdon...@gmail.com wrote: On 08/22/2010 02:42 AM, Douglas Garstang wrote: This seems a bit weird to me. The second parameter isn't optional (I think the 2nd and 3rd parameters should be switched), which means that you MUST have a

Re: [Puppet Users] extlookup in 2.6.1 defaults

2010-08-22 Thread Douglas Garstang
On Sun, Aug 22, 2010 at 12:20 AM, Douglas Garstang doug.garst...@gmail.com wrote: On Sun, Aug 22, 2010 at 12:02 AM, Joe McDonagh joseph.e.mcdon...@gmail.com wrote: On 08/22/2010 02:42 AM, Douglas Garstang wrote: This seems a bit weird to me. The second parameter isn't optional (I think the