Re: [Puppet Users] puppet ignoring facts?

2010-04-19 Thread Ohad Levy
I've seen cases where there were white spaces at the end of the fact name, double check your facts yaml file on the master (~puppet/yaml/facts/hostname) Ohad On Tue, Apr 20, 2010 at 2:39 PM, Rene wrote: > Hi > > I have the following module for installing HP software on HP Servers: > class hpasm

Re: [Puppet Users] puppet ignoring facts?

2010-04-19 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > But this should not be. Has Puppet problems, when I have serveral > words in afact, since it works perfectly for Xen Systems. as far as I can see not: $ cat foo.pp $manufacturer1 = 'Xen' if ($manufacturer1 == 'Xen') or ($manufacturer1 == 'Sun Micro

[Puppet Users] puppet ignoring facts?

2010-04-19 Thread Rene
Hi I have the following module for installing HP software on HP Servers: class hpasm { tag('hpasm') $packagelist = [ "hpasm", "hpacucli" ] if ($manufacturer == 'Xen') or ($manufacturer == 'Sun Microsystems'){ } else { file { "/opt/compaq": owner => root,

Re: [Puppet Users] Default Gateway facter problems

2010-04-19 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > distid = Facter.value('lsbdistid') > if distid.match(/RedHatEnterprise|CentOS|Fedora/) sidenote: you can use confine for such things. [...] > I can see the fact on the client node (but only if I add "--puppet"): > # facter --puppet|

Re: [Puppet Users] Default Gateway facter problems

2010-04-19 Thread Daniel Pittman
Scott Beardsley writes: > I was slightly surprised to see that there is no "gateway" fact. Er, this fact is mostly unhelpful: there is no "gateway" — there are zero-or-more gateways, depending on the route on the server, which may or may not get used to communicate to any given destination. A n

[Puppet Users] Logging on Puppetmaster 0.25.4/Passenger-2.2.8

2010-04-19 Thread dmangot
I just upgraded my puppetmaster from 0.25.1 to 0.25.4 using the EPEL packages. Now, I can't see any of the logging when hosts connect to my puppetmaster except for in the passenger/apache logs. The only exception to this rule is when the puppetmaster connects to itself, then I can see the normal

[Puppet Users] Default Gateway facter problems

2010-04-19 Thread Scott Beardsley
I was slightly surprised to see that there is no "gateway" fact. I poked around and it seems easy enough to add but I'm running into a problem... My gateway.rb looks like: # gateway.rb Facter.add("gateway") do setcode do begin Facter.lsbdistid rescue Fa

Re: [Puppet Users] Re: Fabric vs ControlTier

2010-04-19 Thread Michael DeHaan
>> Are there any Puppet modules available for Func and MCollective >> agents? Ah, Puppet modules. I read that backwards, sorry :) > > Func: http://puppet-modules.git.puzzle.ch/?p=module-func.git Nice! Yeah, just basic service-package-file. Looks good! --Michael -- You received this message

Re: [Puppet Users] Re: Fabric vs ControlTier

2010-04-19 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/19/2010 07:26 PM, SyRenity wrote: >> Just to clarify, Func does not use SSH.It uses XMLRPC over SSL, very >> similar >> to how Puppet works (no REST though), and has a daemon. > > I see, so Fabric is actually the only tool which allows agen

[Puppet Users] getting a list of rules out of iptables

2010-04-19 Thread seph
I've been using camptocamp's iptables module. It works pretty well, lets me define rules in various modules, etc. Now I find myself needing to generate a commented list of it's rules. I notice that the README has a nice exec suggestion. But, when I try it, I can't get it to work. In my iptables/ma

Re: [Puppet Users] ad hoc tasks with puppet

2010-04-19 Thread Michael DeHaan
On Mon, Apr 19, 2010 at 2:51 PM, Sukh Khehra wrote: > Thanks for your reply. On my tags question I used the class as an > example because I read that puppet auto creates a tag using the class > name. My question really is whether the resource referenced by the tag > should already be assigned to t

RE: [Puppet Users] ad hoc tasks with puppet

2010-04-19 Thread Sukh Khehra
Thanks for your reply. On my tags question I used the class as an example because I read that puppet auto creates a tag using the class name. My question really is whether the resource referenced by the tag should already be assigned to the host via node classification for this to work. E.g. lets

Re: [Puppet Users] ad hoc tasks with puppet

2010-04-19 Thread Michael DeHaan
On Mon, Apr 19, 2010 at 12:42 PM, Sukh Khehra wrote: > I have a need to audit user accounts on all of my puppet clients. > Essentially, I need to collect the password and shadow file from all of my > clients to one central location and analyze them. How would someone do this > using puppet. Is the

Re: [Puppet Users] Re: Fabric vs ControlTier

2010-04-19 Thread Michael DeHaan
> I see, so Fabric is actually the only tool which allows agent-less > operations. aka Distributed SSH? There are others, not sure of any that make it into more of a language. > > Are there any Puppet modules available for Func and MCollective > agents? Not for Func, but I'm sure they would lik

Re: [Puppet Users] Re: Fabric vs ControlTier

2010-04-19 Thread R.I.Pienaar
hey, - "SyRenity" wrote: > Hi. > > > What kind of tools do you mean? I deploy code with OS packages so > that makes it easy > > the package agent actually uses the Puppet provider code to do the > install/update/etc > > so it's cross platform. > > You mean you package your code as RPM/DEB,

[Puppet Users] Re: Fabric vs ControlTier

2010-04-19 Thread SyRenity
> Just to clarify, Func does not use SSH.    It uses XMLRPC over SSL, very > similar > to how Puppet works (no REST though), and has a daemon. I see, so Fabric is actually the only tool which allows agent-less operations. Are there any Puppet modules available for Func and MCollective agents? T

[Puppet Users] Re: Fabric vs ControlTier

2010-04-19 Thread SyRenity
Hi. > What kind of tools do you mean? I deploy code with OS packages so that makes > it easy > the package agent actually uses the Puppet provider code to do the > install/update/etc > so it's cross platform. You mean you package your code as RPM/DEB, and then install it via package agent (whic

[Puppet Users] Puppet Training in DC Area Scheduled for May 18, 19, 20

2010-04-19 Thread scramble
Puppet Labs, Inc. is proud to announce our first open-enrollment Puppet training in the DC area. Location: Training, etc. 7150 Riverwood Drive, Columbia, MD Dates: May 18, 19, 20 Register & Get More Information: http://www.puppetlabs.com/events/dc-area-training/ Becoming a Puppet Master Pu

[Puppet Users] ad hoc tasks with puppet

2010-04-19 Thread Sukh Khehra
I have a need to audit user accounts on all of my puppet clients. Essentially, I need to collect the password and shadow file from all of my clients to one central location and analyze them. How would someone do this using puppet. Is there any mechanism to ship files to the master from the client?

[Puppet Users] puppetrun and ldap question

2010-04-19 Thread Jamaludin Ahmad
Hi All, I'm new to puppet, I just recently setup it on my servers, using puppet 0.25.4 with ldap external node and mongrel+nginx as frontend. Pretty much happy about it, except by the fact that I can't get puppetrun to work as expected. "puppetrun --host fqdn" works well, but that's all. "pupp

Re: [Puppet Users] Re: Fabric vs ControlTier

2010-04-19 Thread Michael DeHaan
> You probably mean that just for firing commands over group of > machines, it's better to be done in "SSH loop" tools, like Func/Fabric/ > etc, as it doesn't require client installation? Just to clarify, Func does not use SSH.It uses XMLRPC over SSL, very similar to how Puppet works (no REST

[Puppet Users] Re: Could not create PID file error when .svn directory exists.

2010-04-19 Thread Mike
Yes, when the .svn directory exists it throws the error: Could not run: Could not create PID file: /var/run/puppet/ puppetmasterd.pid On Apr 18, 3:34 pm, Tore wrote: > Did you try to start puppetmaster prior you removed the .svn > directory? > > On Apr 15, 11:18 pm, Mike wrote: > > > > > > > G

Re: [Puppet Users] Evaluate the value of a variable's value

2010-04-19 Thread Dan Carley
On 18 April 2010 04:24, Andrew Heagle wrote: > Hi, > > Is it possible for puppet to do the equivalent to this in bash: > and...@comet:~$ a=1 > and...@comet:~$ x="a" > and...@comet:~$ eval echo \$$x > 1 > > Or this perl: > #!/usr/bin/perl > $a=1; > $x="a"; > print $$x; > (Output would be 1) > > Or

[Puppet Users] Migration from 0.24.X to 0.25.x : "Global resource access is deprecated"

2010-04-19 Thread nicolas
Hello, We have a custom type that works well with puppet 0.24.8 but fails with puppet 0.25.4 The failure message is : "Global resource access is deprecated" In the type, we want to create a directory that may already have been defined elsewhere so we're using code like this : direc

Re: [Puppet Users] Re: Java recipe

2010-04-19 Thread Dick Davies
On Thu, Apr 15, 2010 at 9:48 PM, Ken wrote: > What do you want to do above and beyond say - installing a package? > ie. in redhat I just did: > > package {"java-1.6.0-sun": ensure => installed } > > As redhat stuff java in their repos :-). ISTR you have to enable the 'supplemental' channel subscr

[Puppet Users] Puppetmaster with storeconfig crashes on Solaris10

2010-04-19 Thread Lutz Bergner
Hi all, Once again I need some help... info: Connecting to mysql database: puppet (eval):3: [BUG] Segmentation fault ruby 1.8.7 (2009-06-12 patchlevel 174) [i386-solaris2.10] Abort