Re: [Puppet Users] Warning message from custom fact

2010-04-30 Thread Trevor Vaughan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, This is *completely* shooting from the hip, but I'm guessing that there may be an issue with the fact files being pulled in as some sort of dynamically created object. If this is the case, then what you have below would be trying to re-declare

Re: [Puppet Users] Puppetmaster filing up /var/log/messages

2010-04-30 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > The names of the hosts have been changed to protect the innocent. > > Puppetmaster is version 24.8 and running on FreeBSD 7.2. can you check how your puppetmaster is started? sometimes init script add additional cli parameters which overwrite what

[Puppet Users] Puppetmaster filing up /var/log/messages

2010-04-30 Thread JoE
Puppetmaster is filling up /var/log/messages even though logdir is set to /var/puppet/log/ and masterlog = /var/puppet/log/puppetmaster.log. There is however no file /var/puppet/log/puppetmaster.log These are the messages being filled in /var/log/messages: Apr 30 17:41:44 server puppetmasterd[9721

[Puppet Users] SSL issues when testing - This is how to fix

2010-04-30 Thread Gabriel - IP Guys
Dear everyone! I’ve been suffering all week to fix all manner of SSL issues on my test setup, not realizing that it was my puppet master where I had made a mistake. I’ve spoken to people in the IRC room for long enough to know that a lot of people have this problem, so I’ve come up with a quick

[Puppet Users] Re: LF complete recipe bundle

2010-04-30 Thread Al @ Lab42
> Besides the execellent example42 stuff, there's also my (almost) > complete configuration available at > > http://projects.reductivelabs.com/projects/puppet/wiki/Complete_Confi... To hear this from the Father of Puppet Modules Collections is a great honour :-) Really hope to meet you, and ot

Re: [Puppet Users] Puppetmaster child processes hang

2010-04-30 Thread S H
On Tue, Apr 27, 2010 at 1:57 PM, Patrick wrote: > > On Apr 27, 2010, at 10:51 AM, Charles Johnson wrote: > > Mine do not look too dissimilar: > > PassengerUseGlobalQueue on > PassengerMaxPoolSize 20 > PassengerHighPerformance on > PassengerPoolIdleTime 1800 > PassengerStatThrottleRate 120 > RackA

Re: [Puppet Users] Re: Puppet manifests under version control issue

2010-04-30 Thread Brad Lhotsky
I just put up a subversion pupppet module for automated deployment from release tags: http://github.com/reyjrar/svnutils I wrote a wrapper script for deploying the /etc/puppet stuff: #!/bin/bash BINDIR="/opt/local/sbin" SVNURL="svn+ssh://svn/path/to/puppet" TARGET="/etc/puppet" BACKUP="/etc/pup

[Puppet Users] Demand for Puppet Class in Ottawa, Canada?

2010-04-30 Thread Alan McKay
On Fri, Apr 30, 2010 at 9:32 AM, Michael DeHaan wrote: > You might also want to go to our Puppet class... it's very good for > understanding why you would use all of the various components in > conjunction with one another. > We've got one in DC coming up soon and are going to be in the Bay Area >

Re: [Puppet Users] Using classes from extnode to define config files?

2010-04-30 Thread Michael DeHaan
> > Does anyone know how to achieve the above in a "prettier" fashion? Thinking about it some more... Create a baseclass called "exim" and subclasses called "exim:web" and "exim:smtp" Have the class "webserver" include exim:web and the class "smtpserver" include "exim:smtp". --Michael -- You

Re: [Puppet Users] Using classes from extnode to define config files?

2010-04-30 Thread Matt Wallace
On Fri, 2010-04-30 at 12:10 +0200, Peter Meier wrote: > > but I'm not too sure how to set the value of $CLASSNAME. > > we do something similar: > > file{'/etc/exim/exim.conf': >source => [ "puppet://$server/modules/site-exim/${fqdn}/exim.conf", >"puppet://$server/modules/site-

Re: [Puppet Users] macaddress fact

2010-04-30 Thread Michael DeHaan
On Fri, Apr 30, 2010 at 2:16 AM, Daniel Pittman wrote: > "Marcus, Allan B" writes: > >> How does puppet determine the macaccess fact? For example, my MacPro has two >> enternet ports. >> >> macaddress => 00:25:00:ef:fb:ce >> macaddress_en0 => 00:25:00:ef:cf:a1 >> macaddress_en1 => 00:25:00:ef:fb:

Re: [Puppet Users] LF complete recipe bundle

2010-04-30 Thread Michael DeHaan
On Fri, Apr 30, 2010 at 9:26 AM, Alan McKay wrote: >> http://projects.reductivelabs.com/projects/puppet/wiki/Complete_Configuration > > Excellent!  I had not found that! > > This was my biggest problem with Puppet the last time I looked at it > about 6 or 7  months ago - I understood the concepts

Re: [Puppet Users] LF complete recipe bundle

2010-04-30 Thread Alan McKay
> http://projects.reductivelabs.com/projects/puppet/wiki/Complete_Configuration Excellent! I had not found that! This was my biggest problem with Puppet the last time I looked at it about 6 or 7 months ago - I understood the concepts of what the docs were telling me, but I needed a "big picture

Re: [Puppet Users] use both ldap and text files

2010-04-30 Thread Michael DeHaan
/etc/puppet/manifests/site.pp (which probably loads your nodes.pp) and an external node source can be used together. So if you have an external nodes tool that queries LDAP, it would also work with site.pp http://docs.puppetlabs.com/guides/external_nodes.html On Fri, Apr 30, 2010 at 7:07 AM, wa

Re: [Puppet Users] how to keep persistent ldap connection

2010-04-30 Thread Michael DeHaan
On Fri, Apr 30, 2010 at 7:06 AM, walexey wrote: > I want to create 3-5 custom functions, in different modules, that will > be retrieve different information from ldap. > But i don't wan't to copy-pastenot-so-simple ldap login code between > different functions. How can i prepare connection to ldap

Re: [Puppet Users] Re: custom type/provider load error

2010-04-30 Thread Frederik Wagner
On Fri, Apr 30, 2010 at 1:33 PM, Paul Seymour wrote: > > On 30 Apr 2010, at 12:27, Paul wrote: > > Hello, > > Did this ever get an answer ? > > I am hitting the same thing. > > > Dammit the error I am seeing is:- > err: Could not load downloaded file > /var/lib/puppet/lib/puppet/provider/sysctl/pa

Re: [Puppet Users] Some advice on using hashes in ERB templates needed

2010-04-30 Thread Michael DeHaan
On Fri, Apr 30, 2010 at 9:18 AM, Michael DeHaan wrote: >> >> Now I want to iterate over the 'workers' inside the ERB template and tried >> (among others) this: >> >>     16 <% workers.each do |worker| -%> >>     17 <%= @m_worker = Marshal.load(worker) %> >>     18 worker.<%= worker %>.type=<%= @m

Re: [Puppet Users] Some advice on using hashes in ERB templates needed

2010-04-30 Thread Michael DeHaan
> > Now I want to iterate over the 'workers' inside the ERB template and tried > (among others) this: > >     16 <% workers.each do |worker| -%> >     17 <%= @m_worker = Marshal.load(worker) %> >     18 worker.<%= worker %>.type=<%= @m_worker.type %> >     ... >     25 >     26 <% end -%> > > Acce

Re: [Puppet Users] Using classes from extnode to define config files?

2010-04-30 Thread Michael DeHaan
This will work, but I'd use a selector. Search for "selector" in this document: http://docs.puppetlabs.com/guides/more_language.html The reason being, is you could supply a default if no match was found, rather than it just generating an error. I would use one to assign a variable to the templ

[Puppet Users] how to keep persistent ldap connection

2010-04-30 Thread walexey
I want to create 3-5 custom functions, in different modules, that will be retrieve different information from ldap. But i don't wan't to copy-pastenot-so-simple ldap login code between different functions. How can i prepare connection to ldap server before compiling recipes, use this connection fro

[Puppet Users] use both ldap and text files

2010-04-30 Thread walexey
How can i use for node definitions both /etc/puppet/manifests/nodes.pp and ldap? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to p

Re: [Puppet Users] Re: custom type/provider load error

2010-04-30 Thread Paul Seymour
On 30 Apr 2010, at 12:27, Paul wrote: > Hello, > > Did this ever get an answer ? > > I am hitting the same thing. > Dammit the error I am seeing is:- err: Could not load downloaded file /var/lib/puppet/lib/puppet/provider/sysctl/parsed.rb: undefined method `provide' for nil:NilClass -- Y

[Puppet Users] Re: custom type/provider load error

2010-04-30 Thread Paul
Hello, Did this ever get an answer ? I am hitting the same thing. Cheers Paul -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to p

Re: [Puppet Users] Using classes from extnode to define config files?

2010-04-30 Thread Peter Meier
but I'm not too sure how to set the value of $CLASSNAME. we do something similar: file{'/etc/exim/exim.conf': source => [ "puppet://$server/modules/site-exim/${fqdn}/exim.conf", "puppet://$server/modules/site-exim/${exim_type}/exim.conf", "puppet://$server/modules/

[Puppet Users] Using classes from extnode to define config files?

2010-04-30 Thread Matt Wallace
Hi all, I'm using cobbler as our external node manager and it's working really well (including deployment of ActiveMQ from RI's RPMS and Mcollective - blog post coming soon!) however I've run into a problem with exim configuration files. We use exim in a number of different configurations dependi

Re: [Puppet Users] LF complete recipe bundle

2010-04-30 Thread David Schmitt
On 4/29/2010 7:23 PM, Alan McKay wrote: Hey folks, I've seen the recipes page and smatterings of "this-and-that", but what I'd really like to see is a big tarball of someone's entire /etc/puppet directory on their puppetmaster, to be able to see the interactions between all the different compone

[Puppet Users] Some advice on using hashes in ERB templates needed

2010-04-30 Thread Bernd Adamowicz
Hi all, I'm working with Puppet version 0.25.4 and as far as I have read in this list it's not possible to access complex data structures from within an ERB template, instead serializing is needed. Due to my lack of Ruby knowledge I didn't find the right solution for this problem: Given this Y

[Puppet Users] Re: Puppet manifests under version control issue

2010-04-30 Thread Maxim Ianoglo
Hello, Here it is: #!/bin/sh REPOS="$1" TXN="$2" # synthax check of commited sources PATH='/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/bin:/sbin:/ usr/bin:/usr/sbin:' tmpfile=`mktemp` export HOME=/ SVNLOOK=/usr/bin/svnlook $SVNLOOK changed -t "$TXN" "$REPOS" | awk '{print $2}' | grep '