[Puppet Users] Re: dropping support for ruby 1.85?

2011-11-15 Thread Ohad Levy
On Wed, Nov 16, 2011 at 6:30 AM, Jo Rhett wrote: > On Nov 9, 2011, at 5:47 AM, Ohad Levy wrote: > > Ruby 1.87 support > Foreman 0.4 would be the last major version supporting Ruby older then 1.87. > This has to be done since the upstream rails community no longer > supports older versions, which m

[Puppet Users] Duplicate resource problem for localhost

2011-11-15 Thread Karen Loomans
Hi, I have a module to manage /etc/hosts that works fine for RHEL, but not on Solaris. Basically I've defined all our hosts as virtual host resources, and grouped them various ways by tagging them. These are then realized based on the tags for each node as appropriate. Hosts can have multiple t

[Puppet Users] Atomic update of several config files

2011-11-15 Thread Dmitry
Hello! Imagine I have some service which config is split into several config files. How should I configure puppet to manage those files so that: 1) service is restarted only once after all configs were synced 2) if some error occurs during update (network error, disk full, any other) I want to be

[Puppet Users] Re: [Puppet-dev] Re: ERROR: Connection reset by peer

2011-11-15 Thread James Turnbull
Dmitry wrote: > Or, if this situation is too uncommon, is there any way to ask puppet > agent to always act as if master is running on remote host, even if it > runs on the same host and to always communicate via network? > > Thanks. > > On Nov 15, 7:13 pm, Dmitry wrote: >> Hello! >> >> I use pu

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

2011-11-15 Thread James Turnbull
Jo Rhett wrote: > James, I love the idea of this module but the wiki page you listed below > is fairly broken. The syntax under anchor certainly wouldn't parse, and > I'm staring at it and I'm not even sure what some of it is intending to > say... Jo The syntax does parse from what I can see and

Re: [Puppet Users] dropping support for ruby 1.85?

2011-11-15 Thread Brian Gupta
On Tue, Nov 15, 2011 at 11:30 PM, Jo Rhett wrote: > On Nov 9, 2011, at 5:47 AM, Ohad Levy wrote: > > Ruby 1.87 support > Foreman 0.4 would be the last major version supporting Ruby older then > 1.87. > This has to be done since the upstream rails community no longer > supports older versions, whi

Re: [Puppet Users] dropping support for ruby 1.85?

2011-11-15 Thread Eric Shamow
Not supported, but Karanbir Singh has made available 1.8.7 RPMs: http://centos.karan.org/el5/ruby187/ -Eric -- Eric Shamow Professional Services http://puppetlabs.com/ (c)631.871.6441 On Tuesday, November 15, 2011 at 8:30 PM, Jo Rhett wrote: > On Nov 9, 2011, at 5:47 AM, Ohad Levy wrote: >

[Puppet Users] dropping support for ruby 1.85?

2011-11-15 Thread Jo Rhett
On Nov 9, 2011, at 5:47 AM, Ohad Levy wrote: > Ruby 1.87 support > Foreman 0.4 would be the last major version supporting Ruby older then 1.87. > This has to be done since the upstream rails community no longer > supports older versions, which means that critical security patches > are no longer av

[Puppet Users] lighttpd / modifying variables in templates?

2011-11-15 Thread Jon Davis
I'm trying to get puppet to manage my lighttpd install, but I use vhosts. The line I'd normally use is something like this: $HTTP["host"] =~ "site\.example\.tld" { server.document-root= "/var/www/site.example.tld" accesslog.filename = "/var/log/lighttpd/ s

[Puppet Users] Re: Adding users by using 'spaceship' syntax

2011-11-15 Thread Stephan
Hmm, I see. We went another avenue. We create all users on all systems and then let another instance decide which users to let log in to which machine. RADIUS servers or Kerberos servers are capable of this. But depending on the surroundings this might be overkill. So I agree that for you the spac

Re: [Puppet Users] Re: How to debug intermittent puppet catalog failure

2011-11-15 Thread Josh Cooper
Hi Len, On Thu, Nov 10, 2011 at 11:27 AM, Len Rugen wrote: > It seems like I have two sets of similar symptoms. I have another set of > servers where puppetd -tv runs fine, but the daemon will never finish a > catalog run. Again, puppetdlock lingers. > > I think the first problem may track to

Re: [Puppet Users] Knowing if a file is managed by puppet

2011-11-15 Thread Iain Sutton
+1 for tangled strings On 16 November 2011 04:03, Ken Barber wrote: > Depends on why you want this info ... but its available in the catalog > on the box for 'grepping' (more or less). > > Something I recommend to some people: > > http://www.tenshu.net/2010/08/adventures-in-puppet-tangled-string

Re: [Puppet Users] How to debug intermittent puppet catalog failure

2011-11-15 Thread Jo Rhett
Are you running the latest centos or redhat-based kernel? If so, 274.7.1 is corked. Backgrade from 274.7.1 to 274.3.1 and the problem will disappear. This is documented in https://projects.puppetlabs.com/issues/10418 And RedHat bug https://bugzilla.redhat.com/show_bug.cgi?id=751214 On Nov

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

2011-11-15 Thread Jo Rhett
James, I love the idea of this module but the wiki page you listed below is fairly broken. The syntax under anchor certainly wouldn't parse, and I'm staring at it and I'm not even sure what some of it is intending to say... On Nov 8, 2011, at 2:39 PM, James Turnbull wrote: > We're pleased to an

Re: [Puppet Users] Editing a variable defined in the same scope

2011-11-15 Thread Christopher Wood
On Tue, Nov 15, 2011 at 01:42:24PM -0800, Justin Lloyd wrote: >I tried the following (names changed to protect the innocent and guilty): > >class myclass ( $param ) { > >��� $myvar = [ "foo", "bar" ] > >��� if $param == "special" { >��� $myvar += [ "blah" ] >��� } >

[Puppet Users] Editing a variable defined in the same scope

2011-11-15 Thread Justin Lloyd
I tried the following (names changed to protect the innocent and guilty): class myclass ( $param ) { $myvar = [ "foo", "bar" ] if $param == "special" { $myvar += [ "blah" ] } } and got the message "...Cannot append, variable myvar is defined in this scope...". According to

Re: [Puppet Users] can we alter the 30-min run time?

2011-11-15 Thread Christopher Wood
(Without jumping too hard in the middle of your conversation... inline.) On Tue, Nov 15, 2011 at 11:30:40AM -0800, Jo Rhett wrote: >On Nov 5, 2011, at 9:42 AM, Nigel Kersten wrote: > > On Thu, Nov 3, 2011 at 12:41 PM, Jo Rhett <[1]jrh...@netconsonance.com> > wrote: > >Nigel

Re: [Puppet Users] can we alter the 30-min run time?

2011-11-15 Thread Jo Rhett
On Nov 5, 2011, at 9:42 AM, Nigel Kersten wrote: > On Thu, Nov 3, 2011 at 12:41 PM, Jo Rhett wrote: > Nigel, As you've said, the time chosen for the run cycle will be consistent. > All of these settings are already set -- this isn't a question of how to > change how often to run, it's how to af

[Puppet Users] Re: Adding users by using 'spaceship' syntax

2011-11-15 Thread Justin Spies
On Nov 15, 12:27 pm, Stephan wrote: > Hi Justin, > > > So I'd like to avoid having to type the user titles in the call to > > users::create. Is there a way to do this using the 'User <| group == > > 'ssh' |>' syntax to select what I want? > > Unfortunately the spaceship operator can't contain an

[Puppet Users] Re: Accessing definition parameter value out of scope

2011-11-15 Thread jcbollinger
On Nov 15, 7:07 am, Falkor wrote: > Hi everybody. > > i'm running Puppet 2.6.2 and I have the following problem. > > Assuming I have a definition toto::tutu instanced as follows: > > --%< --- > define toto::tutu ($key = 'default_val') { ... } > > toto::tutu { 'exa

[Puppet Users] Re: password management with puppet

2011-11-15 Thread jcbollinger
On Nov 15, 4:22 am, Sunny wrote: > Hello, > > I am using accounts::user for managing user accounts on my > infrastructure. > I know that we can set passwords in manifests for the users we are > managing. > > I would like to know if there is way that a user which does not have > access to the pup

[Puppet Users] Re: password management with puppet

2011-11-15 Thread Stephan
Hi Sunny, might go into a totally different direction than what you actually anticipated, but you could use something else to do your authentication, like Kerberos (e.g. AD) or RADIUS (e.g. Cisco ACS). Probably not much more difficult to get a properly secure LDAP server in place which contains th

[Puppet Users] Re: Adding users by using 'spaceship' syntax

2011-11-15 Thread Stephan
Hi Justin, > So I'd like to avoid having to type the user titles in the call to > users::create. Is there a way to do this using the 'User <| group == > 'ssh' |>' syntax to select what I want? Unfortunately the spaceship operator can't contain anything other than == and !=, and doesn't accept an

Re: [Puppet Users] Rounding in variable expressions

2011-11-15 Thread Dan Carley
On 15 November 2011 16:57, Jacob Helwig wrote: > On 2011-11-15 07:24 , Tom Hall wrote: > > Hi, > > > > Can you round in variable assignment expressions? > > > > I would like to be able to set > > > > $my_var = floor(::processorcount * 0.8) > > > > Cheers, > > Tom > > > > That should work just fin

Re: [Puppet Users] Knowing if a file is managed by puppet

2011-11-15 Thread Ken Barber
Depends on why you want this info ... but its available in the catalog on the box for 'grepping' (more or less). Something I recommend to some people: http://www.tenshu.net/2010/08/adventures-in-puppet-tangled-strings.html Which does more or less that ... but shows a banner in VIM for users to w

[Puppet Users] Adding users by using 'spaceship' syntax

2011-11-15 Thread Justin Spies
Hello, I have setup scripts / modules that allow adding ssh users courtesy of the Puppet Wiki. I have defined my users in a central file called 'sshusers.pp' and am importing that file into my 'nodes.pp' file. One question am I trying to resolve is how to add multiple users without having to specif

Re: [Puppet Users] Rounding in variable expressions

2011-11-15 Thread Jacob Helwig
On 2011-11-15 07:24 , Tom Hall wrote: > Hi, > > Can you round in variable assignment expressions? > > I would like to be able to set > > $my_var = floor(::processorcount * 0.8) > > Cheers, > Tom > That should work just fine as long as you define an rvalue function called 'floor'. There shoul

Re: [Puppet Users] Knowing if a file is managed by puppet

2011-11-15 Thread Vince Taluskie
I'm using the puppet-ls script for this purpose. https://github.com/deanwilson/puppet-scripts/blob/master/puppet-ls vince On Tue, Nov 15, 2011 at 9:22 AM, Nigel Kersten wrote: > On Tue, Nov 15, 2011 at 8:14 AM, Nan Liu wrote: >> On Tue, Nov 15, 2011 at 5:38 AM, chaica wrote: >>> I'm looking f

Re: [Puppet Users] Knowing if a file is managed by puppet

2011-11-15 Thread Nigel Kersten
On Tue, Nov 15, 2011 at 8:14 AM, Nan Liu wrote: > On Tue, Nov 15, 2011 at 5:38 AM, chaica wrote: >> I'm looking for a simple way to check if a file on a client (where >> puppetd is running) is managed by puppet. At this time, I have to put >> a comment on the file and have to run a puppetd -to --

Re: [Puppet Users] yumrepo absent not working on 2.6.12

2011-11-15 Thread Stefan Schulte
On Tue, Nov 15, 2011 at 03:49:57PM +0100, Arnau Bria wrote: > Hi all, > > Seems that ensure => absent is not working on puppet 2.6.12 > yumrepo type. > > 'sl-5.5-base' : > baseurl => 'http://reposerver/computing-SL-55-base-x86_64/RPMS.base/', > descr => 'SL 5.5 base', > en

Re: [Puppet Users] Knowing if a file is managed by puppet

2011-11-15 Thread Nan Liu
On Tue, Nov 15, 2011 at 5:38 AM, chaica wrote: > I'm looking for a simple way to check if a file on a client (where > puppetd is running) is managed by puppet. At this time, I have to put > a comment on the file and have to run a puppetd -to --noop in order to > see if puppet triggers actions on t

Re: [Puppet Users] Re: yumrepo absent not working on 2.6.12

2011-11-15 Thread Arnau Bria
On Tue, 15 Nov 2011 10:06:43 -0500 Nan Liu wrote: [...] > A quick glance at the type shows you need to set 1 or 0, absent means > the property should not exist rather than puppet should configure the > value to 0. Ok. I understood that absent removes the file. My fault. any way for removing the

Re: [Puppet Users] Knowing if a file is managed by puppet

2011-11-15 Thread DEGREMONT Aurelien
R.I.Pienaar a écrit : I wrote https://github.com/ripienaar/puppet-parselocalconfig some time ago that can do this on the node - I am not sure if it still works with latest puppet version but worth a try We are using a modified version of this script and it is mandatory for us. I do not know

Re: [Puppet Users] Knowing if a file is managed by puppet

2011-11-15 Thread R.I.Pienaar
- Original Message - > Hi, > > I'm looking for a simple way to check if a file on a client (where > puppetd is running) is managed by puppet. At this time, I have to put > a comment on the file and have to run a puppetd -to --noop in order > to > see if puppet triggers actions on this fi

[Puppet Users] Re: NFS clients - puppet hang when mount point

2011-11-15 Thread madAndroid
FYI, We ended up going with a mix of the two suggestions: having 'bg' specified as one of the mount point options, and also having the mount resource specify => present instead of => mounted, and then we use an exec to force the remount, constrained by an unless and onlyif: exec { "re

[Puppet Users] Re: NFS clients - puppet hang when mount point

2011-11-15 Thread madAndroid
FYI, We ended up going with a mix of the two suggestions: having 'bg' specified as one of the mount point options, and also having the mount resource specify => present instead of => mounted, and then we use an exec to force the remount, constrained by an unless and onlyif: exec { "re

[Puppet Users] Rounding in variable expressions

2011-11-15 Thread Tom Hall
Hi, Can you round in variable assignment expressions? I would like to be able to set $my_var = floor(::processorcount * 0.8) Cheers, Tom -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@google

[Puppet Users] Accessing definition parameter value out of scope

2011-11-15 Thread Falkor
Hi everybody. i'm running Puppet 2.6.2 and I have the following problem. Assuming I have a definition toto::tutu instanced as follows: --%< --- define toto::tutu ($key = 'default_val') { ... } toto::tutu { 'example1': key => 'val1' } toto::tutu { 'example2': key

[Puppet Users] password management with puppet

2011-11-15 Thread Sunny
Hello, I am using accounts::user for managing user accounts on my infrastructure. I know that we can set passwords in manifests for the users we are managing. I would like to know if there is way that a user which does not have access to the puppet master, but has access to the puppet clients, ca

[Puppet Users] Knowing if a file is managed by puppet

2011-11-15 Thread chaica
Hi, I'm looking for a simple way to check if a file on a client (where puppetd is running) is managed by puppet. At this time, I have to put a comment on the file and have to run a puppetd -to --noop in order to see if puppet triggers actions on this file. Is there any way to simply find if a file

Re: [Puppet Users] Re: yumrepo absent not working on 2.6.12

2011-11-15 Thread Nan Liu
On Tue, Nov 15, 2011 at 9:53 AM, Arnau Bria wrote: > Sorry, > > forgot to mention that if we set 0 instead of absent, the parameter > works: > > notice: > /Stage[pre]/Common::Os::Release5::Sl55::Repos/Yumrepo[sl-5.5-base]/enabled: > enabled changed '' to '0' A quick glance at the type shows you

[Puppet Users] Re: yumrepo absent not working on 2.6.12

2011-11-15 Thread Arnau Bria
Sorry, forgot to mention that if we set 0 instead of absent, the parameter works: notice: /Stage[pre]/Common::Os::Release5::Sl55::Repos/Yumrepo[sl-5.5-base]/enabled: enabled changed '' to '0' Cheers, Arnau -- You received this message because you are subscribed to the Google Groups "Puppet

[Puppet Users] yumrepo absent not working on 2.6.12

2011-11-15 Thread Arnau Bria
Hi all, Seems that ensure => absent is not working on puppet 2.6.12 yumrepo type. 'sl-5.5-base' : baseurl => 'http://reposerver/computing-SL-55-base-x86_64/RPMS.base/', descr => 'SL 5.5 base', enabled => absent, exclude => 'yum-conf* c-ares'; # ls -lsa /etc/yum.re

Re: [Puppet Users] Advocacy Material

2011-11-15 Thread Nan Liu
On Tue, Nov 15, 2011 at 8:16 AM, Ohad Levy wrote: > On Fri, Nov 11, 2011 at 11:36 AM, Daniel Shaw wrote: >> Hi, >> >> I have dabbled with Puppet in previous positions, had success and >> loved it. My current employer does not have in place any systems >> management tools and is an ideal candidate

Re: [Puppet Users] Hiera - How to set a parameter to the value false

2011-11-15 Thread Bruno Léon
On 11-11-11 12:56 PM, Peter Meier wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've been using hiera for a few weeks now, but I'm stuck now trying to set a value to false Basically, I have a class that read its parameter in hiera, and in a yaml file I have the following code: --- use_

[Puppet Users] Re: How to use built-in resource in custom provider?

2011-11-15 Thread jcbollinger
On Nov 14, 10:28 am, tmpup wrote: > What you alluded to in your final paragraph is exactly right - I'm > basically trying to extend the file type.  I'd like for a source to be > S3, and be able to specify it much like you specify the source being > the puppet file server (e.g puppet:/// would be

Re: [Puppet Users] Advocacy Material

2011-11-15 Thread Ohad Levy
On Fri, Nov 11, 2011 at 11:36 AM, Daniel Shaw wrote: > Hi, > > I have dabbled with Puppet in previous positions, had success and > loved it. My current employer does not have in place any systems > management tools and is an ideal candidate for another Puppet > installation. I obviously need to ru

[Puppet Users] Virtual Define-based resources can only be realized once

2011-11-15 Thread Stephan
Hi all, here is what I have: A module that is responsible to roll out and configure TSM (a backup tool). Basically I need a text file that mentions all directories that have to be backed up. I want to make it a virtual resource and let other modules configure which parts of it have to be backed u

[Puppet Users] Re: Advocacy Material

2011-11-15 Thread Andreas Paul
Hi there, I think that the customer case studies make excellent propaganda material: http://puppetlabs.com/customers/case-studies/ Take a look at them, but maybe puppetlabs employees have some powerpoint presentations you need and are willing to share. :) -- You received this message because y