[Puppet Users] Package conditional statement

2009-02-04 Thread Kenneth Holter
Hello list. Can I use puppet conditionals to check if a package is installed/available for install, and act depending on the result? More precisely, this is what I'd like to do: 1. If package rsyslog is installed or available for install, then include class that configures rsyslog 2. El

[Puppet Users] Re: Defining more than one solaris zone in nodes.pp

2009-02-04 Thread paul matthews
Superb, Matt. Thanks very much. I'll have a go at implementing this today I also had another look at Pulling Strings with Puppet last night and came across a recipe on P117 which uses an apache virtual host scenario involving definition statements, an erb template and the variables being set in th

[Puppet Users] Issue with template.pp

2009-02-04 Thread linuxbsdfreak
Hi i am creating a template.pp for different OS.. Following is my template.pp file node basenode { case $operatingsystem { fedora: { include fedora } default: { include debian } } include baseapps, sshd, admin, default } <=== line 7 node default inher

[Puppet Users] Re: Puppet can't find LDAP group when configuring LDAP client.

2009-02-04 Thread Brian
Hi Gary, I am changing nsswitch to query ldap, but it looks like puppet cache's all the groups / users at the start of a pass hence it can't see the changes. Specifying the group by number is a good idea, but it won't work for me as the gid won't be consistent (the same module connects to differe

[Puppet Users] Re: remove & reinstall a package

2009-02-04 Thread Peter Meier
Hi > but I'd like to know if this is possible with package type. no, I don't think so. The "problem" is that each resource have to uniquely identified and as the package is called twice the same, this won't work. However I would say as this is rather a one-shot-special-task, which isn't re

[Puppet Users] Re: remove & reinstall a package

2009-02-04 Thread Arnau Bria
I've created alittle script with yum install / remove and done something liek: exec {"lhcb_patch": command => "/usr/local/sbin/lhcb.sh", timeout => "-1", unless => "file /opt/d-cache/dcap/lib/libdcap.so|grep 32-bit >/dev/null", }

[Puppet Users] Re: Can't connect to LDAP server

2009-02-04 Thread s...@imperial.ac.uk
On Jan 30, 9:06 pm, Larry Ludwig wrote: > On Jan 30, 10:33 am, "s...@imperial.ac.uk" > wrote: > > > Hi appreciate your help. > > I am new to puppet. I have taken over a system. > > > Running Debian v4.0 > > Puppetmaster & puppet v0.20.1-1 > > > I keep getting the following error from pu

[Puppet Users] Re: Testing puppet manifests

2009-02-04 Thread Matt
Hi Nigel, I gather you run puppet --parseonly for each new file that svn is going to commit. Do you have your pre-hook to share? Thanks, Matt 2009/1/7 Nigel Kersten > We use environments for a release process, so we can test releases before > pushing them to our stable environments. > You ca

[Puppet Users] my badly broken fact

2009-02-04 Thread Ben Hughes
Hi all. I've got this fact, trying to use it with the munin module from DavidS to work out which drives to graph. Fairly run of the mill, but when ever I add this in to my facter folder. Puppet barfs with a Timeout::Error [r...@foo-vm:~]# invoke-rc.d puppet start Starting puppet configuration

[Puppet Users] remove & reinstall a package

2009-02-04 Thread Arnau Bria
Hi, I have a distro problem with a couple of pacakges (I will be fixed in next release). Package A.i586 and A.x86_64 do install libraries in same place. So libraries are 64 bits or 32 depending in the order of A package installation (both belong to a yum group). Now seems that metpackage (yum g

[Puppet Users] Puppet && OMA-DM interoperability

2009-02-04 Thread Tom D. Davidson
Hi, can Puppet have interoperability with OMA-DM? http://en.wikipedia.org/wiki/OMA_Device_Management My purpose would be to use an existing OMA-DM solution to manage the devices but use Puppet to implement the web services on the client side. With Puppet, I do not quite understand how the server

[Puppet Users] Re: Thanks for coming out last night, and sorry for the venue confusion. Planning future meetings.

2009-02-04 Thread Joel Merrick
On Wed, Feb 4, 2009 at 6:53 PM, Brian Gupta wrote: > > > It would be good to hear people's thoughts on what kind of meetings we > should be having. (I'm thinking maybe alternating technical/social, > with the occasional outreach meeting with another user group - e.g. - > We haven't presented with

[Puppet Users] Thanks for coming out last night, and sorry for the venue confusion. Planning future meetings.

2009-02-04 Thread Brian Gupta
Good to see some new and familiar faces... I had a great time. One thing that I'd like to discuss is what kind of meetings we have had so far, and what kind of meetings people would like to see in the future. In the past we have had two types of "meetings" 1) Socials (at bar/restaurant, with no

[Puppet Users] short blog about the NY Puppet Users Group meeting

2009-02-04 Thread Steven Jenkins
I just put up a short blog about last night's NY Puppet Users Group meeting: http://blog.endpoint.com/2009/02/ny-puppet-users-group-meeting.html Thanks again to Brian and Larry for their hard work in coordinating that event. Great job! Steven Jenkins End Point Corporation --~--~-~-

[Puppet Users] what about kinial ?

2009-02-04 Thread benoit
Hi, I was looking for a solution to change the value of a variable using include (http://reductivelabs.com/trac/puppet/wiki/ CommonMisconceptions), and found an interesting solution on the kinial SPEC (http://reductivelabs.com/trac/puppet/wiki/KinialSpec). But I can't find more about this project

[Puppet Users] shorewall module

2009-02-04 Thread Scott Beardsley
Does anyone have the source for a *working* shorewall module? I've searched the list and the interwebs and it looks like a few other are having the same problems. Namely: Configuration could not be instantiated: Could not find dependent Exec [concat_/var/lib/puppet/modules/shorewall/policy.d] I

[Puppet Users] Problem with some of my puppet clients running

2009-02-04 Thread Steven Nemetz
All my puppet clients were running ok. Then 2 things happened yesterday: 1) I had puppet upgrade facter to 1.5.3 everywhere. Most were running 1.3.8 prior. 2) We had network problem, causing one of our datacenters to go offline The network problems have been fixed and was not r

[Puppet Users] Re: Thanks for coming out last night, and sorry for the venue confusion. Planning future meetings.

2009-02-04 Thread Larry Ludwig
On Feb 4, 1:59 pm, Joel Merrick wrote: > On Wed, Feb 4, 2009 at 6:53 PM, Brian Gupta wrote: > > > It would be good to hear people's thoughts on what kind of meetings we > > should be having. (I'm thinking maybe alternating technical/social, > > with the occasional outreach meeting with another

[Puppet Users] Re: Modules Site?

2009-02-04 Thread Luke Kanies
On Jan 29, 2009, at 9:55 AM, Dayglo Jesus wrote: > Hi, > > I am a new user, still poking around, lurking... > > Can anyone update me on what is happening with > http://modules.reductivelabs.com/? > > The index page loads, but I receive a 404 when I try to access the > modules list. Hmm, I ha

[Puppet Users] Re: puppet webserver

2009-02-04 Thread Luke Kanies
On Jan 27, 2009, at 12:29 PM, Tom D. Davidson wrote: > > Thank you for your help. BTW, when i said, "...despite the resistance > of other web servers..." i meant "existence of other web servers". > > "Very low resources" in the range of ~32mb RAM. > > The device to be managed by puppet will opti

[Puppet Users] Re: Quote, dollar and pipe

2009-02-04 Thread Luke Kanies
On Jan 28, 2009, at 6:18 PM, Rob Chanter wrote: > > On Wed, Jan 28, 2009 at 7:26 AM, Luke Kanies wrote: >> Heh, sorry; I was trying to dredge up an appropriate response en >> Français and failed, > > Would that be "de rien, et bienvenue"? Oui, merci. -- True Terror is to wake up one morning a

[Puppet Users] Re: module creation script

2009-02-04 Thread Luke Kanies
On Jan 28, 2009, at 7:33 PM, chakkerz wrote: > Hello there > > I've written a script that generates a skeleton module, i was going to > drop it onto the recipe page, alas i can't edit that... You might try integrating it with this: http://github.com/albanpeignier/gepetto/ -- Hanlon's razor:

[Puppet Users] Re: File 'replace => false' doesn't match my expectations...

2009-02-04 Thread Luke Kanies
On Jan 30, 2009, at 9:54 AM, Jeff wrote: > > On Jan 28, 7:18 pm, Andrew Shafer wrote: >> Jeff, >> >> What version of Puppet are you using? > > Andrew, > > Each time I used a template, it overwrote a changed file. Each time I > used a source, it did not. > > Version: 0.24.4 > > I just tested one

[Puppet Users] Re: Gepetto

2009-02-04 Thread Luke Kanies
On Feb 3, 2009, at 1:50 PM, Alban Peignier wrote: > > Hi all, > > This "Gepetto" is the irc bot of #puppet. This Gepetto is a tool to > make > easier puppet development ;) > > In fact, nothing very special. I'm a rails developper and a puppet > user. > I created several pieces of code to pupp

[Puppet Users] Re: what about kinial ?

2009-02-04 Thread Luke Kanies
On Feb 4, 2009, at 1:20 PM, benoit wrote: > > Hi, > > I was looking for a solution to change the value of a variable using > include (http://reductivelabs.com/trac/puppet/wiki/ > CommonMisconceptions), and found an interesting solution on the kinial > SPEC (http://reductivelabs.com/trac/puppet/wi

[Puppet Users] Re: Problem with some of my puppet clients running

2009-02-04 Thread Luke Kanies
On Feb 4, 2009, at 6:49 PM, Steven Nemetz wrote: > All my puppet clients were running ok. > Then 2 things happened yesterday: > 1) I had puppet upgrade facter to 1.5.3 everywhere. Most were > running 1.3.8 prior. > 2) We had network problem, causing one of our datacenters to > go

[Puppet Users] Re: my badly broken fact

2009-02-04 Thread Luke Kanies
On Feb 4, 2009, at 8:26 AM, Ben Hughes wrote: > > Hi all. > > I've got this fact, trying to use it with the munin module from DavidS > to work out which drives to graph. Fairly run of the mill, but when > ever > I add this in to my facter folder. Puppet barfs with a Timeout::Error > > [r...@foo

[Puppet Users] Re: Puppet && OMA-DM interoperability

2009-02-04 Thread Luke Kanies
On Feb 4, 2009, at 12:27 PM, Tom D. Davidson wrote: > Hi, can Puppet have interoperability with OMA-DM? > http://en.wikipedia.org/wiki/OMA_Device_Management > > My purpose would be to use an existing OMA-DM solution to manage the > devices but use Puppet to implement the web services on the cli

[Puppet Users] Re: Puppet && OMA-DM interoperability

2009-02-04 Thread Tom D. Davidson
> > > I'd never seen this before, so at this point Puppet definitely can't > speak OMA-DM. > > I could see the ability to do so, but someone who was an expert on OMA- > DM would need to do the connecting. You'd probably need to push the > configs, rather than Puppet's traditional pull model, thoug

[Puppet Users] Re: Issue with template.pp

2009-02-04 Thread Andrew Shafer
It is breaking on include baseapps, sshd, admin, default get rid of default and it should work On Wed, Feb 4, 2009 at 2:34 AM, linuxbsdfreak wrote: > > Hi i am creating a template.pp for different OS.. Following is my > template.pp file > > node basenode { > case $operatingsystem {

[Puppet Users] Re: Facter - the future - your input needed

2009-02-04 Thread Luke Kanies
On Jan 30, 2009, at 3:40 AM, udo waechter wrote: > > Hello, > On 29.01.2009, at 22:55, James Turnbull wrote: > >> >> 1. Namespaces - add a namespace or tiered namespace to Facter, i.e. >> network -> interface -> ipaddress. > This would be a great thing to have. Additionally it would be cool to >

[Puppet Users] Re: Facter - the future - your input needed

2009-02-04 Thread Luke Kanies
On Jan 30, 2009, at 6:10 AM, Mike Pountney wrote: > > > On 30 Jan 2009, at 10:24, James Turnbull wrote: >> 1. Namespaces - add a namespace or tiered namespace to Facter, i.e. >> network -> interface -> ipaddress. > > I like this idea, but how would it work in both facter output (would > it force

[Puppet Users] Re: Facter - the future - your input needed

2009-02-04 Thread Luke Kanies
On Jan 31, 2009, at 9:31 AM, Don Jackson wrote: > > >> 2. Additional output formats - JSON, XML? (winces) - Facter already >> outputs in YAML. > > I'd vote for adding an optional output format to easily support > shell scripts: > > Here is the shell compatible output of another tool I use: > >

[Puppet Users] Re: Facter - the future - your input needed

2009-02-04 Thread Luke Kanies
On Feb 1, 2009, at 1:07 AM, Sam Rowe wrote: > I'm guessing this isn't the variety of feedback you're looking for, > but just in case: > > We recently upgraded a couple of machines from facter 1.3.x to facter > 1.5.x and were very dismayed to learn that $operatingsystemrelease on > Solaris had cha

[Puppet Users] Re: Facter - the future - your input needed

2009-02-04 Thread Luke Kanies
On Feb 1, 2009, at 1:18 AM, Sam Rowe wrote: > > Oh and one other thing about 'facter.d' it'd be cool if there was some > way to say that a given fact (or set of facts) is cache-able. Perhaps > your fact is resource intensive to discover and doesn't change much. > It'd be cool to have a built-in f

[Puppet Users] Re: Facter - the future - your input needed

2009-02-04 Thread Luke Kanies
On Feb 1, 2009, at 10:42 PM, Nigel Kersten wrote: > On Sun, Feb 1, 2009 at 10:41 AM, Paul Lathrop > wrote: >> >> I don't think that belongs in facter; it belongs in the fact itself. > > Sure, but should everyone have to write the same code to do it? > > Why not have a simple declaration in you

[Puppet Users] Re: Can't connect to LDAP server

2009-02-04 Thread Andrew Shafer
John I believe your puppet version is too old. Looks like the LDAP feature is not defined yet in the version you have. Andrew On Wed, Feb 4, 2009 at 7:58 AM, s...@imperial.ac.uk wrote: > > > > > > > > > > > On Jan 30, 9:06 pm, Larry Ludwig wrote: > > On Jan 30, 10:33 am, "s...@imperial.ac.uk