Re: [Puppet Users] Problem with specifying server name

2011-01-20 Thread Gabriel Filion
On 11-01-20 11:40 AM, Basil Kurian wrote: > On 20 January 2011 11:29, Patrick On Jan 19, 2011, at 6:06 AM, Basil Kurian wrote: >> root@client ~# puppetd --test >> err: Could not retrieve catalog from remote server: undefined >> method `closed?' for nil:NilClass >>

[Puppet Users] Re: if( defined( Class["software::mongodb"] ) ) throws an error

2011-01-20 Thread MJ
Hey Trevor, Thanks for the reply. This thread is way off topic from the original problem which has been resolved. Just to clarify for anyone running into the same problem, the issue was simply the syntax I was using. I was checking if a class was defined like this: defined( Class["class::su

Re: [Puppet Users] if( defined( Class["software::mongodb"] ) ) throws an error

2011-01-20 Thread Trevor Vaughan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This is probably the case that you don't have this class present in your autoloader path. For some reason, Puppet needs the class to be in the autoloader even if you don't use it or you run into this exact situation. I think there's a bug filed in th

[Puppet Users] Re: if( defined( Class["software::mongodb"] ) ) throws an error

2011-01-20 Thread MJ
> Hum, I get the feeling there is more than just this removal scenario > that's bugging you. However, there are rather elegant solutions in the > DSL for that, so I'll elaborate on this and maybe inspire you to some > other approaches that may help with other problems as well. You are correct, the

Re: [Puppet Users] nested variables workaround in templates

2011-01-20 Thread Jeff McCune
On Thu, Jan 20, 2011 at 1:52 AM, ScOut3R wrote: > Dear List, > > I consider myself a newbie and i'd like to ask the gurus how they > would approach the problem i'll describe here. I have a template and > inside it i'd like to configure more than one identical blocks. My > idea was to create a nest

Re: [Puppet Users] Re: race conditions in using "svn update" in puppetmaster's /etc/puppet directory?

2011-01-20 Thread Daniel Pittman
On Thu, Jan 20, 2011 at 07:51, Iconoplasty wrote: > On Jan 4, 12:39 pm, Daniel Pittman wrote: > >> That doesn't solve the problem: if the puppet master is half way through a >> compilation run and you switch the repo under it, you will still see it use >> mixed versions - because loading the cat

[Puppet Users] problems with dependencies

2011-01-20 Thread russell.fulton
Hi I get this error from this manifest: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find resource 'File[/home/snort/resnet/Rules/]File[/ home/snort/resnet/conf/pp]File[/home/snort/resnet/conf/pp.conf]' for relationship from 'Exec[/home/snort/bin/pulledpork -n

[Puppet Users] Re: race conditions in using "svn update" in puppetmaster's /etc/puppet directory?

2011-01-20 Thread Iconoplasty
On Jan 4, 12:39 pm, Daniel Pittman wrote: > That doesn't solve the problem: if the puppet master is half way through a > compilation run and you switch the repo under it, you will still see it use > mixed versions - because loading the catalog is not atomic either, and > neither is file serving.

[Puppet Users] Re: race conditions in using "svn update" in puppetmaster's /etc/puppet directory?

2011-01-20 Thread Iconoplasty
On Jan 4, 12:39 pm, Daniel Pittman wrote: > That doesn't solve the problem: if the puppet master is half way through a > compilation run and you switch the repo under it, you will still see it use > mixed versions - because loading the catalog is not atomic either, and > neither is file serving.

[Puppet Users] nested variables workaround in templates

2011-01-20 Thread ScOut3R
Dear List, I consider myself a newbie and i'd like to ask the gurus how they would approach the problem i'll describe here. I have a template and inside it i'd like to configure more than one identical blocks. My idea was to create a nested hash inside an array but the templating system cannot und

Re: [Puppet Users] puppetmaster, sqlite and out of filedescriptors

2011-01-20 Thread Jeff McCune
On Thu, Jan 20, 2011 at 10:29 AM, Klaus Ethgen wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > Hello, > > I use puppet master with just a hand full of clients and storeconfig to > a sqlite (v3) database. After several problems I decided to restart > puppetmaster regularly cause it w

[Puppet Users] puppetmaster, sqlite and out of filedescriptors

2011-01-20 Thread Klaus Ethgen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hello, I use puppet master with just a hand full of clients and storeconfig to a sqlite (v3) database. After several problems I decided to restart puppetmaster regularly cause it was more and more filedescriptors to the database until no more are aw

Re: [Puppet Users] Re: Problem with specifying server name

2011-01-20 Thread Basil Kurian
On 20 January 2011 11:24, Nicolas Aizier wrote: > I know that's not the exact answer you want but why not filling up the > hosts file with additional puppet on the concerned server ? Or in the > DNS if you're in a biggest organization ... > > On Jan 20, 12:06 am, Basil Kurian wrote: > > I 'm conf

Re: [Puppet Users] Problem with specifying server name

2011-01-20 Thread Basil Kurian
On 20 January 2011 11:29, Patrick wrote: > > On Jan 19, 2011, at 6:06 AM, Basil Kurian wrote: > > root@client ~# puppetd --test > err: Could not retrieve catalog from remote server: undefined method > `closed?' for nil:NilClass > warning: Not using cache on failed catalog > err: Could not retriev

Re: [Puppet Users] Re: if( defined( Class["software::mongodb"] ) ) throws an error

2011-01-20 Thread Felix Frank
On 01/19/2011 11:34 PM, MJ wrote: >> Interesting construct. Why do you need to go so meta? Usually, instead >> of building a framework for packages/services/... that you specify in >> some external scheme that you make up, you just write a classes for each >> such set in puppet DSL in the first pla

Re: [Puppet Users] pre-compiling gems

2011-01-20 Thread qutic development
Maybe using rvm makes your gem live easier. You can use different gemsets, per user. rvm.beginrescueend.com On 20.01.2011, at 05:02, John Warburton wrote: > Hi > > I have a small number of gems I install on my puppet server, and manage to > get them compiled and they pick up my non standard e