[Puppet Users] Re: External Nodes - Puppet 2.6.4

2011-03-01 Thread cyrus
signed nothing. So farther down when the following is called: $stdout.reopen(output_file) It errors with an ArgumentError. To get around this I just changed to $stdout.reopen("/dev/null"). On Mar 1, 11:44 am, cyrus wrote: > More info. It appears it has to do with the Ruby I compiled.

[Puppet Users] Re: External Nodes - Puppet 2.6.4

2011-03-01 Thread cyrus
installed into /usr/local/bin. If I run using that ruby interpreter I get the error below. If I switch back to the RPM based one in /usr/bin it runs. Is there some add-on I need for Ruby? Does Puppet not work with 1.8.7? On Mar 1, 10:40 am, cyrus wrote: > I have some more info. > > notice:

[Puppet Users] Re: External Nodes - Puppet 2.6.4

2011-03-01 Thread cyrus
exec: Execution of '/usr/ local/bin/external-node lv1764p.x.com' returned 1: err: Could not find node 'lv1764p.xx.com'; cannot compile Notice the wrong number of arguments (2 for 1) message. On Mar 1, 8:59 am, cyrus wrote: > Yes. The file is executable by everyone. Pl

[Puppet Users] Puppet Error Message

2011-03-01 Thread cyrus
Every now and then I get the following error on a Puppet run: Mon Feb 28 21:19:04 -0700 2011 Puppet (err): Could not retrieve catalog from remote server: Error 400 on SERVER: invalid value for Integer: "eNp1VtmS6jgSfZ+v0NTDRHczgHfAEf0ABgw2i9kNLxXCFmDwhuSVrx/Zhirq \n3h4CHFYqJWWmTp5DvV4H/ 8bxMW8Gxyu

[Puppet Users] Re: External Nodes - Puppet 2.6.4

2011-03-01 Thread cyrus
Yes. The file is executable by everyone. Plus this worked prior to installing Ruby 1.8.7 and Puppet 2.6.4. On Feb 28, 3:40 pm, Nan Liu wrote: > On Mon, Feb 28, 2011 at 3:36 PM, cyrus wrote: > > I recently moved to Puppet 2.6.4. Prior to this I was using the > > available RPMS

[Puppet Users] External Nodes - Puppet 2.6.4

2011-02-28 Thread cyrus
I recently moved to Puppet 2.6.4. Prior to this I was using the available RPMS for RHEL which were 2.6.3. The reason I moved to the source 2.6.4 is that I wanted to update to Ruby 1.8.7 to see if that corrected the errors I was getting when trying to use Store Configs. Anyways, I compiled Ruby 1.8

[Puppet Users] augeas - add to beginning of file

2011-02-24 Thread cyrus
Hi: Using augeas, how do you add a comment to the beginning of a file. I know you can use ins but you need to specify a path to insert before or after. In my case I can't with 100% certainty say I will no what the first line. -- You received this message because you are subscribed to the Google

[Puppet Users] Re: using return value of a shell command as a puppet conditional

2011-01-31 Thread cyrus
If I understand your question you want to use the exec resource and specify the onlyif (or unless) parameter. Sort of like: exec { "cp /tmp/file1 /data", path => [ "/bin" ], onlyif => "/usr/bin/my_harmless_binary"; } On Jan 31, 2:12 pm, Ashley Gould wrote: > Hi all, > > My first pos

[Puppet Users] Puppet definitions and inheritance

2010-12-28 Thread cyrus
Are definitions inherited? By that I mean I have the following: class main { define luser () { ... some code ... } } class inetd inherits main { /* call luser definition */ luser { $name: } } But Puppet complains

[Puppet Users] Re: Nested Class

2010-12-28 Thread cyrus
Ah, that is it. Simple typo on my part. Thanks for pointing that out. Much appreciated. On Dec 27, 10:50 pm, Naresh V wrote: > On 28 December 2010 09:41, cyrus wrote: > > > > > > > > > > > Hi: > > > I have something like this: > > > class

[Puppet Users] Nested Class

2010-12-27 Thread cyrus
Hi: I have something like this: class xinetd { ... some Puppet code ... class xinetd::telnet { ... some Puppet code ... } } node 'host1' { include xinetd::telnet } However, when running Puppet says it can't find class xinetd::telnet. I can include xinetd so I know my site.p

[Puppet Users] Re: Puppet + Mongrel on RHEL5

2010-12-22 Thread cyrus
Never mind. Got this. I had some left over ssl options in puppet.conf from the Passenger setup. Once I removed those everything worked just fine. On Dec 22, 1:34 pm, cyrus wrote: > I am trying to setup Puppet + Mongrel on RHEL5. So far I have followed > this document: &g

[Puppet Users] Puppet + Mongrel on RHEL5

2010-12-22 Thread cyrus
I am trying to setup Puppet + Mongrel on RHEL5. So far I have followed this document: http://projects.puppetlabs.com/projects/puppet/wiki/Using_Mongrel_On_Enterprise_Linux The puppetmasters all start up and Apache starts up on 8140. However, when my client connects I get the following errors: [

[Puppet Users] Re: storeconfig / mysql

2010-12-16 Thread cyrus
I have the same issue with Passenger. This is preventing me from using Storeconfigs all together. On Dec 14, 12:47 pm, donavan wrote: > On Dec 12, 11:17 pm, walexey wrote: > > > > > Puppet (err): Could not retrieve catalog from remote server: Error 400 > > > > on SERVER: Mysql::Error: MySQL serv

[Puppet Users] Class and inheritance

2010-12-05 Thread cyrus
I have the following setup http://pastebin.com/bWANRpsP And was wondering if anyone could comment on whether my philosophy is correct. The issue I am having is this. 99% of my systems need to be configured identically. However every now and then there is a system that needs a slight tweak. As an