[Puppet Users] Re: tidying up

2009-08-25 Thread David Schmitt
Ohad Levy wrote: > I personally reinstall, I think its the cleanest way to find out the any > manifests errors (e.g. dependency etc) > if you have an automated build process, than it usually takes less than > 10 minutes.. +1 > if you don't have an automated build process, you might want to con

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

2009-08-25 Thread Stefano Harding
I too would like to know how to pull like this from the stored config db... - Stefano On Aug 22, 2009, at 7:48 PM, 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, a

[Puppet Users] Re: tidying up

2009-08-25 Thread Dick Davies
On Tue, Aug 25, 2009 at 3:18 AM, Ohad Levy wrote: > I personally reinstall, I think its the cleanest way to find out the any > manifests errors (e.g. dependency etc) > if you have an automated build process, than it usually takes less than 10 > minutes.. > > if you don't have an automated build pr

[Puppet Users] Re: facter bug ?

2009-08-25 Thread Jean Spirat
> This is a known issue in 1.5.x which we hope to fix for 1.6.0, whilst > still making fact resolution fast. > > http://projects.reductivelabs.com/issues/1365 > > Paul > > oh i see thanks Paul ! Jean --~--~-~--~~~---~--~~ You received this message because y

[Puppet Users] Re: appending to arrays - bug?

2009-08-25 Thread David Schmitt
Matt wrote: > According to the language tutorial I should be able to do: > > $ssh_users = [ 'myself', 'someone' ] > > class test { >$ssh_users += ['someone_else'] > } > > I'm trying to append to an array within a class, so i'm doing: > > class test { > $metrics = ['a','b'] > $metrics +

[Puppet Users] Re: appending to arrays - bug?

2009-08-25 Thread David Schmitt
David Schmitt wrote: > Matt wrote: >> According to the language tutorial I should be able to do: >> >> $ssh_users = [ 'myself', 'someone' ] >> >> class test { >>$ssh_users += ['someone_else'] >> } >> >> I'm trying to append to an array within a class, so i'm doing: >> >> class test { >> $met

[Puppet Users] onlyif/unless vs. if

2009-08-25 Thread Allan Marcus
This has probably been discussed, but I would like an exec to only be executed if a facter variable is true. Seems there are two ways of doing this, but I can only get the "if" way to work. # $lanl_sav_defdate is a custom fact # make sure the live update file is correct, then force a liveupda

[Puppet Users] appending to arrays - bug?

2009-08-25 Thread Thomas Bellman
David Schmitt wrote: > A possible workaround would be a puppet function which takes any number > of arrays and returns their concatenation (or (distinct) union). Shameless plug: I have such a function in my 'nsc-puppet-utils' module at http://www.nsc.liu.se/~bellman/nsc-puppet-utils.git. :-) (

[Puppet Users] Bacula Puppet Type

2009-08-25 Thread S H
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 still have a few bugs to clean up. Most likely it'll be ready

[Puppet Users] Re: onlyif/unless vs. if

2009-08-25 Thread Thomas Bellman
Allan Marcus wrote: > This has probably been discussed, but I would like an exec to only be > executed if a facter variable is true. Seems there are two ways of > doing this, but I can only get the "if" way to work. > > # $lanl_sav_defdate is a custom fact > # make sure the live update file

[Puppet Users] Re: onlyif/unless vs. if

2009-08-25 Thread David Schmitt
Thomas Bellman wrote: > Allan Marcus wrote: > >> This has probably been discussed, but I would like an exec to only be >> executed if a facter variable is true. Seems there are two ways of >> doing this, but I can only get the "if" way to work. >> >> # $lanl_sav_defdate is a custom fact >> #

[Puppet Users] Re: onlyif/unless vs. if

2009-08-25 Thread Nigel Kersten
On Tue, Aug 25, 2009 at 9:00 AM, David Schmitt wrote: > > Thomas Bellman wrote: >> Allan Marcus wrote: >> >>> This has probably been discussed, but I would like an exec to only be >>> executed if a facter variable is true. Seems there are two ways of >>> doing this, but I can only get the "if" way

[Puppet Users] Re: Bacula Puppet Type

2009-08-25 Thread Larry Ludwig
Hi Shawn, I would like to see that type. -L On Aug 25, 2009, at 11:08 AM, 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 > le

[Puppet Users] [warn] proxy: No protocol handler was valid for the URL /RPC2

2009-08-25 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. My apache2 puppetmaster.conf file is: PidFile /var/run/apache2-puppetmaster.pid # Include module configuration: Include /etc/apache2/mods-enabled/*

[Puppet Users] Re: onlyif/unless vs. if

2009-08-25 Thread Allan Marcus
Ahhh! Ok, I get it now. Thanks for all the advice. --- Thanks, Allan Marcus 505-667-5666 On Aug 25, 2009, at 8:39 AM, Allan Marcus wrote: > > This has probably been discussed, but I would like an exec to only be > executed if a facter variable is true. Seems there are two ways of > doing thi

[Puppet Users] Re: tidying up

2009-08-25 Thread Marc Fournier
Hello, > I've got a nice little VirtualBox test VLAN with a puppetmaster and 3 > nodes, and I use it for trying out new classes before they go to the > real puppetmaster for testing. > > After a few months of playing around, my poor little puppets are > running all sorts of rubbish; NFS, network

[Puppet Users] Notify someone on failure

2009-08-25 Thread chakkerz
Hello there I have puppet managing a fair few hosts but because we are still testing (and later for peace of mind) we'd like to hear from hosts that are failing their puppet run. I had a look at the configuration reference on reductivelabs but i can't see anything that appears relevant. Does any

[Puppet Users] Re: Notify someone on failure

2009-08-25 Thread Nigel Kersten
You might want to have a look at: http://projects.reductivelabs.com/issues/1934 to add exit codes to puppetd --onetime runs at least. Otherwise you should implement reports and examine those I guess. On Tue, Aug 25, 2009 at 5:52 PM, chakkerz wrote: > > Hello there > > I have puppet managing a

[Puppet Users] Re: Notify someone on failure

2009-08-25 Thread Robin Sheat
Op woensdag 26 augustus 2009 12:52:13 schreef chakkerz: > I have puppet managing a fair few hosts but because we are still > testing (and later for peace of mind) we'd like to hear from hosts > that are failing their puppet run. I did this to make it work with Nagios: http://www.kallisti.net.nz/bl

[Puppet Users] Re: proxy: No protocol handler was valid for the URL /RPC2 (SOLVED)

2009-08-25 Thread ELTigre
I changed the entry: to this: and changed too this two entries ProxyPass / balancer://localhost:8140/ ProxyPassReverse / balancer://localhost:8140/ to these one: ProxyPass / balancer://puppetmaster.domain:8140/ ProxyPassReverse / balancer://puppetmaster.domain:8140/ everything is working n

[Puppet Users] Re: Notify someone on failure

2009-08-25 Thread Ohad Levy
a few options 1. if you dont have a lot of clients, use the build in tagmail report which sends email with every change. 2. write your own custom puppet report that does something. 3. parse the reports and import them to a db whatever 4. wait a bit until the puppet web interface is ready ;) Ohad

[Puppet Users] Re: Notify someone on failure

2009-08-25 Thread Larry Ludwig
On Aug 25, 2009, at 9:06 PM, Robin Sheat wrote: > Op woensdag 26 augustus 2009 12:52:13 schreef chakkerz: >> I have puppet managing a fair few hosts but because we are still >> testing (and later for peace of mind) we'd like to hear from hosts >> that are failing their puppet run. > > I did this

[Puppet Users] Re: Notify someone on failure

2009-08-25 Thread Len Rugen
What about checking the last-update times of the /var/lib/puppet.yaml files on the puppetmaster? I've looked at this manually just to see if a host stopped checking in, but not automated anything. On Tue, Aug 25, 2009 at 9:21 PM, Ohad Levy wrote: > a few options > > 1. if you dont have a lo

[Puppet Users] Re: Notify someone on failure

2009-08-25 Thread chakkerz
Yeah, the timestamp is useful but only shows a complete failure, that is one in which the host didn't make contact (i could be wrong). And i had been using that, but i discovered this morning that one of my hosts was working, but it would hit an error and fail. The timestamp didn't give it away:

[Puppet Users] Re: Notify someone on failure

2009-08-25 Thread Larry Ludwig
On Aug 25, 2009, at 11:44 PM, chakkerz wrote: > > Yeah, the timestamp is useful but only shows a complete failure, that > is one in which the host didn't make contact (i could be wrong). Communication failure AND a manifest that cannot compile on the puppetmaster will cause the yaml file to g

[Puppet Users] Re: Notify someone on failure

2009-08-25 Thread Robin Sheat
Op woensdag 26 augustus 2009 15:44:21 schreef chakkerz: > Yeah, the timestamp is useful but only shows a complete failure, that > is one in which the host didn't make contact (i could be wrong). It has alerted me to faults where the catalogue wouldn't compile due to syntax errors or whatever (it'

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

2009-08-25 Thread robbyt
> > 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 Resources

[Puppet Users] hashes as variables in templtes

2009-08-25 Thread Matt Delves
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 => "-", :group => "disallowedpeople", :ru

[Puppet Users] Re: 0.25.0rc1, modules, and custom types

2009-08-25 Thread Larry Ludwig
I am also seeing this same issue with a migration config I am testing so the upgrade to 0.25 is a smooth one. -L -- Larry Ludwig Reductive Labs --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" grou