[Puppet Users] Re: wildcard ssl certificates to auhtenticate multiple agents

2012-08-10 Thread janschumann
Hi! I already have an autosign.conf. But i want to authenticate multiple different hosts with one cert. Thanks. Am Montag, 6. August 2012 15:27:50 UTC+2 schrieb llowder: Set up an autosign.conf to have your puppet master automagically sign all .local certificates.

[Puppet Users] Puppet configuration: user

2012-08-10 Thread Axel Bock
Hi readers, I am having trouble understanding the puppet user= configuration setting in the puppet.conf file. If puppet is configured to run as puppet by default, how can puppet execute system configuration settings? installing packages etc. is done basically by root and root only, so does

[Puppet Users] Duplicate definition of resources in the same class

2012-08-10 Thread Rost
Hi all, I am struggling on how to do this : $path = '/tmp/lib' file { $path: ensure = directory, recurse = true, purge = true, } file { $path: ensure = directory, resurce = true, source = 'puppet:///modules/jboss/lib } When puppet compiles the manifest, I get the following

[Puppet Users] Re: Duplicate definition of resources in the same class

2012-08-10 Thread Axel Bock
easy. every resource may only be defined _once_. you try ... twice (file { $path : ... } and file { $path: ... }, right?) why not simply file { $path: ensure = directory, recurse = true, purge = true, source = 'puppet:///modules/jboss/lib } ? if you _need_ to do this twice for

[Puppet Users] error in doing puppetd --test

2012-08-10 Thread iamauser
Hello, I am new to puppet. I installed puppet-server and puppet on two separate machines. I did a few install and reinstall on the client machines while testing a few things and that perhaps changed the permission settings of the /var/lib/puppet/ssl and some other directories. Now, when I try

[Puppet Users] Re: Duplicate definition of resources in the same class

2012-08-10 Thread Rost
Hi Axel Thanks a lot, you solution is right. Le vendredi 10 août 2012 12:40:21 UTC+2, Rost a écrit : Hi all, I am struggling on how to do this : $path = '/tmp/lib' file { $path: ensure = directory, recurse = true, purge = true, } file { $path: ensure = directory,

Re: [Puppet Users] Puppet configuration: user

2012-08-10 Thread Andrew Hendry
Hi, user= is for the puppetmaster user which does not need to run as root. Regards, Andrew On Fri, Aug 10, 2012 at 8:05 PM, Axel Bock axel.b...@arbeitsagentur.de wrote: Hi readers, I am having trouble understanding the puppet user= configuration setting in the puppet.conf file. If puppet is

[Puppet Users] SSL issues - certificate verify failed

2012-08-10 Thread Axel Bock
Hello readers, I have this little issue that my puppet client refuses to do anything because of SSL validation errors. Maybe I'll just post dump of what happens, that makes it clear I hope. Does anyone have a suggestion why that might happen? what I already checked: On the master: -

Re: [Puppet Users] SSL issues - certificate verify failed

2012-08-10 Thread Axel Bock
hm, nevermind, I somehow solved it. although I'm not (yet) sure how. It involved a lot of restarting and deleting :) thanks anyways! Axel. 2012/8/10 Axel Bock axel.b...@arbeitsagentur.de Hello readers, I have this little issue that my puppet client refuses to do anything because of SSL

Re: [Puppet Users] Delete unmanaged files in directory

2012-08-10 Thread Axel Bock
Hi Calvin, that works great :) ! thanks! /Axel. Am Mittwoch, 8. August 2012 14:11:27 UTC+2 schrieb Calvin Walton: On Tue, 2012-08-07 at 22:53 -0700, Axel Bock wrote: Hello readers, I might have the need for something like delete all unmanaged files. Explanation: I am creating a

[Puppet Users] Re: SSL issues - certificate verify failed

2012-08-10 Thread Axel Bock
hm, nevermind, I solved it somehow, although I don't know how (yet). it involved a lot of deleting and restarting :) ... thanks anyways! /Axel. Am Freitag, 10. August 2012 14:10:57 UTC+2 schrieb Axel Bock: Hello readers, I have this little issue that my puppet client refuses to do

Re: [Puppet Users] exec executes remote command but the actual script not run

2012-08-10 Thread jcbollinger
On Thursday, August 9, 2012 7:24:23 AM UTC-5, pmbuko wrote: Adding this parameter to your file resource, notify = Exec['Deploy Code'], and these parameters to your exec resource, require= File['/var/tmp/deploy.tar'], refreshonly = true, will create the appropriate

[Puppet Users] exec subscribe debugging?

2012-08-10 Thread Matt Zagrabelny
Hi! I've got a simple file and exec resource coupling that does not seem to be working as expected: file { /etc/postfix/transport: source = puppet:///private/etc/postfix/transport, } exec { rebuild_transport_index_for_mailman: command = postmap /etc/postfix/transport,

[Puppet Users] Re: Error 400 on Server: Another local or imported resource exists with the type and title Sshkey

2012-08-10 Thread banjer
If there is a new foohost client then you may not need to do anything. If not, then yes, you should clear its configuration out of your storeconfigs DB. Its a new hostname as well as a new key. I wasn't clear on that earlier. Also, I had run `puppet node clean foohost` before fyi.

[Puppet Users] Re: SSL issues - certificate verify failed

2012-08-10 Thread banjer
It usually involves doing this one the server: puppet cert clean myhost and on the client: rm -rf /var/lib/puppet/ssl Then try it again on your client: `puppet agent --test` Then back to your master: `puppet cert sign myhost`. On Friday, August 10, 2012 8:30:50 AM UTC-4, Axel Bock

Re: [Puppet Users] exec subscribe debugging?

2012-08-10 Thread David Schmitt
On 10.08.2012 16:19, Matt Zagrabelny wrote: Hi! I've got a simple file and exec resource coupling that does not seem to be working as expected: file { /etc/postfix/transport: source = puppet:///private/etc/postfix/transport, } exec { rebuild_transport_index_for_mailman:

Re: [Puppet Users] exec subscribe debugging?

2012-08-10 Thread Matt Zagrabelny
On Fri, Aug 10, 2012 at 9:53 AM, David Schmitt da...@dasz.at wrote: On 10.08.2012 16:19, Matt Zagrabelny wrote: Hi! I've got a simple file and exec resource coupling that does not seem to be working as expected: file { /etc/postfix/transport: source =

Re: [Puppet Users] exec executes remote command but the actual script not run

2012-08-10 Thread Peter Bukowinski
On Aug 10, 2012, at 9:04 AM, jcbollinger john.bollin...@stjude.org wrote: On Thursday, August 9, 2012 7:24:23 AM UTC-5, pmbuko wrote: Adding this parameter to your file resource, notify = Exec['Deploy Code'], and these parameters to your exec resource, require=

Re: [Puppet Users] exec subscribe debugging?

2012-08-10 Thread Matt Zagrabelny
On Fri, Aug 10, 2012 at 10:14 AM, Matt Zagrabelny mzagr...@d.umn.edu wrote: On Fri, Aug 10, 2012 at 9:53 AM, David Schmitt da...@dasz.at wrote: On 10.08.2012 16:19, Matt Zagrabelny wrote: Hi! I've got a simple file and exec resource coupling that does not seem to be working as expected:

Re: [Puppet Users] Running apt-get update on package install

2012-08-10 Thread Nigel Kersten
On Thu, Aug 9, 2012 at 2:00 PM, Denmat tu2bg...@gmail.com wrote: On 10/08/2012, at 3:20, Nigel Kersten ni...@puppetlabs.com wrote: On Thu, Aug 9, 2012 at 10:10 AM, Douglas Garstang doug.garst...@gmail.com wrote: I'm on Ubuntu, and I wanted to always have 'apt-get update' run before

[Puppet Users] Re: Puppet modules for Ceph

2012-08-10 Thread François Charlier
On Jul 18 09:41, Mark Nelson wrote: On 7/18/12 8:58 AM, François Charlier wrote: Hi, I'm currently working on writing a Puppet module for Ceph. As after some research I found no existing module, I'll start from scratch but I would be glad to hear from people who would already have

[Puppet Users] Multiple Versions of Gem command Supported?

2012-08-10 Thread Ron
I have two versions of Ruby on my servers. One that is used for Puppet and system scripts (Ruby 1.8.7) and then one which is a custom package I built running the latest Ruby 1.9.3. This is used for the Ruby/Rails applications that are being developed by our dev team. Is there a way for Puppet

[Puppet Users] Re: hiera scope and hiera-foreman

2012-08-10 Thread Christian McHugh
Okay. I figured out my issue. I'm not a developer so this is probably ugly, but came up with: begin fqdn = scope.catalog.tags[4] rescue fqdn = scope['fqdn'] if scope.has_key?('fqdn') Hiera.debug(trying mcollective) end Hiera.debug(got

Re: [Puppet Users] Multiple Versions of Gem command Supported?

2012-08-10 Thread Nan Liu
On Fri, Aug 10, 2012 at 10:20 AM, Ron ronald.vale...@gmail.com wrote: I have two versions of Ruby on my servers. One that is used for Puppet and system scripts (Ruby 1.8.7) and then one which is a custom package I built running the latest Ruby 1.9.3. This is used for the Ruby/Rails applications

Re: [Puppet Users] Multiple Versions of Gem command Supported?

2012-08-10 Thread Ron
Thanks for the update, I am assuming I need pluginsync in order for this to work properly. I will test it out, still some limitations with this approach as you stated. No good way as of yet to handle multiple gem versions. Of course this is a moot point once Puppet 3 is released and linked to

Re: [Puppet Users] initial puppet agent --test --verbose upon quick start installation FAILS v2.53

2012-08-10 Thread Justin Stoller
On Fri, Aug 10, 2012 at 6:08 AM, Patrick McCarty patrick.mcca...@gmail.com wrote: All, I am evaluating Puppet for a client. It has not been a smooth evaluation. :-) Sorry to hear that. It's a great tool, but its still got a few edges that if you fall on can be mighty sharp. I have four

Re: [Puppet Users] exec executes remote command but the actual script not run

2012-08-10 Thread jcbollinger
On Friday, August 10, 2012 10:23:16 AM UTC-5, pmbuko wrote: On Aug 10, 2012, at 9:04 AM, jcbollinger john.bo...@stjude.orgjavascript: wrote: On Thursday, August 9, 2012 7:24:23 AM UTC-5, pmbuko wrote: Adding this parameter to your file resource, notify = Exec['Deploy Code'],

[Puppet Users] New Scope 2.7

2012-08-10 Thread Douglas Garstang
So... I was just reading the new puppet scoping documentation at http://docs.puppetlabs.com/guides/scope_and_puppet.html. I don't get it. If I have this... class web_server { include common include webserver $my_role = web_server } Can I access the $my_role variable in the

[Puppet Users] Re: Puppet dashboard suddenly stopped working

2012-08-10 Thread Corey Hammerton
Is the puppet-dashboard-workers service running? On Friday, August 10, 2012 4:26:20 PM UTC-4, Anatoliy Lisovskiy (Wavebourn) wrote: Today I found that puppet dashboard does not work since Aug,1 It shows all 23 hosts as being non-responsive, and 8,000+ pending tasks. Both server and agents

Re: [Puppet Users] Re: Puppet dashboard suddenly stopped working

2012-08-10 Thread Anatoliy Lisovskiy
Oops... Thank you! Catching up now. Anatoliy On Fri, Aug 10, 2012 at 1:29 PM, Corey Hammerton corey.hammer...@gmail.comwrote: Is the puppet-dashboard-workers service running? On Friday, August 10, 2012 4:26:20 PM UTC-4, Anatoliy Lisovskiy (Wavebourn) wrote: Today I found that puppet

Re: [Puppet Users] Re: Puppet dashboard suddenly stopped working

2012-08-10 Thread Anatoliy Lisovskiy
Though complains, but works... NOTE: Gem::Specification#installation_path is deprecated, use base_dir. It will be removed on or after 2011-10-01. Gem::Specification#installation_path called from /usr/share/puppet-dashboard/config/../vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:93.

[Puppet Users] Re: New Scope 2.7

2012-08-10 Thread llowder
On Friday, August 10, 2012 3:28:33 PM UTC-5, Douglas wrote: So... I was just reading the new puppet scoping documentation at http://docs.puppetlabs.com/guides/scope_and_puppet.html. I don't get it. If I have this... class web_server { include common include webserver

Re: [Puppet Users] Re: New Scope 2.7

2012-08-10 Thread Douglas Garstang
On Fri, Aug 10, 2012 at 1:42 PM, llowder llowde...@gmail.com wrote: On Friday, August 10, 2012 3:28:33 PM UTC-5, Douglas wrote: So... I was just reading the new puppet scoping documentation at http://docs.puppetlabs.com/guides/scope_and_puppet.html. I don't get it. If I have this...

Re: [Puppet Users] Re: New Scope 2.7

2012-08-10 Thread llowder
On Friday, August 10, 2012 3:52:42 PM UTC-5, Douglas wrote: On Fri, Aug 10, 2012 at 1:42 PM, llowder llow...@gmail.com javascript: wrote: On Friday, August 10, 2012 3:28:33 PM UTC-5, Douglas wrote: So... I was just reading the new puppet scoping documentation at

Re: [Puppet Users] Re: New Scope 2.7

2012-08-10 Thread Douglas Garstang
On Fri, Aug 10, 2012 at 2:24 PM, llowder llowde...@gmail.com wrote: On Friday, August 10, 2012 3:52:42 PM UTC-5, Douglas wrote: On Fri, Aug 10, 2012 at 1:42 PM, llowder llow...@gmail.com wrote: On Friday, August 10, 2012 3:28:33 PM UTC-5, Douglas wrote: So... I was just reading

[Puppet Users] Re: Error 400 on Server: Another local or imported resource exists with the type and title Sshkey

2012-08-10 Thread jcbollinger
On Friday, August 10, 2012 9:50:00 AM UTC-5, banjer wrote: If there is a new foohost client then you may not need to do anything. If not, then yes, you should clear its configuration out of your storeconfigs DB. Its a new hostname as well as a new key. I wasn't clear on that

Re: [Puppet Users] Re: New Scope 2.7

2012-08-10 Thread Denmat
On 11/08/2012, at 7:27, Douglas Garstang doug.garst...@gmail.com wrote: On Fri, Aug 10, 2012 at 2:24 PM, llowder llowde...@gmail.com wrote: On Friday, August 10, 2012 3:52:42 PM UTC-5, Douglas wrote: On Fri, Aug 10, 2012 at 1:42 PM, llowder llow...@gmail.com wrote: On Friday,

Re: [Puppet Users] New Scope 2.7

2012-08-10 Thread Dan White
On Aug 10, 2012, at 6:11 PM, Denmat wrote: On 11/08/2012, at 7:27, Douglas Garstang doug.garst...@gmail.com wrote: On Fri, Aug 10, 2012 at 2:24 PM, llowder llowde...@gmail.com wrote: On Friday, August 10, 2012 3:52:42 PM UTC-5, Douglas wrote: On Fri, Aug 10, 2012 at 1:42 PM,

[Puppet Users] Pass array to a define

2012-08-10 Thread Douglas Garstang
How can I pass an array to a define? It's not documented in the puppet language guide. I've got: define lvm::create_vg ( $pvdisks ) { exec { 'pvcreate': command = /sbin/pvcreate -yf $pvdisks, unless = /sbin/pvdisplay $pvdisks, ... } } class

[Puppet Users] Re: Puppet Master Forbidding Access to Cert Revocation List

2012-08-10 Thread kp-v
I was pretty close with my first guess, but I might have figured it out. I have not resolved the issue, however I am certain of the issue at hand. In 2.6.16, puppet only searches for the auth.conf file at /etc/puppet/auth.conf and this path appears to be hardcoded. Therefore, because puppet

[Puppet Users] Extending Puppet Woes

2012-08-10 Thread Mike Carr
I am looking to extend one of the puppet modules -mysql. I found that they are extending Puppet with types and providers. First off I am having a difficult time find any documentationo on this and I do not know Ruby that well. The problem that I am having is this, I have the following code: