[Puppet Users] Re: Variable interpolation in class parameters

2011-11-08 Thread Al @ Lab42
On Friday, September 30, 2011 4:50:33 PM UTC+1, jcbollinger wrote: > I do think there's a bug, but I'm not confident it's the one you think > it is. I find no documentation of any difference in variable > interpolation in class parameter defaults than in any other context, > so I expect the

Re: [Puppet Users] Re: Weird opsviewmonitored module behavior

2011-11-08 Thread Galed Friedmann
Hi, Thanks for trying to help. I agree with that you wrote, the weird thing that I mentioned in my previous mail was that indeed the 'proxy3' server appears in opsview. Also to add to this mess there are other proxy servers that use the same opsviewmonitored manifest that appear in opsview and in

[Puppet Users] Re: puppet facter timeout

2011-11-08 Thread madAndroid
We had the same issue ... looks like a newer version has fixed it though: 1.5.6-2ubuntu2.3 On Nov 8, 6:48 am, raffis wrote: > Yep thanks, the ubuntu package 1.5.6-2ubuntu2.2 was the problem. Roll- > back to 1.5.6-2ubuntu2 solved the facter bug. > > On Nov 8, 2:21 am, Jacob Helwig wrote: > > > >

[Puppet Users] Re: Variable interpolation in class parameters

2011-11-08 Thread jcbollinger
On Nov 8, 4:41 am, "Al @ Lab42" wrote: > On Friday, September 30, 2011 4:50:33 PM UTC+1, jcbollinger wrote: > > I do think there's a bug, but I'm not confident it's the one you think > > it is.  I find no documentation of any difference in variable > > interpolation in class parameter defaults t

[Puppet Users] Using a defined function in another class?

2011-11-08 Thread Marc Richman
I have a function defined in one class that I would like to use in another class, but I can not seem to get it to work, I set up a simple test case and I get the following error: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error A

Re: [Puppet Users] Using a defined function in another class?

2011-11-08 Thread Christopher Wood
Off the top of my head, untested: /etc/puppet/modules/sandbox/manifests/one.pp class sandbox::one { include sandbox::two testfn { test:} } /etc/puppet/modules/sandbox/manifests/two.pp class sandbox::two { define testfn () { notify {foo: } } } On Tue, Nov 08, 2011 at 09:31:57AM -0500

RE: [Puppet Users] Using a defined function in another class?

2011-11-08 Thread Marc Richman
Oops grabbed the path from the puppet output not the directory structure. The files should be: /etc/puppet/modules/sandbox/one/manifests/init.pp class one { include two testfn { test:} } /etc/puppet/modules/sandbox/two/manifests/init.pp class two::test { testfn {test: } } the following

Re: [Puppet Users] nss_ldap breaks puppet

2011-11-08 Thread Craig White
On Nov 7, 2011, at 4:18 PM, Raymond wrote: > I have installed and configured the puppet client nodes to use LDAP to > authenicate users. > LDAP connection is OK and user can be authenicated via LDAP. > I use nscd and with my ldap config setting specify on /etc/ldap.conf > > However, puppet is no

[Puppet Users] nagios_service does not replace target file

2011-11-08 Thread Bernd Adamowicz
Hi all, I'm using Puppet 2.6.6 on both clients and master along with stored configurations. My clients provide Nagios configurations like this example: @@nagios_service { "check_ping_${hostname}": check_command => "check_ping!100.0,20%!500.0,60%", use => "generic-service",

Re: [Puppet Users] Re: puppet facter timeout

2011-11-08 Thread Peter Horvath
I had the same issue and the new lucid update of facter solved it. -- Forwarded message -- From: madAndroid Date: 8 November 2011 12:43 Subject: [Puppet Users] Re: puppet facter timeout To: Puppet Users We had the same issue ... looks like a newer version has fixed it though: 1

Re: [Puppet Users] Using a defined function in another class?

2011-11-08 Thread Nigel Kersten
On Tue, Nov 8, 2011 at 6:31 AM, Marc Richman < marc.rich...@livewiremobile.com> wrote: > I have a function defined in one class that I would like to use in another > class, but I can not seem to get it to work, I set up a simple test case > and I get the following error: > Could not retrieve catal

[Puppet Users] ANNOUNCE: Puppet Labs stdlib module version 2.2.0 released

2011-11-08 Thread James Turnbull
We're pleased to announce a new release of the Puppet Labs stdlib module. This module provides a "standard library" of resources for developing Puppet Modules. This modules will include the following additions to Puppet: * Default Stages * Facts * Functions * Defined resource types * Types * Provi

[Puppet Users] Fetching puppet files and templates from Maven

2011-11-08 Thread Justin Lloyd
How would one go about fetching a template from Maven? For example, the normal way of using a file resource for an application config file might be: file { "/etc/app/app.xml": mode=> "0755", owner => "appuser", group => "appuser", content => template("app/app.xml.erb"), # r

[Puppet Users] Removing file downloads through redmine for puppet/facter et al

2011-11-08 Thread Michael Stahnke
We used to upload the files from a release into redmine as “files” attachments. This was at least the third location of the files, and probably isn’t needed. It hasn’t been updated for Puppet since 2.6.7 , and is just stale. This can still be found via google, and creates confusion. All emails from

Re: [Puppet Users] Fetching puppet files and templates from Maven

2011-11-08 Thread Nan Liu
On Tue, Nov 8, 2011 at 5:54 PM, Justin Lloyd wrote: > How would one go about fetching a template from Maven? For example, the > normal way of using a file resource for an application config file might be: > > file { "/etc/app/app.xml": >     mode    => "0755", >     owner   => "appuser", >     gro

[Puppet Users] yumrepo behavior question

2011-11-08 Thread Neal
Hi All, I have two yumrepos configured: class yumrepos { yumrepo { 'RHEL6.1_Repo': baseurl => 'http://hostname.domain.com/rhel6', descr=> 'Internal RHEL6.1 Repository', enabled => '1', gpgcheck => '0', } yumrepo { 'Company_EL6_Repo': baseurl => 'http://hostname.domain.com/repo.el6

Re: [Puppet Users] yumrepo behavior question

2011-11-08 Thread Michael Stahnke
On Tue, Nov 8, 2011 at 4:21 PM, Neal wrote: > Hi All, > I have two yumrepos configured: > > class yumrepos { > yumrepo { 'RHEL6.1_Repo': >  baseurl  => 'http://hostname.domain.com/rhel6', >  descr    => 'Internal RHEL6.1 Repository', >  enabled  => '1', >  gpgcheck => '0', > } > yumrepo { 'Company

[Puppet Users] Could not render to b64_zlib_yaml after 2.6.12 upgrade

2011-11-08 Thread Corey Osman
Hi, I just reinstalled puppet to version 2.6.12 to patch the security bug. Now all of my RHEL4 clients are getting this error: Puppet master is running 2.7.6 Clients are running 2.6.12 puppet-agent[11444]: Starting Puppet client version 2.6.12 slcdbnops1 puppet-agent[11444]: Could not run Puppe

[Puppet Users] puppet repo layout for common config settings

2011-11-08 Thread S Ahmed
So a module structure looks like: /puppet/modules/ssh/{files, templates, manifests} /puppet/modules/ssh/manifests/init.pp Now the init.pp can get to be a large file, so its common to break things out like .e.g. install.pp config.pp service.pp And then the init.pp will look like: class ssh in

Re: [Puppet Users] Could not render to b64_zlib_yaml after 2.6.12 upgrade

2011-11-08 Thread Denmat
Hi, I can't remember for sure but I believe the clients can't be at a higher level than the master. Den On 09/11/2011, at 14:21, Corey Osman wrote: > Hi, > > I just reinstalled puppet to version 2.6.12 to patch the security bug. Now > all of my RHEL4 clients are getting this error: > Puppet

[Puppet Users] Issue with server certificates

2011-11-08 Thread Jon Davis
I've spent most time than I care to admit to trying to setup Puppet in our production environment. I had previously tested it out and gotten it to work and now I cannot for some reason. I am attempting to get Puppet server (with passenger on Apache2) up and running under Ubuntu 11.10 (client too)