Re: [Puppet Users] Is class?

2011-07-29 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > It just seemed to me that there must be some way to derive what is > installed on the client within a manifest but I couldn't find any > suggestions on Google or PuppetLabs site so I asked. Manifests are compiled to a catalog on the master. The cata

Re: [Puppet Users] Odd SSL issue - host not showing with puppet cert --list --all

2011-07-29 Thread Nan Liu
On Fri, Jul 29, 2011 at 2:38 AM, Josh wrote: > Just wondering if anyone had any similar issues OR idea's on > troubleshooting the following problem. > > I have a client/node registered to the puppet master and it is working > without any issues. On the server I can see it compile the catalog in >

[Puppet Users] Re: Fact use issue

2011-07-29 Thread jcbollinger
On Jul 28, 1:57 pm, Jemmorey wrote: > Awesome.  I did not realize I needed a comma after the bracket, since > you would think that the comma from the facter definition would > suffice. I'm glad it's working for you now. In hopes of helping you avoid similar misconceptions in the future, I obs

[Puppet Users] Re: Another question when running puppetd on clients

2011-07-29 Thread jcbollinger
On Jul 28, 7:55 am, Shiradz wrote: > Good Day, > > What prevents puppetd from implementing the correct svn version? > > When i run puppetd on client machine i get: > > info: Applying configuration version 'svnver=-1:9000M t=123456' > > Why the minus and the M, correctly deployed versions dont hav

[Puppet Users] Custom fact question

2011-07-29 Thread Oliver Beattie
Hi, I need to use the output of a script to set the value of a variable. I understand the only way to do this is to use a custom Facter fact. However, this script will only run when (naturally) it's been installed, which is something Puppet takes care of. Conf files, which I would very much li

Re: [Puppet Users] Custom fact question

2011-07-29 Thread Dominik Zyla
On Fri, Jul 29, 2011 at 05:55:33AM -0700, Oliver Beattie wrote: > Hi, > > I need to use the output of a script to set the value of a variable. I > understand the only way to do this is to use a custom Facter fact. > > However, this script will only run when (naturally) it's been installed, which

Re: [Puppet Users] Custom fact question

2011-07-29 Thread Aaron Grewell
If you put your custom fact in a module and enable plugin sync it should be deployed and run before your manifest IIRC. On Jul 29, 2011 5:55 AM, "Oliver Beattie" wrote: > Hi, > > I need to use the output of a script to set the value of a variable. I > understand the only way to do this is to use a

Re: [Puppet Users] Custom fact question

2011-07-29 Thread Nan Liu
On Fri, Jul 29, 2011 at 8:55 AM, Oliver Beattie wrote: > Hi, > I need to use the output of a script to set the value of a variable. I > understand the only way to do this is to use a custom Facter fact. > However, this script will only run when (naturally) it's been installed, > which is something

Re: [Puppet Users] Custom fact question

2011-07-29 Thread Oliver Beattie
I need it to run at a specified point during the manifest though. The value of the fact depends on a package being installed. And my config files depend on the value of the fact. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this dis

[Puppet Users] Another Custom Fact deployment problem

2011-07-29 Thread Guy Matz
Hi all, My facts work during testing, but not on deployment. Any help would be greatly appreciated. Fact in modules/ldap/lib/puppet/facter/nss_ldap.rb: fact_name = 'nss_ldap' Facter.add(fact_name) do setcode do auth_settings = %x{/usr/share/authconfig/authconfig.py --test} auth

Re: [Puppet Users] Is class? [SOLVED]

2011-07-29 Thread Craig White
On Jul 28, 2011, at 10:03 PM, Scott Smith wrote: > It looks like you're wanting to do it via erb, but if you can perform > whatever logic in the manifest, you can use tagged: > > (scott@cornstarch:tmp)% cat foo.pp > class foo { } > > class bar { > if (tagged("foo")) { > notice("You're in

Re: [Puppet Users] Another Custom Fact deployment problem

2011-07-29 Thread Craig White
on clients - agent.conf pluginsync = true Craig On Jul 29, 2011, at 8:06 AM, Guy Matz wrote: > Hi all, > > My facts work during testing, but not on deployment. Any help would be > greatly appreciated. > > > Fact in modules/ldap/lib/puppet/facter/nss_ldap.rb: > > fact_name = 'nss_ldap' >

Re: [Puppet Users] Another Custom Fact deployment problem

2011-07-29 Thread Guy Matz
yeah, I got that set . . . yeah, I should have mentioned that the facts do get downloaded on the client to $vardir/lib/puppet/facter . . . but still the facts are not available! thanks a lot! guy On Fri, Jul 29, 2011 at 11:29 AM, Craig White wrote: > on clients - agent.conf > > pluginsync = tr

Re: [Puppet Users] Custom fact question

2011-07-29 Thread Craig White
On Jul 29, 2011, at 6:25 AM, Oliver Beattie wrote: > I need it to run at a specified point during the manifest though. The value > of the fact depends on a package being installed. And my config files depend > on the value of the fact. Rather than just conceptualize it - assume it works a

Re: [Puppet Users] Another Custom Fact deployment problem

2011-07-29 Thread Nan Liu
On Fri, Jul 29, 2011 at 11:38 AM, Guy Matz wrote: > yeah, I got that set . . .  yeah, I should have mentioned that the facts do > get downloaded on the client to $vardir/lib/puppet/facter . . .  but still > the facts are not available! If you run facter -p on the client side does it load the cust

Re: [Puppet Users] Another Custom Fact deployment problem

2011-07-29 Thread Guy Matz
No!!! facter -p does *not* show my facts . . . what does that mean!? thank *you*! On Fri, Jul 29, 2011 at 11:42 AM, Nan Liu wrote: > On Fri, Jul 29, 2011 at 11:38 AM, Guy Matz wrote: > > yeah, I got that set . . . yeah, I should have mentioned that the facts > do > > get downloaded on the c

Re: [Puppet Users] Another Custom Fact deployment problem

2011-07-29 Thread Guy Matz
hmm . . . my custom facts are in /var/opt/lib/pe-puppet/lib/puppet/facter, but if I put them in /var/opt/lib/pe-puppet/lib/facter they *do* show up in facter -p . . . does that mean I am "packaging" my facts incorrectly on the server? Or is my client misconfigured? puppet.conf on my client is:

Re: [Puppet Users] Another Custom Fact deployment problem

2011-07-29 Thread Guy Matz
Nan, thanks for the hint! If I put the facts in module/lib/facter they work on the client . . . I used puppet-module to create the module and followed the directions for creating a custom fact, but I guess they need to go in module/lib/facter, not module/lib/puppet/facter . . . thanks a lot ever

Re: [Puppet Users] Another Custom Fact deployment problem

2011-07-29 Thread Craig White
On Jul 29, 2011, at 8:54 AM, Guy Matz wrote: > hmm . . . my custom facts are in /var/opt/lib/pe-puppet/lib/puppet/facter, > but if I put them in /var/opt/lib/pe-puppet/lib/facter they *do* show up in > facter -p . . . does that mean I am "packaging" my facts incorrectly on the > server? Or

Re: [Puppet Users] Custom fact question

2011-07-29 Thread Paul Morgan
On Jul 29, 2011 9:25 AM, "Oliver Beattie" wrote: > > I need it to run at a specified point during the manifest though. The value of the fact depends on a package being installed. And my config files depend on the value of the fact Will stages (pre, main, etc) help in this case? -- You received

[Puppet Users] Validating a puppet configuration

2011-07-29 Thread Lars Kellogg-Stedman
If anyone out there follows Serverfault, this is a duplicate of http://goo.gl/CTS2u. I'm hoping there are some subject matter experts here :). I am trying to place some sanity checks (currently as git pre-commit hooks) in our configuration repository to avoid committing invalid Puppet configu

Re: [Puppet Users] Validating a puppet configuration

2011-07-29 Thread Greg Hellings
Have you looked at using these? projects.puppetlabs.com/projects/1/wiki/Puppet_Version_Control -- Greg On Fri, Jul 29, 2011 at 6:33 AM, Lars Kellogg-Stedman wrote: > If anyone out there follows Serverfault, this is a duplicate of > http://goo.gl/CTS2u. I'm hoping there are some subject matter

Re: [Puppet Users] Validating a puppet configuration

2011-07-29 Thread Scott Smith
Those hooks are the gross syntax checks to which he initially referred. On Fri, Jul 29, 2011 at 9:49 AM, Greg Hellings wrote: > Have you looked at using these? > projects.puppetlabs.com/projects/1/wiki/Puppet_Version_Control > > -- > Greg > > > On Fri, Jul 29, 2011 at 6:33 AM, Lars Kellogg-Stedm

Re: buglet (with rpms from tmz) Re: [Puppet Users] Re: [Puppet-dev] ANNOUNCE: Puppet 2.6.9rc1 is available

2011-07-29 Thread Todd Zullinger
Chris May wrote: > Did anyone ever post a bug, or find a solution for this? I've just > upgraded some of our Solaris boxes (using OpenCSW) to 2.6.9 and I'm > seeing the same behaviour. If there is a bug filed, I'd love to know what it is. Searching redmine for "reports" doesn't find anything that

[Puppet Users] ANNOUNCE: Puppet 2.7.2rc3 available

2011-07-29 Thread Michael Stahnke
Puppet 2.7.2rc3 is available. RC2 was accidentally packaged from the wrong branch; thus causing some odd regressions and behavior. I apologize for that. This rc corrects that mistake. New since RC2 === * Fix an issue where some commits in 2.7.x made their way into 2.7.2rc2 due to a branch conf

[Puppet Users] Announce: Puppet-dashboard 1.2rc4 Available

2011-07-29 Thread Michael Stahnke
This a feature release candidate (number 4) of Puppet Dashboard. This release is available for download at: http://downloads.puppetlabs.com/dashboard/ We have included Debian and RPM packages as well as a tarball. See the Verifying Puppet Download section at: http://projects.puppetlabs.com/proj

[Puppet Users] add ip address of another EC2 instance automatically in the hosts file of existing EC2 instance

2011-07-29 Thread newguy
HI guys I have a Ubuntu EC2 puppetmaster, 3 types of clients connect to this master; client A, B ,C . I want to add the ip address of client B in a module M of client A. Lets assume that I don't know their ip addresses before hand. Is that possible through puppet??? and if yes how? Thanks --

Re: [Puppet Users] add ip address of another EC2 instance automatically in the hosts file of existing EC2 instance

2011-07-29 Thread vagn scott
On 07/29/2011 08:57 PM, newguy wrote: I want to add the ip address of client B in a module M of client A. Lets assume that I don't know their ip addresses before hand. Well, what do you know before hand? Do you know the name of client B? Why can't you use that, directly? If you know th

Re: [Puppet Users] add ip address of another EC2 instance automatically in the hosts file of existing EC2 instance

2011-07-29 Thread Scott Smith
Use exported resources On Fri, Jul 29, 2011 at 6:23 PM, vagn scott wrote: > On 07/29/2011 08:57 PM, newguy wrote: > >> I want to add the ip address of client B in a module M of client A. >> Lets assume that I don't know their ip addresses before hand. >> >> > > > > Well, what do you know before

Re: [Puppet Users] Validating a puppet configuration

2011-07-29 Thread Eric Shamow
Have you considered bootstrapping a test suite like cucumber-puppet? https://github.com/nistude/cucumber-puppet -Eric > Topic: Validating a puppet configuration > Lars Kellogg-Stedman Jul 29 06:33AM -0700 ^ > > If anyone out there follows Serverfault, this is a duplicate of > http://goo.gl/