Re: [Puppet Users] templates for user resources types

2011-03-15 Thread Brian Gallew
On Mon, Mar 14, 2011 at 11:07 AM, VinceT vgtalus...@gmail.com wrote: class passwd { user { root: ensure = present, comment = template(passwd/passwd.root.user.erb), } passwd.root.user.erb contains: Root user on %= hostname % For such a simple substitution,

Re: [Puppet Users] How to get the result of a command in puppet?

2011-03-15 Thread Brian Gallew
On Mon, Mar 14, 2011 at 8:12 AM, duff etienne.dufr...@googlemail.comwrote: Hello, I am trying to export the latest tag of an svn repository to a puppet client. To do so, I would like to run the following command to get the latest tag /usr/bin/svn ls http://url_to_my_svn_repository/tags |

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

2011-03-15 Thread Dan Bode
This is a huge +1 from me On Mon, Mar 14, 2011 at 9:41 PM, Kevin Beckford lazy...@gmail.com wrote: This certainly explains a lot. A very good idea, IMO. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to

Re: [Puppet Users] State of the pkgutil provider?

2011-03-15 Thread Mark Phillips
On 14 Mar 2011, at 22:52, Jonathan wrote: Hi all, Just wondering if anyone knows if work is still being done on this provider. At present, one is not able to ensure that a particular version is installed and this is crucial for a job that I need to do. Last activity on this seems to

Re: [Puppet Users] could not find class

2011-03-15 Thread Martijn Grendelman
On 14-03-11 22:31, Brandon Metcalf wrote: I'm using the module https://github.com/sansnoc/puppet/tree/master/users but running into a problem where puppet can't find a class. In /etc/ puppet/manifests/nodes.pp I have node basenode { include hosts include groups::namidev include

[Puppet Users] Re: configsync requires 2nd puppet run for plugin loading to work

2011-03-15 Thread Mikael Fridh
On Mon, Mar 14, 2011 at 3:27 PM, Mikael Fridh fri...@gmail.com wrote: First run of puppet performs a configsync and an attempt to load the downloaded plugins, the provider fails to be found by puppet in this first run, another re-run of puppet is needed for the provider to work, see debug

Re: [Puppet Users] could not find class

2011-03-15 Thread Brandon Metcalf
Thanks. This is what I thought and I tried moving that class to a module named groups to no avail. I'll revisit to see what I did wrong. On Mar 15, 2011, at 4:48, Martijn Grendelman mart...@iphion.nl wrote: On 14-03-11 22:31, Brandon Metcalf wrote: I'm using the module

[Puppet Users] schedule is a metaparam; this value will inherit to all contained resources ?

2011-03-15 Thread Martijn Grendelman
Hi, I have a type named apt::package, that installs packages on Debian base systems. By default, it sets the schedule to something I defined, to prevent package updates from happening outside maintenance hours. Now, in a specific class, I do this: # This is normally a manual puppet run, so

Re: [Puppet Users] How to get the result of a command in puppet?

2011-03-15 Thread duff
Hi Brian The problem isn't the lack of output from the puppet custom function. I have written some that return results. I used puts statements in the example to show the absence of result from the %x[] statement without having to write some convoluted manifest and puppet output. The %x[]

Re: [Puppet Users] grub config

2011-03-15 Thread Felix Frank
On 03/15/2011 03:25 AM, David Kavanagh wrote: Has anyone come up with a preferred method of messing with grub? I need to install a hypervisor (like xen or kvm) and modify the grub.conf to make the machine boot from the new kernel. I might mess with Augeas. What do the experts say? Hi, don't

[Puppet Users] How do you distribute ruby-augeas for ruby-entreprise?

2011-03-15 Thread Mohamed Lrhazi
We are using ruby-entreprise, instead of redhat's default ruby I was trying to deploy the needed gem using: /opt/ruby-enterprise/bin/gem install --no-rdoc --no-ri /tmp/ruby-augeas-0.3.0.gem But found out this would require gcc to be installed! How can I preb-build this gem to remove the

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

2011-03-15 Thread Christian Kauhaus
Am 08.03.2011 23:37, schrieb Robin Bowes: 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;. I would greatly appreciate such a feature. Is there already a ticket to

Re: [Puppet Users] How do you distribute ruby-augeas for ruby-entreprise?

2011-03-15 Thread Naresh V
On 15 March 2011 20:38, Mohamed Lrhazi lrh...@gmail.com wrote: We are using ruby-entreprise, instead of redhat's default ruby I was trying to deploy the needed gem using: /opt/ruby-enterprise/bin/gem install  --no-rdoc --no-ri /tmp/ruby-augeas-0.3.0.gem But found out this would require

Re: [Puppet Users] schedule is a metaparam; this value will inherit to all contained resources ?

2011-03-15 Thread Nigel Kersten
On Tue, Mar 15, 2011 at 6:14 AM, Martijn Grendelman mart...@iphion.nl wrote: Hi, I have a type named apt::package, that installs packages on Debian base systems. By default, it sets the schedule to something I defined, to prevent package updates from happening outside maintenance hours.

Re: [Puppet Users] How do you distribute ruby-augeas for ruby-entreprise?

2011-03-15 Thread Mohamed Lrhazi
I was hoping for one magic command, like : /opt/ruby-enterprise/bin/gem rebuild-gem  --no-rdoc --no-ri /tmp/ruby-augeas-0.3.0.gem I guess I have to learn and do it myself. thanks a lot for the tips and refs. Mohamed. On Tue, Mar 15, 2011 at 11:23 AM, Naresh V nares...@gmail.com wrote: On 15

Re: [Puppet Users] How to get the result of a command in puppet?

2011-03-15 Thread Brian Gallew
In that case I've got nothing. Sorry. On Mar 15, 2011, at 6:37 AM, duff wrote: Hi Brian The problem isn't the lack of output from the puppet custom function. I have written some that return results. I used puts statements in the example to show the absence of result from the %x[]

Re: [Puppet Users] State of the pkgutil provider?

2011-03-15 Thread Dominic Cleal
On 14/03/11 22:52, Jonathan wrote: Just wondering if anyone knows if work is still being done on this provider. Yep, best to follow the ticket, that has the latest news and follow puppet-dev for a little bit of discussion: http://projects.puppetlabs.com/issues/4258 It's feeling pretty solid at

[Puppet Users] error SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A

2011-03-15 Thread Kash
Hello folks, I am getting this error on one of the clients, here's all of the output. It was working on this client and today it stopped working. I cleaned the cert for this client puppetmaster by puppetca --clean host.domain.com and I removed the /var/lib/puppet/ssl directory so it would get new

[Puppet Users] Re: error SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A

2011-03-15 Thread Kash
ah, please disregard. It seems I found the problem, there is a firewall that is blocking the port which I found when I tried to check the cert # openssl s_client -connect henson.lab.nbttech.com:8140 CONNECTED(0003) 14010:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake

[Puppet Users] How to ignore/skip node definitions with puppetdoc?

2011-03-15 Thread windowsrefund
I've got thousands of node definitions under manifests/nodes and don't see any way to avoid documenting them when calling puppetdoc. Am I missing something? puppetdoc --all -m rdoc --modulepath modules --manifestdir manifests manifests/site.pp I've tried commenting out the lines in site.pp that

Re: [Puppet Users] apache service start problem

2011-03-15 Thread Frank Sweetser
On 3/15/2011 6:40 PM, Tim Dunphy wrote: hello list!! I have developed a custom apache module for my company that setups up our own particular config of httpd and php in order to run our sites.. However, there is one wrinkle. It take two puppet runs to start the httpd service with this module

Re: [Puppet Users] apache service start problem

2011-03-15 Thread Denmat
Hi, May not be the best solution, but you could keep the ssl.conf file declaration but it's source could be made harmless, ie, have a file called ssl.conf that has the httpd directives hashed out. That way the file can exist but not interfere. There maybe better ways though. Cheers, On