[Puppet Users] Re: ldap ENC extension to use environment parent node

2011-09-27 Thread habanero
From the lack of response I'm guessing that this post either hasn't been read much or people don't have a similar setup so aren't bothered - but I was wondering if anyone feels this to be worthy of a feature request? Thanks! -- You received this message because you are subscribed to the Google

[Puppet Users] [Dashboard] permission denied error when using apache

2011-09-27 Thread Tom De Vylder
Hi all, I'm running into javascript errors using Puppet Dashboard behind an Apache2/Passenger setup. Permission denied - /usr/share/puppet-dashboard/public/javascripts/all.js The permissions inside public/ are ok. The whole public folder is owned by the Apache user. And I'm able to browse

Re: [Puppet Users] [Dashboard] permission denied error when using apache

2011-09-27 Thread Scott Smith
Check the exception. It's trying to rm all.js On Sep 27, 2011 3:02 AM, Tom De Vylder t...@penumbra.be wrote: Hi all, I'm running into javascript errors using Puppet Dashboard behind an Apache2/Passenger setup. Permission denied - /usr/share/puppet-dashboard/public/javascripts/all.js The

Re: [Puppet Users] [Dashboard] permission denied error when using apache

2011-09-27 Thread Tom De Vylder
On 27 Sep 2011, at 16:10, Scott Smith wrote: Check the exception. It's trying to rm all.js The same happens with stylesheets/all.css. Both files don't exist on the filesystem, nor are they supplied in the package. # dpkg -c puppet-dashboard_1.2.1-1_all.deb | grep -iE 'all.css|all.js' # I

[Puppet Users] Re: issues with puppet service and mco puppetd

2011-09-27 Thread mbargar
OK so you will have to for give me here. I am not sure what RC means, but is what you're saying is that the PE version puppet is likely causing the issue? Eric, I added the ensure = stopped as these machine no do get rebooted that often and enable = false only works to stop the service on boot

Re: [Puppet Users] Re: issues with puppet service and mco puppetd

2011-09-27 Thread R.I.Pienaar
- Original Message - OK so you will have to for give me here. I am not sure what RC means, but is what you're saying is that the PE version puppet is likely causing the issue? the script in /etc/init.d (or your OS equivelant) that starts puppet and is used to check it's status. if

[Puppet Users] CPAN package provider?

2011-09-27 Thread Jeffrey Ollie
Google searches don't turn up anything very promising in terms of a Puppet CPAN package provider. What are people using to manage Perl modules installed through CPAN? -- Jeff Ollie -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to

[Puppet Users] Re: issues with puppet service and mco puppetd

2011-09-27 Thread mbargar
OK here is my output for the different commands with puppet agent -- test running: # service pe-puppet-agent status * could not access PID file for agent # service --status-all | grep puppet [ - ] pe-puppet-agent # ps aux | grep puppet /opt/puppet/bin/ruby1.8 /usr/local/bin/puppet agent --test

Re: [Puppet Users] Re: issues with puppet service and mco puppetd

2011-09-27 Thread R.I.Pienaar
- Original Message - OK here is my output for the different commands with puppet agent -- test running: # service pe-puppet-agent status * could not access PID file for agent # service --status-all | grep puppet [ - ] pe-puppet-agent # ps aux | grep puppet

Re: [Puppet Users] CPAN package provider?

2011-09-27 Thread Aaron Grewell
We're not using CPAN. Modules are installed as RPMs in our environment. On Tue, Sep 27, 2011 at 7:59 AM, Jeffrey Ollie j...@ocjtech.us wrote: Google searches don't turn up anything very promising in terms of a Puppet CPAN package provider. What are people using to manage Perl modules

[Puppet Users] Trying to mount a bunch of directories using a hash

2011-09-27 Thread Marc Richman
I am trying to use a hash to mount a bunch of directories but I am unsure how to get the value for the key. Feel free to tell me I am going about this the wrong way. This is the error I get from my module (init.pp listed below): Could not retrieve catalog from remote server: Error 400 on

[Puppet Users] Exec resource question

2011-09-27 Thread Damien Bridges
Hi All, Does anyone know how to add bash code to the exec resource? I was thinking I could add it to the command section. I thought I could run the code after I put the link command and options in. However, it didn't work. My bash code has 'if' statements with $ signs in it. I want to move

[Puppet Users] SU on client servers

2011-09-27 Thread Damien Bridges
Hi All, How do you configure puppet nodes on the puppet master to allow SUing to root? I want to be able to ssh as a regular user then SU to root on client puppet servers. How do you configure the puppetmaster for this? Thanks in advance, -- You received this message because you are

Re: [Puppet Users] Exec resource question

2011-09-27 Thread Christopher Wood
On Tue, Sep 27, 2011 at 10:52:24AM -0700, Damien Bridges wrote: Hi All, Does anyone know how to add bash code to the exec resource? I was thinking I could add it to the command section. I thought I could run the code after I put the link command and options in. However, it didn't work.

Re: [Puppet Users] SU on client servers

2011-09-27 Thread Richard Clark
On 27 Sep 2011, at 18:55, Damien Bridges damien3...@gmail.com wrote: Hi All, How do you configure puppet nodes on the puppet master to allow SUing to root? I want to be able to ssh as a regular user then SU to root on client puppet servers. How do you configure the puppetmaster for this?

Re: [Puppet Users] [Dashboard] permission denied error when using apache

2011-09-27 Thread Russell Van Tassell
Just FYI/FWIW ... Passenger tries to run (setuid) as the user that owns config.ru... not as the apache user. Ref: http://projects.puppetlabs.com/projects/1/wiki/Using_Passenger On Tue, Sep 27, 2011 at 7:30 AM, Tom De Vylder t...@penumbra.be wrote: On 27 Sep 2011, at 16:10, Scott Smith wrote:

Re: [Puppet Users] SU on client servers

2011-09-27 Thread Scott Smith
I just change everyone's uidgid to 0:0 *trollface* -scott On Tue, Sep 27, 2011 at 11:31 AM, Richard Clark n...@fohnet.co.uk wrote: On 27 Sep 2011, at 18:55, Damien Bridges damien3...@gmail.com wrote: Hi All, How do you configure puppet nodes on the puppet master to

[Puppet Users] undefined class results in error instead of warning in 2.7.3

2011-09-27 Thread Steven Seed
My ENC has always added some extra classes not defined in puppet (things that I might end up using later based on the host name, department, or other attributes associated with the host in my database). In 0.25.5 the undefined class was reported at (info), in 2.6.9 it was reported as (warning),

Re: [Puppet Users] SU on client servers

2011-09-27 Thread Daniel Pittman
On Tue, Sep 27, 2011 at 10:55, Damien Bridges damien3...@gmail.com wrote: G'day Damien. How do you configure puppet nodes on the puppet master to allow SUing to root?  I want to be able to ssh as a regular user then SU to root on client puppet servers.  How do you configure the puppetmaster

[Puppet Users] Dashboard parameters to control VIPs?

2011-09-27 Thread Scott Merrill
Some of the Red Hat Enterprise Linux servers in our environment sometimes get assigned virtual IP addresses (eth0:1, eth0:2, etc). Puppet Dashboard's parameters seem like an ideal way to define and provision virtual IPs on these servers. One could create a vip1 parameter on a node, and define a

Re: [Puppet Users] Issue with puppet cert -l -all

2011-09-27 Thread Stephane Rossan
It started to work again, and nobody knows why. Thanks for the help. -Stephane On 9/9/11 2:00 PM, Nan Liu n...@puppetlabs.com wrote: On Fri, Sep 9, 2011 at 9:53 AM, Stephane Rossan sros...@netflix.com wrote: I just did a puppet cert ­d, it doesn't work. So, I did a puppet cert ­d ­l:

[Puppet Users] create_resources (or variable scoping?) question

2011-09-27 Thread Matthias Pigulla
Hi all, I would like to create a configuration along the lines of complex_user { joe: uid = 42, sshkeys = { key1-comment = { key = ..., ... }, key2-comment = { key = ..., ...} } ... } That is, a definition that will create a user

[Puppet Users] AW: create_resources (or variable scoping?) question

2011-09-27 Thread Matthias Pigulla
Replying to myself: define complex_user($uid, $sshkeys) { /* ... create user with $name ... */ create_resources(keys_for, $sshkeys) } define keys_for($key) { ... } I just found that when having a $user_name = $name in complex_user, I can access that in keys_for simply as

[Puppet Users] Increment variable each time a definition is called.

2011-09-27 Thread Douglas Garstang
I want to set a variable in a class, and then increment the value of that variable each time a definition is called. Since I have to qualify the variable in the definition, like so: $platform::proxy::config::ssl_port_start I tried this: $platform::proxy::config::ssl_port_start =

Re: [Puppet Users] Increment variable each time a definition is called.

2011-09-27 Thread Dan Bode
I can think of something really hacky that I don't recommend for production, it could be ok for debugging purposes. notice(inline_template( '%= $dangerous_counter = $dangerous_counter || 0; $dangerous_counter = $dangerous_counter + 1 %' )) will create a global variable in Ruby, I have a feeling

Re: [Puppet Users] Increment variable each time a definition is called.

2011-09-27 Thread Douglas Garstang
On Tue, Sep 27, 2011 at 3:20 PM, Dan Bode d...@puppetlabs.com wrote: I can think of something really hacky that I don't recommend for production, it could be ok for debugging purposes. notice(inline_template( '%= $dangerous_counter = $dangerous_counter || 0; $dangerous_counter =

Re: [Puppet Users] Increment variable each time a definition is called.

2011-09-27 Thread Daniel Pittman
On Tue, Sep 27, 2011 at 15:20, Dan Bode d...@puppetlabs.com wrote: I can think of something really hacky that I don't recommend for production, it could be ok for debugging purposes. Yeah, this is *totally* not a sane thing to do. Really not sane. Find a better way to solve your problem. That

Re: [Puppet Users] Increment variable each time a definition is called.

2011-09-27 Thread Douglas Garstang
On Tue, Sep 27, 2011 at 3:40 PM, Daniel Pittman dan...@puppetlabs.com wrote: On Tue, Sep 27, 2011 at 15:20, Dan Bode d...@puppetlabs.com wrote: I can think of something really hacky that I don't recommend for production, it could be ok for debugging purposes. Yeah, this is *totally* not a

Re: [Puppet Users] Increment variable each time a definition is called.

2011-09-27 Thread Jason Slagle
On Tue, 27 Sep 2011, Douglas Garstang wrote: I hope that's not the only way. What I'm trying to do here isn't that unusual. I have an several instances of an application running, each with different port numbers. The definition sets the values for the instance, but rather than listing the

Re: [Puppet Users] Increment variable each time a definition is called.

2011-09-27 Thread Douglas Garstang
On Tue, Sep 27, 2011 at 3:55 PM, Jason Slagle raist...@tacorp.net wrote: On Tue, 27 Sep 2011, Douglas Garstang wrote: I hope that's not the only way. What I'm trying to do here isn't that unusual. I have an several instances of an application running, each with different port numbers. The

Re: [Puppet Users] Increment variable each time a definition is called.

2011-09-27 Thread Douglas Garstang
On Tue, Sep 27, 2011 at 3:55 PM, Douglas Garstang doug.garst...@gmail.com wrote: On Tue, Sep 27, 2011 at 3:40 PM, Daniel Pittman dan...@puppetlabs.com wrote: On Tue, Sep 27, 2011 at 15:20, Dan Bode d...@puppetlabs.com wrote: I can think of something really hacky that I don't recommend for

[Puppet Users] Setting file level ACL

2011-09-27 Thread Corey Osman
How do I go about using puppet to set an ACL on a file. I did not see ACL support under the file type. Has anybody done this before without using exec? Example: # Set ACL on directory setfacl -R -d -m mask:007 /directory Corey Osman -- You received this message because you are

[Puppet Users] Re: CPAN package provider?

2011-09-27 Thread John Lyman
We are using ActiveState perl so we compile ppms from cpan modules. I created a definition based on this page: http://www.windley.com/archives/2008/10/using_puppet_and_cpan.shtml It works pretty well for us. Ideally, a provider would be better than a definition, but this works in the mean time.

Re: [Puppet Users] Exec resource question

2011-09-27 Thread Jo Rhett
You can't do that, as the IF code is resolved by the puppet master before delivering the compiled catalog to the client. It looks like you want to just make a shell script, push it to the client and run it there. File { myshellscript: …, notify-Exec['myshellscript'] } Exec {

[Puppet Users] Re: Dashboard parameters to control VIPs?

2011-09-27 Thread Sandor W. Sklar
Perhaps I'm not understanding what you are asking, but I've got this class network::interface: class network::interface( $device, $bootproto = 'static', $hwaddr, $ipaddr, $ipv6init = 'yes',

[Puppet Users] apt-get lock the administration directory

2011-09-27 Thread Rafael Chacon
Greetings to everyone, I have a doubt about how puppet works and I would appreciate if some of you have the answer to this. The question arise in the following scenario: Suppose I have two module that both of them need to install a package. Let's say I have a module that install apache and

[Puppet Users] Storing puppet agent reports on the agent itself

2011-09-27 Thread Shanker Balan
Helo, I am slightly confused by the way the client reports are stored - from my experiments, it seems that the reports get submitted to the puppet master. Is there a way to generate the yaml on the agent and store it locally itself such that another offline process (like mcollective) can use it?

Re: [Puppet Users] apt-get lock the administration directory

2011-09-27 Thread Jo Rhett
On Sep 27, 2011, at 7:35 PM, Rafael Chacon wrote: So, in theory there are no dependencies between both module, but what would happen if both modules begin to use apt-get at the same time, one of them it's going to have an error like: E: Could not get lock /var/lib/dpkg/lock - open (11: