Re: [Puppet Users] Re: Using puppet to redeploy staging app

2011-01-18 Thread Al @ Lab42
On Monday, January 17, 2011 10:33:33 AM UTC+1, Romain PELISSE wrote: > > > @lab42: Your Puppi module sounds quite interesting indeed. I guess I could > probably reduce the amount of "junk" in my current puppet configuration > using it. I'll look into it in the next days. > Sweet. If you have a

Re: [Puppet Users] Re: Autosign Certificate upon rebuild

2011-01-18 Thread Derek Tracy
I think that is the workflow I am going to use, before I kick off the rebuild run puppetca --clean and keep the in the autosign.conf so when it rebuilds and kicks off the puppet service the ca just autosigns the cert. It would be nice to be able to set a special key/password that the puppet da

Re: [Puppet Users] Schedules. Who uses them and why?

2011-01-18 Thread Ryan Dooley
This is exactly what we used schedules for. System software.was.only updated at specific times to ensure that we got the maximum io from our disks. On Jan 17, 2011 6:50 PM, "Daniel Pittman" wrote: On Mon, Jan 17, 2011 at 18:38, Nigel Kersten wrote: > I'm trying to get a fee... At my previous j

Re: [Puppet Users] Re: Multiple packages installation in one yum call

2011-01-18 Thread Mike Lococo
On 01/17/2011 12:40 PM, Matt wrote: Unfortunately thats a limitation of RPM which has been worked around with YUM. YUM will do the resolution of dependencies if they are also in one of the repositories configured on the system. Unfortunately RedHat will blacklist systems that run yum too often

[Puppet Users] if( defined( Class["software::mongodb"] ) ) throws an error

2011-01-18 Thread MJ
I'm trying to detect if a class has been defined as is indicated at http://docs.puppetlabs.com/references/stable/function.html#defined However, this check always results in the following error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class software::

Re: [Puppet Users] Schedules. Who uses them and why?

2011-01-18 Thread Ohad Levy
in the past I used them for large dir syncs that takes a lot of time and dont change that often Ohad On Tue, Jan 18, 2011 at 4:38 AM, Nigel Kersten wrote: > I'm trying to get a feel for the actual use cases for the Schedule type in > Puppet. > > Anyone care to help me out with some real wor

Re: [Puppet Users] Re: Multiple packages installation in one yum call

2011-01-18 Thread Marc Zampetti
I agree with this sentiment, and feel that making this a "low" priority for Puppet Labs is somewhat strange. Like it or not, Red Hat Linux (or one of its off-shoots like CentOS) is one of the most popular versions in production. Package management is one of the most central and important things

Re: [Puppet Users] Re: Multiple packages installation in one yum call

2011-01-18 Thread Felix Frank
On 01/18/2011 04:55 PM, Marc Zampetti wrote: > Or is Puppet Labs saying that they really only want to design a system > that works with non-Red Hat derived Linux distros? Should I be looking > to rip out Puppet and find something that is more open to working with > my OS of choice, like Chef? What

Re: [Puppet Users] Schedules. Who uses them and why?

2011-01-18 Thread Brice Figureau
On Mon, 2011-01-17 at 18:38 -0800, Nigel Kersten wrote: > I'm trying to get a feel for the actual use cases for the Schedule > type in Puppet. Can you elaborate? > Anyone care to help me out with some real world examples? I'm using schedules so that my puppetd run "apt-get update" only once per

Re: [Puppet Users] Schedules. Who uses them and why?

2011-01-18 Thread Nigel Kersten
On Tue, Jan 18, 2011 at 8:50 AM, Brice Figureau < brice-pup...@daysofwonder.com> wrote: > On Mon, 2011-01-17 at 18:38 -0800, Nigel Kersten wrote: > > I'm trying to get a feel for the actual use cases for the Schedule > > type in Puppet. > > Can you elaborate? > I've never used them much, people d

[Puppet Users] Behavior of local modules and their included facts

2011-01-18 Thread windowsrefund
I've got a simple local module that I'll be compiling with the puppet binary. The module's structure is: modules/ub/ modules/ub/manifests modules/ub/manifests/init.pp modules/ub/lib modules/ub/lib/facter modules/ub/lib/facter/factery_import.rb modules/ub/manifests/init.pp is just a placeholder:

[Puppet Users] Parameter alias failed

2011-01-18 Thread Lithium
Hi, I've had a class with the following setup: class drupal6 { site ( $ensure = 'present', $dbname, $dbpw, $dbserver, $sitefqdn, $modules = "" ) { } } I added the parameter alias to drupal6:site and now I'm getting the following e

Re: [Puppet Users] Schedules. Who uses them and why?

2011-01-18 Thread Brice Figureau
On 18/01/11 18:12, Nigel Kersten wrote: > On Tue, Jan 18, 2011 at 8:50 AM, Brice Figureau > mailto:brice-pup...@daysofwonder.com>> > wrote: > > On Mon, 2011-01-17 at 18:38 -0800, Nigel Kersten wrote: > > I'm trying to get a feel for the actual use cases for the Schedule > > type in Pup

Re: [Puppet Users] Schedules. Who uses them and why?

2011-01-18 Thread R.I.Pienaar
- Original Message - > On 18/01/11 18:12, Nigel Kersten wrote: > > On Tue, Jan 18, 2011 at 8:50 AM, Brice Figureau > > > > > > wrote: > > > > On Mon, 2011-01-17 at 18:38 -0800, Nigel Kersten wrote: > > > I'm trying to get a feel for the actua

Re: [Puppet Users] Re: Virtual resources, account module help.

2011-01-18 Thread Adam Crews
On Fri, Jan 14, 2011 at 2:23 AM, luke.bigum wrote: > Hi Adam, > > Shame you can't use LDAP or NIS ;) But anyway... > Yes it makes me sad. I'd really, really, really like to use ldap but my hands are tied. --snip-- > > Lastly, what you're trying to do is complex, especially with Puppet's > "dec

[Puppet Users] Failed SSL with CNAME'd puppetserver

2011-01-18 Thread Robert Scheer
Hi, suppose puppet-old.domain is a CNAME pointing to puppet-new.domain, and puppet-new.domain is running Apache (for SSL) with mod_proxy_balancer to balance over some 10 puppetmaster processes. The configured SSLCertificateFile in Apache is that of puppet-new.domain How do I get a node to stop com

Re: [Puppet Users] Failed SSL with CNAME'd puppetserver

2011-01-18 Thread Daniel Pittman
On Tue, Jan 18, 2011 at 10:41, Robert Scheer wrote: > Hi, suppose puppet-old.domain is a CNAME pointing to puppet-new.domain, > and puppet-new.domain is running Apache (for SSL) with mod_proxy_balancer > to balance over some 10 puppetmaster processes. The configured > SSLCertificateFile in Apache

Re: [Puppet Users] Failed SSL with CNAME'd puppetserver

2011-01-18 Thread Jeff McCune
On Tue, Jan 18, 2011 at 10:41 AM, Robert Scheer wrote: > Hi, suppose puppet-old.domain is a CNAME pointing to puppet-new.domain, > and puppet-new.domain is running Apache (for SSL) with mod_proxy_balancer > to balance over some 10 puppetmaster processes. The configured > SSLCertificateFile in Apac

Re: [Puppet Users] if( defined( Class["software::mongodb"] ) ) throws an error

2011-01-18 Thread Daniel Pittman
On Tue, Jan 18, 2011 at 02:29, MJ wrote: > I'm trying to detect if a class has been defined as is indicated at > http://docs.puppetlabs.com/references/stable/function.html#defined > > However, this check always results in the following error: > err: Could not retrieve catalog from remote server:

Re: [Puppet Users] Re: Multiple packages installation in one yum call

2011-01-18 Thread Avi Miller
Mike Lococo wrote: 2) Use the yum-driven options *AND* run your own satellite server so you can ping it as often as you like. You don't need a Satellite Server for this, just a plain Yum server will do, which is essentially just httpd + createrepo for RHEL5. This is about 2 seconds worth of w

Re: [Puppet Users] Behavior of local modules and their included facts

2011-01-18 Thread Daniel Pittman
On Tue, Jan 18, 2011 at 09:23, windowsrefund wrote: > I've got a simple local module that I'll be compiling with the puppet > binary. The module's structure is: > > modules/ub/ > modules/ub/manifests > modules/ub/manifests/init.pp > modules/ub/lib > modules/ub/lib/facter > modules/ub/lib/facter/f

[Puppet Users] Re: [Puppet-dev] how to set timeout when trigger client to update from master

2011-01-18 Thread Matt Robinson
Jacky, This is really more of a puppet usage question than a development question, so I'm replying to this in the puppet-users group also where this would have been better asked. I'm not sure what might be happening with puppet kick without some more debugging info, but I think it might related to

Re: [Puppet Users] Re: Autosign Certificate upon rebuild

2011-01-18 Thread Patrick
On Jan 18, 2011, at 6:08 AM, Derek Tracy wrote: > I think that is the workflow I am going to use, before I kick off the rebuild > run > > puppetca --clean > > and keep the in the autosign.conf so when it rebuilds and kicks off > the puppet service the ca just autosigns the cert. It would

[Puppet Users] Re: Behavior of local modules and their included facts

2011-01-18 Thread windowsrefund
Daniel, Thanks for the assistance. I dropped a tarball over at https://bitbucket.org/windowsrefund/temp/src/31bfb4826c7f/ub2.tar.gz after extracting, I'd be able to reproduce the problem with: cd ub2 puppet -d --modulepath=modules init.pp As for versions, here's what I'm doing: puppet 0.25.4 (

Re: [Puppet Users] Re: Behavior of local modules and their included facts

2011-01-18 Thread Daniel Pittman
On Tue, Jan 18, 2011 at 13:24, windowsrefund wrote: > Thanks for the assistance. I dropped a tarball over at > https://bitbucket.org/windowsrefund/temp/src/31bfb4826c7f/ub2.tar.gz > after extracting, I'd be able to reproduce the problem with: [...] > As for versions, here's what I'm doing: > >

[Puppet Users] Re: Behavior of local modules and their included facts

2011-01-18 Thread windowsrefund
Daniel, Thanks for the feedback. The doc I referred to lives at http://docs.puppetlabs.com/guides/plugins_in_modules.html I'll certainly try a mv lib plugins to see if it works as expected but I'm a little confused when I consider my existing source tree which does use the lib directory. Of cours

Re: [Puppet Users] Re: Behavior of local modules and their included facts

2011-01-18 Thread Daniel Pittman
On Tue, Jan 18, 2011 at 15:24, windowsrefund wrote: > Thanks for the feedback. The doc I referred to lives at > http://docs.puppetlabs.com/guides/plugins_in_modules.html Thanks. I will bug our tech writer in a moment. :) > I'll certainly try a mv lib plugins to see if it works as expected but

[Puppet Users] Re: Behavior of local modules and their included facts

2011-01-18 Thread windowsrefund
> Is your puppet master also an 0.25 series install, or are you using a > 2.6 master and 0.25 clients? Everything is 0.25.4 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. T

[Puppet Users] Re: if( defined( Class["software::mongodb"] ) ) throws an error

2011-01-18 Thread MJ
I'm suspect it is one of the "subtle and strange" behavoir. I suppose I should have just posted a link to the code in git hub. I guess I was expecting that this would be something that was going to jump out as something obvious. My apologies for not doing so. Here is the link: https://github.c

[Puppet Users] Re: Behavior of local modules and their included facts

2011-01-18 Thread windowsrefund
> > No, that covers it, actually.  Your problem is that the 0.25.4 series > consult only '.../ub2/plugins/facter/*.rb' for custom facts; the > '.../ub2/lib/facter/*.rb' version didn't come in until later.  (The > 2.6 AKA 0.26 series, IIRC, but I have not checked exactly when.) > Looks like the mv

[Puppet Users] Re: Behavior of local modules and their included facts

2011-01-18 Thread windowsrefund
> > Looks like the mv lib plugins fix did not result in the fact loading. > It seems to only be possible if I point FACTERLIB at the exact path. Sorry for the false positive. All is good with using plugins rather than lib on 0.25.4 Thanks again :) -- You received this message because you are s

Re: [Puppet Users] Re: Behavior of local modules and their included facts

2011-01-18 Thread Nigel Kersten
On Tue, Jan 18, 2011 at 3:50 PM, windowsrefund wrote: > >> >> Looks like the mv lib plugins fix did not result in the fact loading. >> It seems to only be possible if I point FACTERLIB at the exact path. > > Sorry for the false positive. All is good with using plugins rather > than lib on 0.25.4

Re: [Puppet Users] Parameter alias failed

2011-01-18 Thread Denmat
What is 'site'?? Define or class?? You haven't specified. Better check your puppet doco.. Den On 19/01/2011, at 3:20, Lithium wrote: > Hi, > > I've had a class with the following setup: > > class drupal6 { > site ( >$ensure = 'present', >$dbname, >$dbpw, >$db

[Puppet Users] Puppetmaster module path specification with wildcards

2011-01-18 Thread Bostjan Skufca
Hi! Would anyone else fancy a wildcard path expansion in module path specification? Example: modulepath = /etc/puppet/modules/* ---[ above should expand to this equivalent ]-- [ provided that repo1 and repo2 dirs exist in /etc/puppet/modules ] modulepath = /etc/

[Puppet Users] Set client environment on master

2011-01-18 Thread Bostjan Skufca
Hi again! Is there any way to override client-specified environment in puppet master? I would like my puppetmaster node definition to set the real environment the node is in. Tnx for info, b. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To

[Puppet Users] Re: how to set timeout when trigger client to update from master

2011-01-18 Thread jacky wu
thanks Matt, I'll be careful to not send usage question to dev group next time. On Jan 19, 3:25 am, Matt Robinson wrote: > Jacky, > This is really more of a puppet usage question than a development > question, so I'm replying to this in the puppet-users group also where > this would have been bet

[Puppet Users] a non-obvious response of puppet kick rest api

2011-01-18 Thread jacky wu
I saw there is a rest api for "puppet kick" at http://docs.puppetlabs.com/guides/rest_api.html , which is "PUT /{environment}/run/{node certificate name}". I run the example command "curl -k -X PUT -H "Content-Type: text/pson" -d "{}" https://puppetclient:8139/production/run/puppet"; at my puppet

Re: [Puppet Users] Set client environment on master

2011-01-18 Thread Michael Knox
On 19/01/11 1:41 PM, Bostjan Skufca wrote: Hi again! Is there any way to override client-specified environment in puppet master? I would like my puppetmaster node definition to set the real environment the node is in. I don't think there is directly ... I work around this by setting a variable

[Puppet Users] Re: Set client environment on master

2011-01-18 Thread Bostjan Skufca
> I work around this by setting a variable in the node definition if I > want the client to use an environment other than production by default. > My puppet client class then uses this variable value as the environment > value in the clients puppet.conf (via a template) This is my current setup to

Re: [Puppet Users] Re: Set client environment on master

2011-01-18 Thread Dan Bode
On Tue, Jan 18, 2011 at 7:16 PM, Bostjan Skufca < bostjan.skufca.w...@gmail.com> wrote: > > I work around this by setting a variable in the node definition if I > > want the client to use an environment other than production by default. > > My puppet client class then uses this variable value as t

Re: [Puppet Users] Re: Set client environment on master

2011-01-18 Thread Patrick
On Jan 18, 2011, at 7:38 PM, Dan Bode wrote: > On Tue, Jan 18, 2011 at 7:16 PM, Bostjan Skufca > wrote: > > I work around this by setting a variable in the node definition if I > > want the client to use an environment other than production by default. > > My puppet client class then uses this

Re: [Puppet Users] Puppetmaster module path specification with wildcards

2011-01-18 Thread Daniel Pittman
On Tue, Jan 18, 2011 at 18:38, Bostjan Skufca wrote: > Would anyone else fancy a wildcard path expansion in module path > specification? It sounds potentially useful to me, and a reasonable extension to the current behaviour; I would usually expect this to apply to all the various paths, not jus

[Puppet Users] Puppet dashboard don't show current day

2011-01-18 Thread Nicolas Aizier
Now that I've been running dashboard for more than 30 days puppet dashboard daily run status show me the last 30 days fully. Which said like this is good. But it only show me the "day-30" to "day-1", and no more the current one. I'm sure everything is fine since just under that in the "Recently- r

Re: [Puppet Users] Re: Set client environment on master

2011-01-18 Thread John Warburton
On 19 January 2011 14:40, Patrick wrote: > On Jan 18, 2011, at 7:38 PM, Dan Bode wrote: > > On Tue, Jan 18, 2011 at 7:16 PM, Bostjan Skufca < > bostjan.skufca.w...@gmail.com> wrote: > >> > I work around this by setting a variable in the node definition if I >> > want the client to use an environm

Re: [Puppet Users] Re: Set client environment on master

2011-01-18 Thread Bruce Richardson
On Wed, Jan 19, 2011 at 05:10:56PM +1100, John Warburton wrote: > > I actually want to be able to have it the other way around - the node > classifier sets the default environment, but my client can override if it so > wishes - https://projects.puppetlabs.com/issues/3910 *Looks at discussion* Ouc