Re: [Puppet Users] Re: Facter doesnt resolve ipaddress or ipaddress_eth0

2014-07-28 Thread Robin Bowes
Hmm, I find that hard to believe, ie. that's a pretty massive and fundamental bug in facter if that is indeed the case. Can you reproduce on other boxes? R. On 28 July 2014 19:19, Joao Morais wrote: > > List, just to document the solution. My CentOS was localized and facter > couldn't parse d

Re: [Puppet Users] inherited roles

2014-06-04 Thread Robin Bowes
The recommended puppet approach is the role/profile/module pattern. Here's the blog post that defined this: http://www.craigdunn.org/2012/05/239/ R. On 5 June 2014 00:40, Felix Frank wrote: > On 06/05/2014 01:28 AM, Stuart Cracraft wrote: > > I would assume from basic class syntax one could

Re: [Puppet Users] inherited roles

2014-06-04 Thread Robin Bowes
What do you mean by "inherited roles"? R. On 4 June 2014 23:02, Stuart Cracraft wrote: > > What's the best way to do inherited roles for servers? > > chef seems to excel at this whereas in Puppet it is wordy (at best). > > -- > You received this message because you are subscribed to the Googl

Re: [Puppet Users] params.pp/inheritance/defaults/hiera/hiera functions?

2014-05-31 Thread Robin Bowes
On Sat, 2014-05-31 at 07:12 -0700, Daniele Sluijters wrote: > > - Don't use automatic hiera lookups. This removes the magic and > makes it more clear to everyone that the data is coming from hiera. > > > Hold on a sec; if you mean data bindings with 'automatic hiera > lookups', most certainly us

Re: [Puppet Users] Disamiguate Profiles::Logstash and Logstash

2014-05-31 Thread Robin Bowes
Fully-qualify the class name, ie. use '::logstash'. R. On 31 May 2014 13:17, "Brian Wilkins" wrote: > I am using the puppet logstash module from Forge installed at > /etc/puppet/modules/logstash > > I am trying to setup my profile class as profiles::logstash. My manifest > is at /etc/puppet/modu

Re: [Puppet Users] Re: validate_re() does not correctly match numbers in some cases

2014-05-21 Thread Robin Bowes
I thought hiera always returns strings? ie. $myvar = hiera('testvalue') should return a string, and validate_re( $myvar, '[0-9]+' ) should work just fine? Regardless, this is inconsistent: OK: $var = 1000 validate_re( $var, '[0-9+]' ) FAIL: $var2 = 2000 + 1 validate_r

Re: [Puppet Users] elseIf statement confusion

2014-04-23 Thread Robin Bowes
Read here: http://docs.puppetlabs.com/puppet/latest/reference/lang_conditional.html#if-statements In particular, note the spelling of elsif. :) R. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receivi

Re: [Puppet Users] puppet module permissions - librarian-puppet

2014-04-21 Thread Robin Bowes
What umask are you using? R. On 21 Apr 2014 19:18, "treydock" wrote: > I have noticed lately that on my development system (OS X) and my > production Puppet master (CentOS 6.5) that when installing puppet modules > using librarian-puppet the permissions of some modules and files is very > restri

Re: [Puppet Users] Duplicate hiera hashes in the same data source override instead of merge

2014-04-01 Thread Robin Bowes
I suspect duplicate keys are not valid YAML. R. On 1 Apr 2014 17:51, "Matthew Burgess" wrote: > Apologies for that last email; hiera_hash() is obviously doing *nearly* > the right thing, as it *does* merge hashes across different levels of the > hierarchy. It *doesn't* seem to be merging hashes

Re: [Puppet Users] Possible to get just the keys out of a hiera hash?

2014-03-05 Thread Robin Bowes
Have a look in stdlib for the keys function. R. On 5 March 2014 15:56, Kenton Brede wrote: > So in hiera I've got: > > users_common: > user1: > ensure: present > home: /home/user1 > managehome: true > user2: > ensure: present > home: /home/user2

Re: [Puppet Users] Puppet module template mentioned at contributor summit

2014-03-03 Thread Robin Bowes
(also inline) On 3 Mar 2014, at 19:25, Christopher Wood wrote: > (inline) > > On Mon, Mar 03, 2014 at 06:24:47PM +0000, Robin Bowes wrote: >> >> Additionally, it creates two places in which the parameters can be >> automatically set. eg. ntp::install::packag

Re: [Puppet Users] Puppet module template mentioned at contributor summit

2014-03-03 Thread Robin Bowes
Hi Christopher, On 3 Mar 2014, at 17:55, Christopher Wood wrote: > We could have been talking in my cube. My points when I'm discussing this > with coworkers generally go like so... > > If you use this: > > class { name: } > > You will only be able to declare that name once. If you declare c

Re: [Puppet Users] Puppet module template mentioned at contributor summit

2014-03-03 Thread Robin Bowes
We're currently arguing^w discussing the use of the params class in conjunction with hiera lookups and we've arrived at what I think is a pretty good pattern. Let me explain by way of example, using the venerable ntp application class ntp{ include ::ntp::params Class['::ntp::params']-> cl

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

2011-03-08 Thread Robin Bowes
Nigel suggested I posted this here - he likes the idea. I'm constantly getting bitten by small typos in my manifests, eg. when I do something like: $var1 = extlookup('foo') $var2 = extlookup('foo') # set $var3 true if $var1 is same as $var2 $var3 = ($var1 == $var) puppet allows this, and sets $v

[Puppet Users] Enhancement for puppetmaster init script to balance puppetmaster instances across CPU cores - RFC

2010-12-20 Thread Robin Bowes
Hi all, I've been asked to get comments on this proposed patch to /etc/init.d/puppetmaster: https://projects.puppetlabs.com/issues/5465 Alex Giurgiu modified the puppetmaster init script to balance puppetmaster instances across CPU cores. I updated his modification to use facter to get the no.

Re: [Puppet Users] Recent Func changes to make Func work better with Puppet

2010-03-09 Thread Robin Bowes
On 08/03/10 19:04, Michael DeHaan wrote: > For those of you using both Func and Puppet (perhaps to kick off > Puppetruns, or otherwise to just run arbitrary commands 'now' like > shutdown, reboot, etc), Seth Vidal recently added some changes that > make Func be able to use Puppet certs as an option

Re: [Puppet Users] Re: Make puppet indifferent to package

2010-02-01 Thread Robin Bowes
On 01/02/10 14:55, Doug Warner wrote: > > Since it's part of my base node that every box inherits, it's pretty painful > to just ignore this one class. And as Dan said, this type of thing should be > easily doable. Here's an alternate approach: 1. Install extlookup 2. In your base class, have s

Re: [Puppet Users] Managing authorized_keys

2010-01-14 Thread Robin Bowes
On 14/01/10 10:34, Andre Timmermann wrote: > Am Mittwoch, den 13.01.2010, 16:01 -0500 schrieb Andrew Schulman: > >>> >>> debug: Executing '/usr/bin/perl -ni -e 'print unless /^\Qssh-rsa >>> B3NzaC1yc2EAA/5GytXDjAR3XoxTR6uM= test...@test >>> \E$/' '/root/.ssh/authorized_keys'' >> >> Change /...

[Puppet Users] Re: Best Practices Rewrite - First Draft

2009-10-12 Thread Robin Bowes
On 12/10/09 12:42, Julian Simpson wrote: > > I swear people who use Puppet are more fertile. Congratulations, Paul! > There may be something in that - I have two sets of twins :) Congrats Paul! R. --~--~-~--~~~---~--~~ You received this message because you a

[Puppet Users] Re: ensure => true not working for sshd

2009-09-20 Thread Robin Bowes
On 18/09/09 12:18, David Schmitt wrote: > > Ben Lavender wrote: >> Thanks for your response. >> >> I went through the type reference a little more closely. I had >> assumed that the provider => redhat (I am running rhel 5) would give >> me service xyz start/status/stop/restart on everything, but

[Puppet Users] Re: recommended way to rename the puppetmaster hostname

2009-08-29 Thread Robin Bowes
You might like to investigate using func to push out your changes to the puppet config. R. --~--~-~--~~~---~--~~ 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@goo

[Puppet Users] Re: Hello,

2009-08-13 Thread Robin Bowes
On 13/08/09 02:48, Larry Ludwig wrote: >> >> Postings from new users are moderated - he had previously posted a >> legitimate Puppet query. So he looked like a normal, valid user. > > Oh man spammers are resorting to one legit email, and then one spam eh? More likely that something has compromi

[Puppet Users] SysV rc scripts vs. runit

2009-08-01 Thread Robin Bowes
Hi, I'm looking at writing some template/classes that run services under runit, rather then with SysV rc scripts (ie. in /etc/init.d). It seems pretty straight-forward, but I'm running into an issue trying to ensure that the service is up and started from the runit service but not from the rc se