[Puppet Users] Re: storeconfigs + environments issue

2009-08-26 Thread josbal
Surething... [main] # Where Puppet stores dynamic and growing data. # The default value is '/var/puppet'. vardir = /var/lib/puppet # The Puppet log directory. # The default value is '$vardir/log'. logdir = /var/log/puppet # Where Puppet PID files are kept. # The

[Puppet Users] Re: Notify someone on failure

2009-08-26 Thread Gerard Bernabeu
Hi, I'm using nagios to monitor puppet by runing the script below in each host. The script looks at the log file, it returns 0 if everything is OK or 1 if there's some error. Cheers, - Gerard Bernabeu Port d'Informació Cientí

[Puppet Users] Puppet, Mongrel, Apache and Debian

2009-08-26 Thread Adam Gibbins
Hi all, I've recently set all of our servers up with puppet, which for the majority has been working perfectly. Last week I had to disable puppet on all machines as I stupidly overloaded webrick so much and no requests were ever getting processed. My puppetmaster was previously setup for testin

[Puppet Users] Failed to retrieve file from the server

2009-08-26 Thread ice jew
debug: //Node[vm170.sina.com.cn]/user::filetest/File[/root/puppet/server_netstat.txt]: File does not exist debug: Calling fileserver.describe err: //Node[vm170.sina.com.cn]/user::filetest/File[/root/puppet/server_netstat.txt]: Failed to retrieve current state of resource: /etc/puppet/mani

[Puppet Users] Facter and arrays? Or puppet and converting strings to arrays?

2009-08-26 Thread Matthias Saou
Hi, As often with puppet, I'm trying to do something I think is "simple", yet I'm hitting a brick wall. What I want to do is have a client send back a list of members of a system group so that the server can create some template-based configuration files for a specific daemon, one per member. M

[Puppet Users] Re: Bacula Puppet Type

2009-08-26 Thread Adrian Silva
Hello, On Tue, Aug 25, 2009 at 5:08 PM, S H wrote: > I'm putting the finishing touches on a set of native Bacula types for Puppet > and was wondering if anybody out there would be interested in giving it a > test run. It seems to be running more or less correctly in my configuration, > though I s

[Puppet Users] Could not call puppetmaster.getconfig: #

2009-08-26 Thread !JEW
the server vm190.sina.com.cn: [r...@vm190 manifests]# /usr/sbin/puppetmasterd --debug --verbose --no-daemonize info: Starting server for Puppet version 0.24.8 debug: Creating interpreter debug: Creating default schedules debug: Failed to load library 'ldap' for feature 'ldap' debug: /Set

[Puppet Users] Re: Exported Resources: noob help please!

2009-08-26 Thread Oded
David,how does the code you provided handle the removal of a "source" node ? as far as i can tell the directory that contains the concatenated_file_parts doesn't get purged on each puppet iteration.so even after the "source" node stops exporting its file_part the Concatenated_file will contain

[Puppet Users] Re: storeconfigs + environments issue

2009-08-26 Thread Ohad Levy
You dont need to run it as root, can you please paste your puppet.conf? cheers, Ohad On Thu, Aug 27, 2009 at 9:40 AM, josbal wrote: > > Why would the permissions / running as root need to change for using > storeconfigs? > > As mentioned before our testing puppet server is configured in the > s

[Puppet Users] Re: storeconfigs + environments issue

2009-08-26 Thread josbal
Why would the permissions / running as root need to change for using storeconfigs? As mentioned before our testing puppet server is configured in the same way and didn't have this permissions issue. On Aug 27, 11:32 am, Jason Rojas wrote: > Sounds like you need to run puppetmaster as the root u

[Puppet Users] Re: storeconfigs + environments issue

2009-08-26 Thread Jason Rojas
Sounds like you need to run puppetmaster as the root user or change some file permissions. -Jason On Aug 26, 2009, at 4:58 PM, josbal wrote: > > Hi Guys, > > Im trying to turn on storeconfigs with a mysql db backend. On my > testing server in our lab, i configured this successfully and can s

[Puppet Users] storeconfigs + environments issue

2009-08-26 Thread josbal
Hi Guys, Im trying to turn on storeconfigs with a mysql db backend. On my testing server in our lab, i configured this successfully and can see if keeping information on all test hosts. When trying to implent the same idea onto our production puppet server, I get the following errors: Aug 26 16

[Puppet Users] Re: A good "problem"

2009-08-26 Thread Udo Waechter
Yes! I can confirm that. I also experience this. Some of our manifests are 3 years old or so. Whenever I want to explain one of my fellow not- puppet admins how things work/happen, I have to look look around to see how it actually happens. Same goes for whenever I want to make minor changes

[Puppet Users] Re: hashes as variables in templtes

2009-08-26 Thread David Schmitt
Matt Delves wrote: > Hey Folks, > I've run into a bit of a snag in setting up the manifests. What I want > to do is use an array of hashes as variables in a template. > > An extract of node is: > -- > $security_access = [{:type => "+", :group => "allowdpeople" :rule => > "ALL"}, {:type => "-"

[Puppet Users] A good "problem"

2009-08-26 Thread Evan Hisey
Luke and everyone else on the puppet team (list folks too)- After about 2 years of puppet, I have discovered a small issue with puppet. It works a little to well :). I find I have to do so little to it once a manifest is setup and running, that I have to go back and relearn what I am doing with

[Puppet Users] clients connect but file server get a cert error

2009-08-26 Thread ELTigre
I'm running puppetmasterd (0.24.8) with apache2 and mongrel on a debian host. Apache2, mongrel instances and puppetmaster runs in the same server. For example, a puppet client sign in puppetmaster and catch his catalog, it creaste files, folders, change permissions, start/stop services BUT can no

[Puppet Users] Re: Using puppetrun doesn't seem to get the latest manifests from server

2009-08-26 Thread Evan Hisey
On Sat, Aug 15, 2009 at 5:12 AM, grandpa wrote: > > My puppet controlled servers do what they're supposed to when running > puppetd or doing puppetd --test. I've configured --listen on all > puppets and I can telnet to port 8139. > > I'm not using ldap. When I issue a puppetrun from the puppetmast

[Puppet Users] Re: Variables redefine

2009-08-26 Thread Evan Hisey
On Tue, Aug 18, 2009 at 9:05 AM, Peter Meier wrote: > > Hi > >> I think you should have >> >> class myclass ($passwd = "111") { >>     file {" > > this syntax is completely new to me, where is it documented? > > thanks and cheers pete > It is document under variable scope in the puppet languag

[Puppet Users] Re: hashes as variables in templtes

2009-08-26 Thread jcbollinger
On Aug 25, 11:19 pm, "Matt Delves" wrote: > Hey Folks, > I've run into a bit of a snag in setting up the manifests. What I want > to do is use an array of hashes as variables in a template. > > An extract of node is: > -- >     $security_access = [{:type => "+", :group => "allowdpeople" :rule =

[Puppet Users] Re: Exported Resources: noob help please!

2009-08-26 Thread David Schmitt
robbyt wrote: >>> Hi All, >>> I'm successfully using Exported Resources and StoreConfigs on my >>> puppet system. I'm able to populate the hosts files on all of my >>> nodes, and that's pretty cool. >>> My problem is that i'm not quite clear how to query the information >>> stored in the Exported