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 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 create/

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 wrote: > > On Aug 22, 2010, at 9:26 PM, Dan Bode wrote: > > Hi Patrick, > > On Sun, Aug 22, 2010 at 9:01 PM, Patrick wrote: > >> I'm making a cups manager type and I'm having trouble figuring out where I >> should parameters and where I should use propert

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 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 > http://github.com/kc7zzv/puppet-c

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 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 > http://github.com/kc7zzv/puppet-cups_printer/blob/master/lib/puppet/type/cups_printer.r

[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" int

[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 写道: > follow is the log > > > Processing Nod

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" wrote: > hello, > > - "Chris" 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 w

Re: [Puppet Users] Parsing yaml report locallly

2010-08-22 Thread Tim Sharpe
Puppet logs to syslog so why not setup an alias that just runs "grep puppet /var/log/messages". The log file may differ between distributions (daemon.log for Debian), but this generally suffices for me. On 23 August 2010 00:20, Carl.caum wrote: > You could always have a script that queries the p

Re: [Puppet Users] Parsing yaml report locallly

2010-08-22 Thread Carl.caum
You could always have a script that queries the puppetmaster or whatever your report server is. I'd just use https. Have some cgi script that grabs the latest yaml file for the requesting host and then returns it. The requesting script on the client can then parse it and do whatever with it. You

Re: [Puppet Users] Parsing yaml report locallly

2010-08-22 Thread R.I.Pienaar
hello, - "Chris" 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 .profile/

[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 admin

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 wrote: > On Sun, Aug 22, 2010 at 12:02 AM, Joe McDonagh > 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 swi

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 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 default value in there,

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