Re: [Puppet Users] User Password

2010-06-18 Thread Mathieu Bornoz
Hi, IMHO the best way will be to develop a small fact that indicates whether it's a prod or non-prod environment and use it in the ressource to select the right password : user {"my-user": ensure => present, password => $yourfact ? { 'prod' => 'production-password', 'non-prod' => 'non

Re: [Puppet Users] Augeas problem changing values in postfix/main.cf

2010-06-18 Thread John Martin
Thanks Patrick! I like the separation of the values being set and adding the comments. That makes complete sense. As for the over-writing of the values, you were absolutely right. The main.cf was being managed by a different class that another Ops engineer had implemented and I was unaware of.

[Puppet Users] Re: Foreman / external_node.rb

2010-06-18 Thread CraftyTech
It looks like it's working now This is what I get when I click on yaml ... --- parameters: puppetmaster: puppet classes: [] environment: "" It doesn't let me edit it thought... It seems to be static.. On Jun 17, 9:54 pm, Ohad Levy wrote: > that is not a limitation, and usually actually w

Re: [Puppet Users] Could not find class, code-blind

2010-06-18 Thread Tore Lønøy
Darn it. now I see the typo. I looked at your comment for 5 mins before i noticed. Oh well :) Thanks alot! On 17 June 2010 19:55, Gabriel Filion wrote: > On 2010-06-17 06:31, Tore wrote: > > I'm troubled with a node-definition not able to resolve a class: > > Could not find class rhnsd::common

Re: [Puppet Users] Composed custom facts, request for opinions and ideas (somewhat related to setting up puppet)

2010-06-18 Thread Silviu Paragina
On 17.06.2010 14:30, David Schmitt wrote: On 6/17/2010 1:02 PM, Silviu Paragina wrote: On 17.06.2010 10:53, David Schmitt wrote: On 6/16/2010 8:27 PM, Silviu Paragina wrote: This is somewhat related to an older thread. The topic was how to install some perquisite packages for puppet, like auge

Re: [Puppet Users] Composed custom facts, request for opinions and ideas (somewhat related to setting up puppet)

2010-06-18 Thread Robert Scheer
On Wed, Jun 16, 2010 at 21:27 +0300, Silviu Paragina wrote: > So are there any better ideeas? Not a better idea, just another idea: We simply repackaged facter with lsb-release as extra dependency. As we already have our own package repository to install software released by our developers, this

Re: [Puppet Users] Composed custom facts, request for opinions and ideas (somewhat related to setting up puppet)

2010-06-18 Thread R.I.Pienaar
- "Silviu Paragina" wrote: > > > I've been left with the impression that if augeas fails for provider > reasons it fails the whole run. > > My test case would imply the same thing. > > sil...@puppet-test:/etc/puppet/repo/development/modules/puppet$ cat > test.pp > augeas > { "puppet sett

[Puppet Users] Re: Failed to retrieve current state of resource error on one module

2010-06-18 Thread Aaron Blew
To follow up, I had absolutely been looking at the problem for too long. The filenames were snmpd.conf and snmpd.options, so I was just missing the d. -Aaron On Thu, Jun 17, 2010 at 4:44 PM, Aaron Blew wrote: > I'm getting the following errors in the module I'm writing to maintain my > snmpd

[Puppet Users] Multiple environments and mail

2010-06-18 Thread Robert Scheer
To facilitate developing, testing and releasing puppet code, we use different environments. That works very well. The only problem is that I cannot prevent puppet from mailing a report, nor direct it somewhere else, when using a different environment. The file /etc/puppet/puppet.conf on the puppet

[Puppet Users] custom facts in legacy puppet 0.24.[89]

2010-06-18 Thread sHaggY_caT
Hi all! How i may use in legacy puppet (0.24.[89]) custom facts in functions? In new documentation not good faq about this: http://docs.reductivelabs.com/guides/plugins_in_modules.html this documentation has information about new versions (25.5) and very old (prior 0.24.4), not about our 0.24.8 >

Re: [Puppet Users] Multiple environments and mail

2010-06-18 Thread Nigel Kersten
On Fri, Jun 18, 2010 at 10:34 AM, Robert Scheer wrote: > To facilitate developing, testing and releasing puppet code, we use > different environments. That works very well. The only problem is that > I cannot prevent puppet from mailing a report, nor direct it somewhere > else, when using a differ

Re: [Puppet Users] Multiple environments and mail

2010-06-18 Thread Joe McDonagh
On 06/18/2010 02:18 PM, Nigel Kersten wrote: On Fri, Jun 18, 2010 at 10:34 AM, Robert Scheer wrote: To facilitate developing, testing and releasing puppet code, we use different environments. That works very well. The only problem is that I cannot prevent puppet from mailing a report, nor d

[Puppet Users] node inheritance for external nodes

2010-06-18 Thread Jon Choate
Is it possible to express node inheritance when using external nodes. If it is could someone post what the yaml might look like? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com.

[Puppet Users] passing variables to static files

2010-06-18 Thread CraftyTech
Hello All, I have quick question for you; How can I pass a variable to a static file that I'm distributing via puppet? i.g, : class abc { file { "/etc/abc.conf": ensure => present source => "puppet:///sys/abc.conf} } puppet:///sys/abc.conf contains

Re: [Puppet Users] passing variables to static files

2010-06-18 Thread Nigel Kersten
On Fri, Jun 18, 2010 at 11:47 AM, CraftyTech wrote: > Hello All, > >      I have quick question for you; How can I pass a variable to a > static file that I'm distributing via puppet?  i.g, : > class abc { >     file { "/etc/abc.conf": >           ensure => present >           source => "puppet://

[Puppet Users] Re: passing variables to static files

2010-06-18 Thread CraftyTech
Yeah, that looks better. Thanks. On Jun 18, 2:49 pm, Nigel Kersten wrote: > On Fri, Jun 18, 2010 at 11:47 AM, CraftyTech wrote: > > Hello All, > > >      I have quick question for you; How can I pass a variable to a > > static file that I'm distributing via puppet?  i.g, : > > class abc { > >

[Puppet Users] Get started with Puppet Development - the DeveloperBootstrap module

2010-06-18 Thread James Turnbull
Hi all We've created a little module to help people interested in developing, testing or working on the Puppet source: http://forge.puppetlabs.com/puppetlabs/DeveloperBootstrap This module installs everything someone needs on Red Hat, Fedora, CentOS, Debian, Ubuntu or Solaris in order to develop

Re: [Puppet Users] Puppetmaster with stored configs leaks file descriptors on CentOS 5

2010-06-18 Thread Jason Koppe
I'm having the same issue on CentOS5.2 with the following packages: *yum* puppet-0.25.5-1.el5 puppet-server-0.25.5-1.el5 rubygems-1.3.1-1.el5 ruby-shadow-1.4.1-7.el5 ruby-devel-1.8.6.111-1 ruby-1.8.6.111-1 ruby-ri-1.8.6.111-1 ruby-docs-1.8.5-5.el5_3.7 ruby-augeas-0.3.0-1.el5 ruby-irb-1.8.6.111-1 r

Re: [Puppet Users] passing variables to static files

2010-06-18 Thread spawn-puppet
As another option, I believe you can use: file { "/etc/abc.conf": ensure => present content => "rundir= /central/$hostname/\nlogdir= $hostname.log" } - Jeff On 06/18/2010 01:49 PM, Nigel Kersten wrote: On Fri, Jun 18, 2010 at 11:47 AM, CraftyTech