Re: [Puppet Users] can not use $caller_module_name

2011-03-08 Thread flex
I am so sorry to reply until now, yes, the notify and the ${caller_module_name} are also the right value, thank you very much! 2011/2/16 Felix Frank > Hi, > > have you tried adding 'notify { "Caller module=$caller_module_name": }' > to various classes/defines in the redarrow module? > > Also (al

Re: [Puppet Users] Re: puppetmaster fails to start using dist puppet.conf file

2011-03-08 Thread Brian Zaugg
Matthew Pounsett conundrum.com> writes: > > > On 2011/02/16, at 07:11, randomcontrol wrote: > > > I removed the "facts" directory and puppet now starts without > > problems, but it doesn't create a facts-file or -directory > > automatically. > > I reached the same conclusion. I still have no

[Puppet Users] Re: in another certificate tangle

2011-03-08 Thread russell.fulton
On Mar 9, 12:03 am, Denmat wrote: > Hi Russell, > > On the client, verify that the ssl dir is set to /etc/puppet/ssl (check > puppet.conf). Remove the ssl dir contents. > > On server, do a 'find' on the old/new hostname in the ssl dir. Remove any > file match. > > On the client, run puppet --w

Re: [Puppet Users] Proposal: "strict" mode for manifests

2011-03-08 Thread John Warburton
On 9 March 2011 09:37, Robin Bowes wrote: > I'd really like puppet to blow-up at this stage and tell me that I've > used an variable without defining it first. Those familiar with perl > will recognise this as "use strict;". > Yes please! There are lots of places where puppet continues where IM

[Puppet Users] Remote Facts Hack

2011-03-08 Thread Brandon Black
I'm sure some will see this as downright sinful and ugly and un-scalable, all of which are probably true, but I've found this to be a really handy hack lately and thought I'd share in case it scratches anyone else's itch. I started to explain all the reasons why I did this, but it started looking

Re: [Puppet Users] classes.txt missing

2011-03-08 Thread Nite
I want classes.txt because I need to run mcollective filters on this box. Is there any way to publish a classes.txt when running puppet apply? -- 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@goo

Re: [Puppet Users] classes.txt missing

2011-03-08 Thread Nigel Kersten
On Tue, Mar 8, 2011 at 3:19 PM, Nitesh wrote: > Hi > It seems like classes.txt file is not being created when I run puppet > on my servers. > I am running puppet without a puppet master. I use subversion to pull > the manifests on each of the boxes and run this command to run puppet. > > puppet ap

[Puppet Users] classes.txt missing

2011-03-08 Thread Nitesh
Hi It seems like classes.txt file is not being created when I run puppet on my servers. I am running puppet without a puppet master. I use subversion to pull the manifests on each of the boxes and run this command to run puppet. puppet apply --verbose /path/to/manifest My puppet version is puppet

Re: [Puppet Users] template file changed, but no notify being sent

2011-03-08 Thread Ben Hughes
On Tue, Mar 08, 2011 at 12:30:05PM +, Tom Boland wrote: > this is the contents of the template: > > SPAMDOPTIONS="-d -L -i <%= ipaddress_eth0 -%> -A 10.44.217.0/20 -A > 10.216.15.242/32 -A 10.216.1.14/32 -A 10.216.15.0/24 -A > 213.171.193.103/32 -m 40 -q -x -u spamd --min-children=40" Change

Re: [Puppet Users] Proposal: "strict" mode for manifests

2011-03-08 Thread Randall Hansen
On Mar 8, 2011, at 2:37 PM, Robin Bowes wrote: > I'd really like puppet to blow-up at this stage and tell me that I've > used an variable without defining it first. Those familiar with perl > will recognise this as "use strict;". ++ r -- Randall Hansen • Director of User Experience • rand...@pu

[Puppet Users] Proposal: "strict" mode for manifests

2011-03-08 Thread Robin Bowes
Nigel suggested I posted this here - he likes the idea. I'm constantly getting bitten by small typos in my manifests, eg. when I do something like: $var1 = extlookup('foo') $var2 = extlookup('foo') # set $var3 true if $var1 is same as $var2 $var3 = ($var1 == $var) puppet allows this, and sets $v

Re: [Puppet Users] finished, yet execution expired

2011-03-08 Thread John Warburton
I'd suggest waiting for 2.6.6 to be fully released >From http://projects.puppetlabs.com/projects/1/wiki/Release_Notes#2.6.5 Faster Passenger support Bug #6257 : Rack POST and PUT request handling is very slow. The speed of the Rack HTTP handler has bee

[Puppet Users] Re: Need ideas on how to deploy custom software package... Stages?

2011-03-08 Thread trey85stang
Thanks for the suggestion, Ill give this a try. On Mar 8, 3:09 pm, Disconnect wrote: > class app { >   exec { "prescript": >     refreshonly => true, command => .., >   } >   package { package1: ensure => installed, require => Exec["prescript"], > notify => Exec["postscript"] } >   package { pac

Re: [Puppet Users] loglevel for a resource type

2011-03-08 Thread Nan Liu
On Tue, Mar 8, 2011 at 4:46 PM, Mohamed Lrhazi wrote: > I have resource for which I set this to debug, like so: > > file { "/tmp/foo": >  content => inline_template("..."), >  loglevel => debug, > } > > I was expecting the following command to not log anything about it, > but it does, it logs the

Re: [Puppet Users] template file changed, but no notify being sent

2011-03-08 Thread Nan Liu
On Tue, Mar 8, 2011 at 12:30 PM, Tom Boland wrote: > Hi guys, > > I have the following which I use to set up /etc/sysconfing/spamassassin. > One of the options in this file sets the listening interface to the IP > address on eth0, and using a template seemed like a perfect way to achieve > this, a

Re: [Puppet Users] Need ideas on how to deploy custom software package... Stages?

2011-03-08 Thread Disconnect
class app { exec { "prescript": refreshonly => true, command => .., } package { package1: ensure => installed, require => Exec["prescript"], notify => Exec["postscript"] } package { package2: ensure => installed, require => Package["package1"], notify => Exec["postscript"] } # or requ

[Puppet Users] Need ideas on how to deploy custom software package... Stages?

2011-03-08 Thread trey85stang
I have a custom app I need to attempt to deploy with puppet but Im not quite grasping how I can do this... So I figured I would share the steps needed and maybe someone can give me an idea: 1. Run pre script to setup environment (must exit with 0) 2. Install 4 rpm packages 3. Run post installat

Re: [Puppet Users] ldap.conf modification problem

2011-03-08 Thread Disconnect
If you are changing how the system sees users (eg before the run, 'id user' would fail) then the "some provider" is puppet. The workaround is to do two runs - a bootstrap base environment that sets up ldap, then a second run that uses those users. On Thu, Feb 17, 2011 at 6:50 AM, Felix Frank < fe

[Puppet Users] Use cases for role-based access?

2011-03-08 Thread Randall Hansen
Good people ~ I'd like to collect real-life use cases for role-based access in Dashboard. I have a few on our wiki, e.g.: * Only production operators can assign groups or nodes to production machines http://projects.puppetlabs.com/projects/dashboard/wiki/RoleBasedAccess Please chime in with w

[Puppet Users] template file changed, but no notify being sent

2011-03-08 Thread Tom Boland
Hi guys, I have the following which I use to set up /etc/sysconfing/spamassassin. One of the options in this file sets the listening interface to the IP address on eth0, and using a template seemed like a perfect way to achieve this, and it does work very well for the initial setup. It woul

Re: [Puppet Users] finished, yet execution expired

2011-03-08 Thread Angelo Corbo
I would like to follow up on this issue, because it was never really addressed, as the OP switched to nginx. I am experiencing a few of those "finished, yet execution expired" runs, and I can see from the agent's run (using --trace, as suggested by Jeff) that there's a timeout (/usr/lib/ruby/1.

[Puppet Users] Re: Puppet Dashboard - Blank "Run Time" Chart in Node Details

2011-03-08 Thread Robert Pumphrey
Hi, I also have a completely blank "Run Time" chart on a new deployment of dashboard 1.0.4. Do you have any idea where I might look to try to fix this problem? Regards Rob On Jan 25, 12:03 am, Jon wrote: > Hi, > As far as I understand it we need to modify puppet/share/puppet- > dashboard/conf

[Puppet Users] loglevel for a resource type

2011-03-08 Thread Mohamed Lrhazi
I have resource for which I set this to debug, like so: file { "/tmp/foo": content => inline_template("..."), loglevel => debug, } I was expecting the following command to not log anything about it, but it does, it logs the diff of the file.. Why? # puppet agent --onetime --ignorecache --no-

Re: [Puppet Users] Using Ruby DSL requires master restart for unrelated changes?

2011-03-08 Thread Brandon Black
On Mon, Mar 7, 2011 at 6:26 AM, Felix Frank wrote: > On 02/28/2011 05:44 AM, blblack wrote: >> [...] >> However, the problem I'm >> experiencing w/ 2.6.1 (Ubuntu Maverick's official packages) is that >> having a Ruby DSL manifest seems to require puppetmaster restart on >> *any* change anywhere, e

Re: [Puppet Users] Force resigning of existing certificates

2011-03-08 Thread Disconnect
Alternately, running the puppetca clean before starting the new client will result in the standard unsigned behavior. (I do think its pretty broken that trying once with the wrong cert poisons the client - if it is an attack, they can just wipe the client cert again, and if it isn't - eg in your c

[Puppet Users] Re: EC2 master restart, broken agents

2011-03-08 Thread Phillip B Oldham
Ignore everything I wrote -- my configuration file which started up the puppet master sets the --certname, however it was corrupt after a config tweak. Fixing that fixed the communication. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post

Re: [Puppet Users] Re: overriding packages in subclasses

2011-03-08 Thread Felix Frank
> You could override Package["postgresql"] and set it to ensure => > absent, but that's not the same as ignoring it - might do what you're > trying to achieve in this specific case though. I like to try and ensure=>undef, but my mileage has varied. Cheers, Felix -- You received this message bec

Re: [Puppet Users] Force resigning of existing certificates

2011-03-08 Thread Felix Frank
On 03/08/2011 12:00 PM, Patrick Cervicek wrote: > Is there a way to force the puppetmaster to resign certificates for > existing certificates when a new CSR for the same hostname arrives? > > When we reinstall freshly formatted clients with puppet (with the same > hostname) the puppet client compl

[Puppet Users] EC2 master restart, broken agents

2011-03-08 Thread Phillip B Oldham
A quick overview of our setup: We have an EBS-backed puppet master instance with an Elastic IP, and a number of puppet agent AMI images in various regions. When these AMIs were created, they were authenticated with the puppet master using the following command: # puppet agent --certname=$(cat /et

Re: [Puppet Users] in another certificate tangle

2011-03-08 Thread Denmat
Hi Russell, On the client, verify that the ssl dir is set to /etc/puppet/ssl (check puppet.conf). Remove the ssl dir contents. On server, do a 'find' on the old/new hostname in the ssl dir. Remove any file match. On the client, run puppet --waitforcert 60 --server Should clear those iss

[Puppet Users] Force resigning of existing certificates

2011-03-08 Thread Patrick Cervicek
Is there a way to force the puppetmaster to resign certificates for existing certificates when a new CSR for the same hostname arrives? When we reinstall freshly formatted clients with puppet (with the same hostname) the puppet client complains: err: Could not request certificate: Retrieved

Re: [Puppet Users] modules are ignored

2011-03-08 Thread Guillem Liarte
On 07/03/11 18:35, Nan Liu wrote: On Mon, Mar 7, 2011 at 10:20 AM, Guillem Liarte wrote: Hello, I am testing puppet and I have the following situation. OS: Centos 5 Puppet version: 2.6.4 If I create a class to do something and I I run it in some nodes in the default manifest directories, p

[Puppet Users] Re: Unable to run puppetmasterd 2.6.5 on Centos 5

2011-03-08 Thread Ankush Grover
/etc/puppet/fileserver.conf file [files] path /etc/puppet/files/ allow 172.16.4.0/24 On Mar 8, 11:23 am, Ben Hughes wrote: > On Mon, Mar 07, 2011 at 02:00:23AM -0800, Ankush Grover wrote: > > /usr/lib/ruby/site_ruby/1.8/puppet/network/handler/fileserver.rb: > > 270:in `readconfig': undefin