[Puppet Users] Problems when puppet runs on freebsd

2010-09-14 Thread daniel
Hey guys! I have hundreds of freebsd servers to manage, so i try to deploy puppet on my servers. The version of puppet client i used is 0.25.4 , while puppetmaster uses the same version , which is a debian system. The problems i encountered are as follows: 1. when i run "puppetd -t -d " on c

[Puppet Users] cucumber-puppet and environments

2010-09-14 Thread Oliver
Now that cucumber-puppet is a Puppet Labs project, I guess it is time to email questions about it here ;) I'm in the process of adding RoR environment support into my module tree, so instead of just having a single location for all modules, I now have several environments. Logically to test my dif

[Puppet Users] Error in using custom providers - can't recognize custom provider

2010-09-14 Thread mark ardiente
Hi, I'm using custom providers for installing pear and pecl package. But every time I ran puppetd --test, it says that pear provider is not recognized. But when I remove the custom providers from /var/lib/puppet/lib/puppet/provider (client server), and ran puppetd --test once more, it downloa

Re: [Puppet Users] cucumber-puppet and environments

2010-09-14 Thread Ryan Coleman
Hi Oliver, try: http://projects.puppetlabs.com/projects/1/wiki/Using_Multiple_Environments On Sep 14, 2010, at 7:09 AM, Oliver wrote: > Now that cucumber-puppet is a Puppet Labs project, I guess it is time > to email questions about it here ;) > > I'm in the process of adding RoR environment

[Puppet Users] UK Meet-up?

2010-09-14 Thread Joel Merrick
Hi all, I've been to a few conferences where puppet has been presented, but would love to know if there's a more puppet specific meet-up planned in the UK any time soon? t.i.a. Joel -- $ echo "kpfmAdpoofdufevq/dp/vl" | perl -pe 's/(.)/chr(ord($1)-1)/ge' -- You received this message because yo

Re: [Puppet Users] UK Meet-up?

2010-09-14 Thread R.I.Pienaar
- "Joel Merrick" wrote: > Hi all, > > I've been to a few conferences where puppet has been presented, but > would love to know if there's a more puppet specific meet-up planned > in the UK any time soon? Not that I am aware of, we have a london devops group (londondevops.org) that meet re

Re: [Puppet Users] UK Meet-up?

2010-09-14 Thread Gary Law
On 14 September 2010 14:09, R.I.Pienaar wrote: > > - "Joel Merrick" wrote: > >> Hi all, >> >> I've been to a few conferences where puppet has been presented, but >> would love to know if there's a more puppet specific meet-up planned >> in the UK any time soon? > > Not that I am aware of, we

Re: [Puppet Users] UK Meet-up?

2010-09-14 Thread R.I.Pienaar
- "Gary Law" wrote: > On 14 September 2010 14:09, R.I.Pienaar wrote: > > > > - "Joel Merrick" wrote: > > > >> Hi all, > >> > >> I've been to a few conferences where puppet has been presented, > but > >> would love to know if there's a more puppet specific meet-up > planned > >> in the

Re: [Puppet Users] Making edits to /etc/system on Solaris

2010-09-14 Thread Derek Yarnell
Alternatively you could just use a template /etc/system where you put most of the logic into the ERB by putting if defined entries in. -- Derek Yarnell On Sep 14, 2010, at 1:25 AM, John Warburton wrote: > I may not go down that path, but you've triggered something in my head - why > don't I u

Re: [Puppet Users] cucumber-puppet and environments

2010-09-14 Thread Bruce Richardson
On Tue, Sep 14, 2010 at 08:34:00AM -0400, Ryan Coleman wrote: > Hi Oliver, try: > > http://projects.puppetlabs.com/projects/1/wiki/Using_Multiple_Environments I've never been fond of the way RoR treats environments (or, at least, the way RoR developers treat them). The thing I really don't like

Re: [Puppet Users] ANNOUNCE: Puppet 2.6.1 released!

2010-09-14 Thread Disconnect
On Mon, Sep 13, 2010 at 10:26 PM, James Turnbull wrote: > In the long Puppet tradition of fast releases and agile iteration comes > the 2.6.1 release! > > 2.6.1 is a maintenance release in the 2.6.x branch. > > It contains a number of functional and performance enhancements > including preliminary

Re: [Puppet Users] UK Meet-up?

2010-09-14 Thread Daniel Maher
On 09/14/2010 03:25 PM, R.I.Pienaar wrote: Doubt there's enough traction here for too focused events :( A Europe-based Puppet Camp would probably go over well ; i mean, us Europeans use Puppet, too. :) -- Daniel Maher "The Internet is completely over." -- Prince -- You received this mess

Re: [Puppet Users] UK Meet-up?

2010-09-14 Thread R.I.Pienaar
- "Daniel Maher" wrote: > On 09/14/2010 03:25 PM, R.I.Pienaar wrote: > > > Doubt there's enough traction here for too focused events :( > > A Europe-based Puppet Camp would probably go over well ; i mean, us > Europeans use Puppet, too. :) Yeah the one held this may did go down well :P

Re: [Puppet Users] cucumber-puppet and environments

2010-09-14 Thread Nigel Kersten
On Tue, Sep 14, 2010 at 6:28 AM, Bruce Richardson wrote: > On Tue, Sep 14, 2010 at 08:34:00AM -0400, Ryan Coleman wrote: >> Hi Oliver, try: >> >> http://projects.puppetlabs.com/projects/1/wiki/Using_Multiple_Environments > > I've never been fond of the way RoR treats environments (or, at least, >

Re: [Puppet Users] call define and keep getting Duplicate definition

2010-09-14 Thread Luc Suryo
well I upgraded to 2.6.1 and it works.. changed nothing!! But thanks for the help and your time Nan!! -- -ls -- 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 unsubscr

[Puppet Users] Provider useradd does not support features manages_passwords; not managing attribute password

2010-09-14 Thread Luc Suryo
Hello I just upgraded to 2.6.1 and now when I create a new account I can no longer add the encrypted password added... the message i see is Provider useradd does not support features manages_passwords; not managing attribute password I presume I need to add something to tell the primitive 'use

[Puppet Users] Managing puppet.conf and other critical config files

2010-09-14 Thread James Cammarata
Is there any built-in method for puppet to update its own configs and then restart a puppetd run should they change? One of the (few) features of cfengine I always liked was that you had your emergency configs, which allowed you to update your primary cfengine configs even if you made a mistake th

Re: [Puppet Users] Managing puppet.conf and other critical config files

2010-09-14 Thread Nigel Kersten
On Tue, Sep 14, 2010 at 9:07 AM, James Cammarata wrote: > > Is there any built-in method for puppet to update its own configs and then > restart a puppetd run should they change? One of the (few) features of > cfengine I always liked was that you had your emergency configs, which > allowed you to

Re: [Puppet Users] UK Meet-up?

2010-09-14 Thread Joel Merrick
On Tue, Sep 14, 2010 at 3:49 PM, Daniel Maher wrote: > On 09/14/2010 03:25 PM, R.I.Pienaar wrote: > >> Doubt there's enough traction here for too focused events :( > > A Europe-based Puppet Camp would probably go over well ; i mean, us > Europeans use Puppet, too. :) > > +1 ! As much as I'd love

Re: [Puppet Users] ANNOUNCE: Puppet 2.6.1 released!

2010-09-14 Thread James Turnbull
Disconnect wrote: The release candidate is available for download at: http://puppetlabs.com/downloads/puppet/puppet-2.6.1.tar.gz I take it you mean 'release', right? :) Yes - that should be release. Regards James Turnbull -- You received this message because you are subscribed

Re: [Puppet Users] Managing puppet.conf and other critical config files

2010-09-14 Thread James Cammarata
> We manage puppet.conf as a template. > > I've often wanted something similar to your feature request, where you > could signify in a puppet manifest that the whole run should simply > restart at that point. You should file it :) > > Have you thought about maybe using the pre-run hook? We use

Re: [Puppet Users] Managing puppet.conf and other critical config files

2010-09-14 Thread Nigel Kersten
On Tue, Sep 14, 2010 at 9:24 AM, James Cammarata wrote: > >> We manage puppet.conf as a template. >> >> I've often wanted something similar to your feature request, where you >> could signify in a puppet manifest that the whole run should simply >> restart at that point.  You should file it :) >>

Re: [Puppet Users] UK Meet-up?

2010-09-14 Thread James Turnbull
Joel Merrick wrote: On Tue, Sep 14, 2010 at 3:49 PM, Daniel Maher wrote: On 09/14/2010 03:25 PM, R.I.Pienaar wrote: Doubt there's enough traction here for too focused events :( A Europe-based Puppet Camp would probably go over well ; i mean, us Europeans use Puppet, too. :)

Re: [Puppet Users] Provider useradd does not support features manages_passwords; not managing attribute password

2010-09-14 Thread James Turnbull
Luc Suryo wrote: Hello I just upgraded to 2.6.1 and now when I create a new account I can no longer add the encrypted password added... the message i see is Provider useradd does not support features manages_passwords; not managing attribute password I presume I need to add something to

Re: [Puppet Users] Access control for Puppet Dashboard

2010-09-14 Thread Jacob Helwig
On Tue, 14 Sep 2010 08:19:24 +0200, Kenneth Holter wrote: > > Hello all, > > > Is it possible at the moment to set up access control for Puppet Dashboard? > As of now anyone within our organization will have full access to the > dashboard. I thought I'd set up regular Apache access control, but

Re: [Puppet Users] Re: Setup 2.6 + apache, passenger

2010-09-14 Thread M C
I'm trying to use puppet with passenger as well. I'm running puppet 2.6.1 and I'm running into the issue mentioned under the troubleshooting section of http://projects.reductivelabs.com/projects/puppet/wiki/Using_Passenger. The instructions there are very vague. I've tried adding the ca_name sett

Re: [Puppet Users] Provider useradd does not support features manages_passwords; not managing attribute password

2010-09-14 Thread Luc Suryo
James its a CentOS 5.5. box, and it worked before I installed 2.6.1 this morning. Do I need to add manages_passwords = true maybe? thanks On Tue, Sep 14, 2010 at 9:34 AM, James Turnbull wrote: > Luc Suryo wrote: > >> Hello >> >> I just upgraded to 2.6.1 and now when I create a new account I ca

Re: [Puppet Users] Provider useradd does not support features manages_passwords; not managing attribute password

2010-09-14 Thread James Turnbull
Luc Suryo wrote: James its a CentOS 5.5. box, and it worked before I installed 2.6.1 this morning. Do I need to add manages_passwords = true maybe? No - that will have no impact. Can you confirm you have libshadow installed? If you do it's a bug and can you please log it. Regards Jam

Re: [Puppet Users] Provider useradd does not support features manages_passwords; not managing attribute password

2010-09-14 Thread Luc Suryo
Hmm very odd and yes your are correct somehow ruby-shadow was removed... I added it back and it works again.. not a bug.. sorry and thanks On Tue, Sep 14, 2010 at 9:45 AM, James Turnbull wrote: > > > Luc Suryo wrote: > >> James >> >> its a CentOS 5.5. box, and it worked before I installed 2.6.1 t

Re: [Puppet Users] Access control for Puppet Dashboard

2010-09-14 Thread Nan Liu
On Tue, Sep 14, 2010 at 9:34 AM, Jacob Helwig wrote: > As far as getting access control right now, it's pretty much what you > mentioned: Putting Dashboard behind something like Apache access > controls. You should still be able to use the dashboard as an external > node tool, but I'd imagine th

Re: [Puppet Users] Re: Setup 2.6 + apache, passenger

2010-09-14 Thread Nan Liu
On Tue, Sep 14, 2010 at 9:35 AM, M C wrote: > I'm trying to use puppet with passenger as well. I'm running puppet 2.6.1 > and I'm running into the issue mentioned under the troubleshooting section > of http://projects.reductivelabs.com/projects/puppet/wiki/Using_Passenger. > The instructions the

Re: [Puppet Users] Re: Setup 2.6 + apache, passenger

2010-09-14 Thread M C
Nan, The puppet master is running on a machine called admin. We have a cname that resolves puppet.bar.com to admin.baz.bar.com. I've checked the certificate and it shows the following: Subject: CN=admin.baz.bar.com X509v3 Subject Alternative Name: DNS:puppet, DNS:admin.baz.bar.com, DNS:puppet.

[Puppet Users] Strange exec issue with tar

2010-09-14 Thread jerry
I do have a really strange issue with exec a tar command with puppet 2.6.0. If I run it with puppetmasterd I get the following error message: (//my.domain.net//Stage[main]/Workerzone/Build::Install[top]/ Exec[extract-top]/returns) change from notrun to 0 failed: /bin/bash - c '/usr/sbin/tar -xzvf

[Puppet Users] Convert string to int?

2010-09-14 Thread Douglas Garstang
If I have... $version_core = "t.1538-1" $is_trunk_release = regsubst($version_core, '^(.*?)\.(.*?)$', '\1') if $is_trunk_release == "t" { notice ("here 1") if $t >= 1583 { notice ("here 2") } } Puppet complains with: comparison of String with 15

[Puppet Users] Re: Convert string to int?

2010-09-14 Thread Douglas Garstang
On Tue, Sep 14, 2010 at 12:12 PM, Douglas Garstang wrote: > If I have... > >    $version_core = "t.1538-1" >    $is_trunk_release = regsubst($version_core, '^(.*?)\.(.*?)$', '\1') >    if $is_trunk_release == "t" { >        notice ("here 1") >        if $t >= 1583 { >            notice ("here 2")

Re: [Puppet Users] Convert string to int?

2010-09-14 Thread Nigel Kersten
On Tue, Sep 14, 2010 at 12:12 PM, Douglas Garstang wrote: > If I have... > >    $version_core = "t.1538-1" >    $is_trunk_release = regsubst($version_core, '^(.*?)\.(.*?)$', '\1') >    if $is_trunk_release == "t" { >        notice ("here 1") >        if $t >= 1583 { >            notice ("here 2")

[Puppet Users] Re: Custom provider

2010-09-14 Thread Erik
Yes, this does the trick. Thanks! Erik On Sep 13, 12:55 pm, Stefan Schulte wrote: > Put your provider in /etc/puppet/modules/mymodule/lib/ >   puppet/provider/package/myprovider.rb > > Notice the provider/TYPE subfolder > > Hope this does the trick > > -Stefan > > On Mon, Sep 13, 2010 at 07:52:

Re: [Puppet Users] Re: Convert string to int?

2010-09-14 Thread Nigel Kersten
On Tue, Sep 14, 2010 at 12:19 PM, Douglas Garstang wrote: > On Tue, Sep 14, 2010 at 12:12 PM, Douglas Garstang > wrote: >> If I have... >> >>    $version_core = "t.1538-1" >>    $is_trunk_release = regsubst($version_core, '^(.*?)\.(.*?)$', '\1') >>    if $is_trunk_release == "t" { >>        notic

[Puppet Users] Tagging / Exported Resources

2010-09-14 Thread CraftyTech
Hello All, I've been battling with issue all day to no avail. I'm exporting all host entries this way: class basics::host_export { @@host{ "$fqdn": ip => $ipaddress, host_aliases => $hostname, tag => $group

[Puppet Users] GitHub Account move - the Great Migration continues...

2010-09-14 Thread James Turnbull
Hi all Many of you know we renamed ourselves from Reductive Labs to Puppet Labs. We've slowly been removing the remnants of the old company name from various places. As part of this exercise we're also migrating our GitHub accounts. We've set-up a new puppetlabs GitHub account and forked all ou

[Puppet Users] Re: Tagging / Exported Resources

2010-09-14 Thread CraftyTech
btw: I'm running puppet 0.25.5 On Sep 14, 3:53 pm, CraftyTech wrote: > Hello All, > >      I've been battling with issue all day to no avail.  I'm exporting > all host entries this way: > class basics::host_export  { @@host{ "$fqdn": >                       ip => $ipaddress, >                    

[Puppet Users] Run Frequency

2010-09-14 Thread Douglas Garstang
This is weird. I'm noticing that with 2.6rcx that puppet isn't running on the nodes every 30 minutes. In fact, not even every few hours. Was the default changed to some huge value in 2.6? I don't see errors in the logs... I don't even see puppet starting a run. Doug -- You received this message

[Puppet Users] Specifying version for shared packages

2010-09-14 Thread Marc Zampetti
I've been banging my head on this all day, and I cannot seem to figure out how to do it. I have a package for Apache HTTPd. I want to be able to specify the exact version of the package to use for a particular installation. And it is also possible that I want to have two separate modules inst

[Puppet Users] Small bug: puppet.spec still refers to 2.6.0

2010-09-14 Thread Forrie
Minor buglet: the *.spec file for linux needs to be updated for 2.6.1. -- 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 puppet-use

[Puppet Users] Re: Run Frequency

2010-09-14 Thread Douglas Garstang
On Tue, Sep 14, 2010 at 1:11 PM, Douglas Garstang wrote: > This is weird. I'm noticing that with 2.6rcx that puppet isn't running > on the nodes every 30 minutes. In fact, not even every few hours. Was > the default changed to some huge value in 2.6? I don't see errors in > the logs... I don't eve

Re: [Puppet Users] Specifying version for shared packages

2010-09-14 Thread Silviu Paragina
On 14.09.2010 23:12, Marc Zampetti wrote: I've been banging my head on this all day, and I cannot seem to figure out how to do it. I have a package for Apache HTTPd. I want to be able to specify the exact version of the package to use for a particular installation. And it is also possible t

Re: [Puppet Users] Strange exec issue with tar

2010-09-14 Thread Silviu Paragina
Check you environment path variable. Tar might not find something, most probably, the gzip executable (not 100% sure on this part). Usually if something doesn't work in specific cases, but it works in you bash console, you can make a safe bet on environment variables and/or running user. Si

Re: [Puppet Users] Specifying version for shared packages

2010-09-14 Thread Marc Zampetti
Basically, I'm trying to build modules that implement best practices (the app-apache module), and then admins that need to build specific apache instances just create a new module that inherits from the base class and provides the information they need. So, admin A wants to build apache serve

Re: [Puppet Users] Re: Setup 2.6 + apache, passenger

2010-09-14 Thread Nan Liu
On Tue, Sep 14, 2010 at 11:53 AM, M C wrote: > Restarting the puppet master with the certdnsname option set did not change > the certificate in /var/lib/puppet/ssl/certs/admin.baz.bar.com at all. > > My understanding from the documentation is that the issue was with ca.pem. If that's the case,

Re: [Puppet Users] Specifying version for shared packages

2010-09-14 Thread Douglas Garstang
On Tue, Sep 14, 2010 at 1:12 PM, Marc Zampetti wrote: >  I've been banging my head on this all day, and I cannot seem to figure out > how to do it. > > I have a package for Apache HTTPd. I want to be able to specify the exact > version of the package to use for a particular installation. And it is

Re: [Puppet Users] Specifying version for shared packages

2010-09-14 Thread Douglas Garstang
On Tue, Sep 14, 2010 at 2:36 PM, Douglas Garstang wrote: > On Tue, Sep 14, 2010 at 1:12 PM, Marc Zampetti > wrote: >>  I've been banging my head on this all day, and I cannot seem to figure out >> how to do it. >> >> I have a package for Apache HTTPd. I want to be able to specify the exact >> ve

Re: [Puppet Users] Specifying version for shared packages

2010-09-14 Thread Silviu Paragina
Skipping the practices part, you can achieve the final objective by adding another level of inheritance (apache-app-ver-2) and the two classes in the end would inherit from, or include, this new class. Logically if there is any reason for apache having the same version in both application

Re: [Puppet Users] Specifying version for shared packages

2010-09-14 Thread Darren Chamberlain
I do this kind of thing in a few places, for things like different or specific versions of mysql, tomcat, libraries, and so on. I use a define to wrap this up, and the declare is called from within the node defitions. A simplified example of our method: define install ($version) { package

Re: [Puppet Users] Small bug: puppet.spec still refers to 2.6.0

2010-09-14 Thread James Turnbull
Forrie wrote: > Minor buglet: the *.spec file for linux needs to be updated for > 2.6.1. > This is usually done by the packagers at some point. We only maintain these specs for convenience. Regards James Turnbull -- Puppet Labs - http://www.puppetlabs.com C: 503-734-8571 -- You received t

Re: [Puppet Users] Problems when puppet runs on freebsd

2010-09-14 Thread Russell Jackson
On 09/14/2010 01:00 AM, daniel wrote: >Hey guys! I have hundreds of freebsd servers to manage, so i try to > deploy puppet on my servers. The version of puppet client i used is > 0.25.4 , while puppetmaster uses the same version , which is a debian > system. The problems i encountered are as

Re: [Puppet Users] Small bug: puppet.spec still refers to 2.6.0

2010-09-14 Thread Douglas Garstang
On Tue, Sep 14, 2010 at 3:03 PM, James Turnbull wrote: > Forrie wrote: >> Minor buglet:  the *.spec file for linux needs to be updated for >> 2.6.1. >> > > This is usually done by the packagers at some point.  We only maintain > these specs for convenience. It seems like an inconvenience in it's

Re: [Puppet Users] Small bug: puppet.spec still refers to 2.6.0

2010-09-14 Thread Nigel Kersten
On Tue, Sep 14, 2010 at 3:28 PM, Douglas Garstang wrote: > On Tue, Sep 14, 2010 at 3:03 PM, James Turnbull wrote: >> Forrie wrote: >>> Minor buglet:  the *.spec file for linux needs to be updated for >>> 2.6.1. >>> >> >> This is usually done by the packagers at some point.  We only maintain >> th

Re: [Puppet Users] Small bug: puppet.spec still refers to 2.6.0

2010-09-14 Thread Douglas Garstang
On Tue, Sep 14, 2010 at 3:34 PM, Nigel Kersten wrote: > On Tue, Sep 14, 2010 at 3:28 PM, Douglas Garstang > wrote: >> On Tue, Sep 14, 2010 at 3:03 PM, James Turnbull wrote: >>> Forrie wrote: Minor buglet:  the *.spec file for linux needs to be updated for 2.6.1. >>> >>> This is us

Re: [Puppet Users] Small bug: puppet.spec still refers to 2.6.0

2010-09-14 Thread Nigel Kersten
On Tue, Sep 14, 2010 at 3:51 PM, Douglas Garstang wrote: > On Tue, Sep 14, 2010 at 3:34 PM, Nigel Kersten wrote: >> On Tue, Sep 14, 2010 at 3:28 PM, Douglas Garstang >> wrote: >>> On Tue, Sep 14, 2010 at 3:03 PM, James Turnbull >>> wrote: Forrie wrote: > Minor buglet:  the *.spec file

[Puppet Users] ANNOUNCE: Puppet Dashboard 1.0.4 Release Candidate 1!

2010-09-14 Thread James Turnbull
We're pleased to announce the availability of Puppet Dashboard 1.0.4rc1! The 1.0.4 release is a maintenance release, it fixes a number of bugs and significantly improves performance. Please try this release candidate and let us know about any issues on the mailing list (http://groups.google.com/g

[Puppet Users] Re: Tagging / Exported Resources

2010-09-14 Thread CraftyTech
Has anyone used this feature? On Sep 14, 4:08 pm, CraftyTech wrote: > btw: I'm running puppet 0.25.5 > > On Sep 14, 3:53 pm, CraftyTech wrote: > > > > > Hello All, > > >      I've been battling with issue all day to no avail.  I'm exporting > > all host entries this way: > > class basics::host_e

[Puppet Users] Re: Strange exec issue with tar

2010-09-14 Thread jerry
Thanks for your tip! Path is set early in base inheritance class to: Exec { path => "/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/ sbin:/sbin" } But even if I set this path env var in the exec block it fails: # here I always get an error exec { "extract-$name": cwd => "/usr/loca