Re: [Puppet Users] puppetlabs-firewall and removing a parameter

2015-08-10 Thread Matthias Saou
Hi, So... no answers... bug report filed! :-) https://tickets.puppetlabs.com/browse/MODULES-2376 Matthias On Mon, 3 Aug 2015 13:26:07 +0200 Matthias Saou wrote: > Hi, > > I had this applied to my nodes : > > firewall { "${prenumber}7 portknock let connections th

[Puppet Users] puppetlabs-firewall and removing a parameter

2015-08-03 Thread Matthias Saou
se or even remove the $rseconds line entirely, puppet just leaves the previous value on existing nodes. For new nodes or if I manually remove all iptables rules first, then the new rule gets created without any "--seconds 3" as expected. How can I tell puppet to actually r

Re: [Puppet Users] Re: Initial Puppet 4.0.0 Migration Experience

2015-05-20 Thread Matthias Saou
On Wed, 20 May 2015 03:57:50 -0700 (PDT) Nick Howes wrote: > On Wednesday, 20 May 2015 11:52:06 UTC+1, Matthias Saou wrote: > > > > I will post followups if > > anyone is interested. > > > > > Count me interested - I'm in the same pre-leap state (3

[Puppet Users] Initial Puppet 4.0.0 Migration Experience

2015-05-20 Thread Matthias Saou
a quick search doesn't come up with much relevant. This is a RHEL7 system with the default LANG=en_US.UTF-8... Not going so well so far, I was really hoping for less differences between 3.7 with the future parser and 4.0. I will post followups

[Puppet Users] I can't seem to get $::processorcount to be an integer...

2015-04-16 Thread Matthias Saou
t to get it as a number instead of a string : "mtu_eth0": 1500, "operatingsystemrelease": "6.6", "swapsize_mb": "4032.00", "processorcount": 8, Is this a known limitation? Am I doing something wrong? Matthias -- Matthias

Re: [Puppet Users] Unrecognised escape sequence '\[' in file

2014-08-27 Thread Matthias Saou
On Wed, 27 Aug 2014 05:31:39 -0700 (PDT) Brian Wilkins wrote: > I am having to escape a regular expression in my match and puppet > complains on the puppetmaster of an "Unrecognised escape sequence". > How do I fix this so the logs don't get cluttered with this message? > I am using Puppet 3.6.2.

Re: [Puppet Users] CF3 to PE 3.3 - Hiera Question

2014-08-08 Thread Matthias Saou
ET" or => { ipv4_10_225_172 }; > "DC2_QA_NET" or => { ipv4_10_224_136 }; > > For example…. > If your hostname matches the “web_regex” and you reside in the > DC2_QA_NET then do X, Y and Z. > > Thanks in advance for your time and assistance. > >

Re: [Puppet Users] Puppet/yum fails to install old packages

2014-08-08 Thread Matthias Saou
e errors if I check all of the packages have > been installed. rpm -qa | grep postgres > postgresql-libs-8.1.23-10.el5_10 > postgresql92-libs-9.2.8-1PGDG.rhel5 > postgresql-libs-8.1.23-10.el5_10 > postgresql92-9.2.8-1PGDG.rhel5 > > So on the second run everything that was missed,

Re: [Puppet Users] Puppet Template for controlling puppet nodes puppet.conf file help

2014-08-08 Thread Matthias Saou
ing the cache format is added automatically. > # The default value is '$confdir/localconfig'. > localconfig = $vardir/localconfig > certname = <%= fqdn %> > server = <%= puppetserver %> > pluginsync = true > repor

Re: [Puppet Users] can't restart auditd

2014-07-29 Thread Matthias Saou
the > restart (service vs systemctl)? Take a look at : http://docs.puppetlabs.com/references/stable/type.html#service You *should* be able to force the restart command with something like this (untested) : service { 'auditd': restart => '/sbin/service auditd restart'

Re: [Puppet Users] Announce: Puppet 3.6.0 Released!

2014-05-16 Thread Matthias Saou
petlabs.com/puppet/latest/reference/release_notes.html#feature-purging-unmanaged-ssh-authorized-keys Thank you so so so so so much! Definitely my most wanted feature since... forever :-) Off to try that now... Matt

Re: [Puppet Users] feeding files/templates to modules

2014-05-16 Thread Matthias Saou
h variable in file source parameters and template paths to make your life easier. HTH, Matthias -- Matthias Saou ██ ██ ██ ██ Web: h

Re: [Puppet Users] A file managed by puppet that is left alone if customized

2014-04-24 Thread Matthias Saou
d why one would want to do that... I could actually use that behaviour for the initial ~/.gitconfig files I create for system users, for example. Matthias -- Matthias Saou ██ ██ ██ ██ Web: http://matthias.saou.

Re: [Puppet Users] Array becomes string in template

2014-04-24 Thread Matthias Saou
.] > So why has this virtualhost array suddenly become a string > when I call the each function on it in the template? Because unless I'm mistaken, you're converting your array to a string with ".join('", "')". Just re

Re: [Puppet Users] Joining two commands in exec

2014-04-14 Thread Matthias Saou
probably. Run : /usr/bin/hadoop fs -ls /user/foo; echo $? If you see 0 then the exec will no longer run when using "unless". Run : /usr/bin/hadoop fs -mkdir /user/foo; echo $? You'll need to see 0 when the HDFS directory didn't exis

Re: [Puppet Users] Possible issue with nagios_* commands

2014-02-25 Thread Matthias Saou
agios/nagios_hostgroup.cfg', '/etc/nagios/nagios_service.cfg', '/etc/nagios/nagios_servicegroup.cfg', '/etc/nagios/nagios_timeperiod.cfg', ]: ensure => present,

Re: [Puppet Users] RHEL 7 Repository up on yum.puppetlabs.com

2014-02-11 Thread Matthias Saou
operatingsystem => RedHat operatingsystemmajrelease => 7 operatingsystemrelease => 7.0 osfamily => RedHat rubyversion => 2.0.0 Matthias -- Matthias Saou ██ ██ ██ █

Re: [Puppet Users] RHEL 7 Repository up on yum.puppetlabs.com

2014-02-11 Thread Matthias Saou
xist :-) But it's a good start, much appreciated! Matthias -- Matthias Saou ██ ██ ██ ██ Web: http://matthias.saou.eu/

Re: [Puppet Users] Nagios default files being overwritten

2014-02-11 Thread Matthias Saou
solved it in my own module : https://github.com/thias/puppet-nagios/blob/master/manifests/server.pp#L550 (feel free to copy/paste those lines!) Though I did "move" all of the resources to their default files and stopped using the objects/templates.cfg file. HTH, Matthias --

Re: [Puppet Users] Choo choo here comes the FOSDEM train

2014-01-30 Thread Matthias Saou
; about 15 places left if you want to join in. So, if you want food, > please register :). > > See you soon! > -- Matthias Saou ██ ██ ██

Re: [Puppet Users] Optimizing the Puppet CA using Apache

2014-01-15 Thread Matthias Saou
headers like IfModifiedSince etc. > > So here's some instructions on how to do it: > https://gist.github.com/dalen/8419913 > > Works for me, but no guarantees etc :) This is a simple and interesting change. Care to share some numbers about the "speeds things up quite a bit" par

[Puppet Users] A different way of managing POSIX ACLs : fooacl

2013-12-17 Thread Matthias Saou
ACL is still being applied by the module (remove users easily and reliably). * Automatic setting of both normal and default ACLs to the same values (shortens declarations, increases code readability). -- Feedback welcome! Matthias

Re: [Puppet Users] Multiple server roles using hiera and facts

2013-12-02 Thread Matthias Saou
y separate variables for each role, such as: webserver: true appserver: true With matching facts which exist or don't exist. HTH, Matthias -- Matthias Saou ██ ██

Re: [Puppet Users] Problem with PuppetDB and OpenSSL (solved)

2013-11-28 Thread Matthias Saou
d. I'm guessing the update broke something related to SSL. After installing 1.7.0, alternatives automatically updated all java related paths to make 1.7.0 the default, and puppetdb seems to work fine with it. So if you're running PuppetDB on RHEL (or any clone), the

[Puppet Users] Is anyone using puppetlabs-firewall with IPv6?

2013-10-04 Thread Matthias Saou
Is there some option or trivial workaround I'm missing? Matthias -- Matthias Saou ██ ██ ██ ██ Web: http://matthias.saou.eu/ ██ Mai

Re: [Puppet Users] Announce: Facter 1.7.2 Available

2013-07-17 Thread Matthias Saou
raring to the default cows list > e8590a6 (packaging) Remove f16 from mocks to build as it is EOL > 4b3a085 (packaging) Update FACTERVERSION to 1.7.2-rc1 > 2027595 (packaging) Update FACTERVERSION to 1.7.2 > > Moses Mendoza (2): > 2029359 (packaging) Use the pa

Re: [Puppet Users] puppetlabs-ntp 1.0.0-rc1

2013-07-10 Thread Matthias Saou
::ntp::install'] -> Class['::ntp::config'] ~> Class['::ntp::service'] -> Anchor['ntp::end'] Matthias -- Matthias Saou ██ ██ ██ ██ Web: http://mat

Re: [Puppet Users] puppetlabs-ntp 1.0.0-rc1

2013-07-10 Thread Matthias Saou
"false" -%> Add a new params variable for it, similar to $panic? * For "real" RHEL, the ntp server hostnames used will be "centos" instead of the original "rhel" ones. I'm not su

Re: [Puppet Users] The handy Grail of Modules Standards

2013-06-18 Thread Matthias Saou
oo, where do we put the common virtual resource?). * The use of author-specific common modules (I don't like taking a johndoe/apache module and noticing I then need johndoe/common). But don't get me wrong, I like where this is headed, and will participate as much as I can.

Re: [Puppet Users] The handy Grail of Modules Standards

2013-06-17 Thread Matthias Saou
by most. It's what works for many GNU/Linux distributions (Debian, Fedora, etc.). Just my 2¢ ;-) Matthias -- Matthias Saou ██ ██ ██ ██ Web: http://matthias.saou.eu/ ██ Mail/XMPP: matth..

Re: [Puppet Users] any elegant way to iterate/map over data types?

2013-06-11 Thread Matthias Saou
d), something like this should work, since "-" is unique : $user-akey = regsubst($akey, '^(.*)$', "${name}-\1") my_ssh_authorized_key { $user-akey: ensure => $ensure } Then : define my_ssh_authorized_key ( $ensure ) { $user = regsubst

Re: [Puppet Users] Run a File resource only if another file is missing

2013-06-03 Thread Matthias Saou
cting me! Matthias -- Matthias Saou ██ ██ ██ ██ Web: http://matthias.saou.eu/ ██ Mail/XMPP: matth...@saou.eu ██ ███

Re: [Puppet Users] Run a File resource only if another file is missing

2013-05-31 Thread Matthias Saou
ckage is installed) and found I > could not do it completely from within the manifest. > > “Sometimes I think the surest sign that intelligent life exists > elsewhere in the universe is that none of it has tried to contact > us.” Bill Waterson (Calvin & Hobbes) > > - Orig

Re: [Puppet Users] Run a File resource only if another file is missing

2013-05-31 Thread Matthias Saou
There are other ways. None are nice and clean, but a custom fact just for this seems overkill. Here's a quick example of how I've implemented creating a default ~/.gitconfig for users if it doesn't exist, but not modify it if it's already there or has been modified. $gitconfig_user_name = $my

Re: [Puppet Users] Error: Could not find dependency Yumrepo[puppetlabs-products] for Package[puppet]

2013-05-27 Thread Matthias Saou
repo["puppetlabs-products"]" lines. Otherwise, you will need to add that resource to be declared. Matthias -- Matthias Saou ██ ██ ██ ██ Web: http://matthias.saou.eu/

[Puppet Users] Puppet 3.2.1 default log level change?

2013-05-27 Thread Matthias Saou
;. I even tried "--no-verbose" but that doesn't work. How do I switch back to a default log level of "notice"? Matthias -- Matthias Saou ██ ██

Re: [Puppet Users] Re: Module for tuned-adm

2013-05-18 Thread Matthias Saou
You could also have a look at this other module : https://forge.puppetlabs.com/thias/tuned I just had a look at Romain's, and a provider just for this is overkill. As much as I hate exec, it's fine here since the profile name is exactly contained in a single configuration file. Also, a class is

Re: [Puppet Users] problems ensuring that a service is absent

2013-04-25 Thread Matthias Saou
re fine with just ensuring the package is absent, and enclosing the service inside an "if $ensure == 'present'" or similar. If that's not enough, it should be considered a packaging bug. Matthias -- Matthias Saou ██ ██

Re: [Puppet Users] Re: Best practice to always fully qualify classes with :: ?

2013-04-22 Thread Matthias Saou
. Your explanation matches the behaviour I've seen. Matthias -- Matthias Saou ██ ██ ██ ██ Web: http://matthias.saou.eu/ ██ Mail/XMPP: matth

Re: [Puppet Users] Puppet defined types and defaults parameters

2013-04-20 Thread Matthias Saou
Hi, You shouldn't be trying with a variable. Here's what you should probably be doing instead : /etc/puppet/modules/sensor/manifests/listner.pp define sensor::listner ( $config = 'this is the generic default' ) { notify { $config : } } /etc/puppet/manifests/site.pp Sensor::Listener { config

[Puppet Users] Best practice to always fully qualify classes with :: ?

2013-04-18 Thread Matthias Saou
e proper syntax? Has this (or will this) become the best practice? Matthias [1] http://docs.puppetlabs.com/puppet/2.7/reference/lang_classes.html [2] http://docs.puppetlabs.com/puppet/2.7/reference/lang_scope.html -- Matthias Saou ██ ██

Re: [Puppet Users] Re: Puppet 3.1, Hiera and a class parameter called "service"

2013-04-18 Thread Matthias Saou
ur Puppet code, put a line like: > > $service_real = str2bool("$service") > > I've been calling that pattern "sloppy bools." It will work around > the bug for now, and continue to work once the bug is fixed and you > start using real booleans in your y

[Puppet Users] Puppet 3.1, Hiera and a class parameter called "service"

2013-04-17 Thread Matthias Saou
e default... Other variable names don't seem to have this problem. It seems that I've been bitten once more by "mostly-working-but-reserved-somewhere" variable names. Does anyone know Hiera internals enough to confirm this? Do I have any options other than

Re: [Puppet Users] Nagios server howto for beginner ?

2012-10-15 Thread Matthias Saou
fully implemented it ? Is there any official > documentation besides the type reference ? Should I dig in > thias/nagios ? > > Thanks in advance, > > Francois > > -- Matthias Saou ██ ██

Re: [Puppet Users] Re: sshkey type purge

2012-07-24 Thread Matthias Saou
On Tue, 24 Jul 2012 09:39:30 -0400 Trevor Vaughan wrote: > I attempted to set it and it wasn't very happy but your assessment is > what I had thought as well. Yup. (Still) Unsupported, unfortunately... See http://projects.puppetlabs.com/issues/1581 Matthias -- Ma

Re: [Puppet Users] puppet-lint crashes and burns

2012-07-11 Thread Matthias Saou
ance) This is indeed not Debian, as an update will never get you to the next major release :-) EL5 is indeed quite old, EL6 has already been available for nearly 2 years and ships with ruby 1.8.7 : It's definitely what you want to be deploying on any new systems. Che

Re: [Puppet Users] puppet-lint crashes and burns

2012-07-11 Thread Matthias Saou
gt; you have Ruby 1.8.7 or greater installed. -- Matthias Saou ██ ██ ██ ██ Web: http://matthias.saou.eu/ ██ Mail/XMPP: matth...@saou.eu ██

Re: [Puppet Users] Re: exec's onlyif parameter fails for a bash one-liner

2012-04-26 Thread Matthias Saou
On Wed, 25 Apr 2012 10:29:23 -0700 (PDT) Shantanu wrote: > > On Apr 25, 11:46 am, Craig Dunn wrote: > > On 25/04/2012 17:01, Shantanu wrote: > > > > > > > > > I would like to 'exec' an installation script 'onlyif' an > > > installation directory is empty. I tried using following bash > > > one-

Re: [Puppet Users] Hash iteration order in a template not consistent

2012-04-03 Thread Matthias Saou
On Thu, 29 Mar 2012 10:06:01 +0200 Martijn Grendelman wrote: [...] > > > > ruby hashes are not stored in predictable order so this will > > happen, the proposed solution should work. > > > > But as always the best is just to test it and see how it goes, it > > wont bite :) > > <% aliases.sort_b

[Puppet Users] Going insane : Puppet PHP module for multiple distributions

2012-03-29 Thread Matthias Saou
Hi, Before making any further changes to my existing PHP module, I'd like to get a few recommendations from anyone who has already faced this problem... My existing module supports Fedora, RHEL and clones. I'd like to extend support to more distributions, by adding a typical "params" class to it.

Re: [Puppet Users] Cross-module (package) dependencies

2012-01-25 Thread Matthias Saou
On Wed, 25 Jan 2012 09:59:10 -0500 Nan Liu wrote: [...] > > i.e. Say there were two unrelated modules which said slightly > > different but *compatible* things: > > > > Module a: > > > >  file { "/foo/bar": > >   ensure => 'present', > >   owner => 'root', > >   content => "blah blah", > >  } > >

Re: [Puppet Users] Cross-module (package) dependencies

2012-01-24 Thread Matthias Saou
On Tue, 24 Jan 2012 10:32:31 +0100 Felix Frank wrote: > Perhaps there needs to be some kind of "Forge common" module that by > policy can only ever declare virtual resources (packages are a > prominent example). This only takes care of the Forge case. The problem of having the same package being

Re: [Puppet Users] Re: how to create directory recursively (if parents not present)?

2011-08-21 Thread Matthias Saou
Sans wrote: > Thanks Matthias! I noticed the semicolon typo. > What does ${::hostname}-cert.pem implicate (as opposed to ${hostname}- > cert.pem)? It just makes explicit that it's a variable from the global scope (as it's a fact) and not from the current local scope. Check out recent puppet doc

Re: [Puppet Users] how to create directory recursively (if parents not present)?

2011-08-18 Thread Matthias Saou
Matthias Saou wrote : > file { "/opt/${cert_dir}/${::hostname}-cert.pem": > mode=> '0444', owner => 'root', group => 'root', > source => "puppet:///modules/p_nodes/${::hostname}-cert.pem"; >

Re: [Puppet Users] how to create directory recursively (if parents not present)?

2011-08-18 Thread Matthias Saou
Sans wrote : > As said in the subject line, is there a "nice" way of creating > directory tree if parent is not already there, like using "mkdir -p"? This will do exactly what you want : $cert_dir = 'globus/cert' exec { 'mkdir_cert_dir': path=> [ '/bin', '/usr/bin' ],

Re: [Puppet Users] Dynamic lookup of $var

2011-08-18 Thread Matthias Saou
Aaron Grewell wrote : > Agreed, facts are the one thing that really should be global IMHO. I'd settle for anything short. If <%= ::factname %> could have worked, it would have been fine by me. What's the "official best practice" going to be for facts inside templates with puppet 2.7+? lookupvar

Re: [Puppet Users] Help with retrieving a user's environment variable

2011-08-09 Thread Matthias Saou
Corey Osman wrote : > I need to get the environment variable ORACLE_SID from the OS. I know this > can be done with the following: > > $blah = env("PATH") > > However, the ORACLE_SID variable is only set under the oracle user account. > So I would need a way to login as the oracle account fi

Re: [Puppet Users] Facter 1.6.0 and CentOS 6.0

2011-08-01 Thread Matthias Saou
Peter Meier wrote : > >> Is this a known issue? Is there any work-around? It's really breaking my > >> CentOS 6 servers' ability to find their REPOs. :-) > > > > You need to have the lsb_release command installed for the lsb* results > > to appear. > > > > Fedora/Redhat have it in the redhat-ls

Re: [Puppet Users] Definition parameter defaulting to the definition's own $title?

2011-07-20 Thread Matthias Saou
Matthias Saou wrote : > > try $name, that should do it, came in somewhere mid 2.6.x series > > Yup, that was it! > > Section "$name can now be used to set default values in defined > resource types" in the release notes : > https://projects.puppetlabs.com/

Re: [Puppet Users] Definition parameter defaulting to the definition's own $title?

2011-07-15 Thread Matthias Saou
R.I.Pienaar wrote : > > Maybe I'm going nuts, but I could have sworn reading about a trick or > > new feature which allowed to have a definition parameter get a > > default value of the definition's own $title (instead of having the hack > > around the limitation with selectors and intermediate va

[Puppet Users] Definition parameter defaulting to the definition's own $title?

2011-07-15 Thread Matthias Saou
Hi, Maybe I'm going nuts, but I could have sworn reading about a trick or new feature which allowed to have a definition parameter get a default value of the definition's own $title (instead of having the hack around the limitation with selectors and intermediate variables later on). Basically wh

Re: [Puppet Users] using memorysize fact in manifests

2011-06-30 Thread Matthias Saou
Andreas Kuntzagk wrote: > I want some config depending on memorysize. > > What I tried was >if ($memorysize >= 256 * 1024*1024) { > ... >} > > But this fails because $memorysize is a string (and contains a "G") > and can't be compared to an int. > > Are all facts strings? How do I work

[Puppet Users] Memory usage for reports

2011-06-20 Thread Matthias Saou
Hi, I very recently upgraded from puppet 0.25.4 to 2.6.8 (both master and all nodes), and I'm now facing serious memory usage issues. On the master, I just added more RAM because I had the resources available (from 2GB to 4GB). But on some nodes with 256MB of RAM, I now see some load peaks and ser

Re: [Puppet Users] Re: Setting defaults on scoped definitions : Each Word Needs To Be Capitalized

2011-06-14 Thread Matthias Saou
> On Tue, Jun 14, 2011 at 6:45 PM, Nick Fagerlund > wrote: > > On Jun 14, 8:26 am, Matthias Saou > > > > wrote: > >> Could the documentation section about capitalization be updated to > >> include a scoped example and make it clear for > >> everyone

[Puppet Users] Setting defaults on scoped definitions : Each Word Needs To Be Capitalized

2011-06-14 Thread Matthias Saou
Hi, The documentation section gives a good example for the "exec" type : http://docs.puppetlabs.com/guides/language_guide.html#resource-defaults But for scoped definitions, I had to figure out that each word needs to be capitalized, not just the first word : Mymod::mydef { 'foo': } gives Syntax

Re: [Puppet Users] Global scope variables and erb templates in puppet 2.7

2011-06-13 Thread Matthias Saou
Hi, Then I'm guessing the only other solution, which also works with 0.25 and any higher version would be : $local_scope_fqdn = $::fqdn Then : <%= local_scope_fqdn %> In order to use a local scope variable from within templates. It's really too bad to not be able to use scoped variables from

Re: [Puppet Users] Global scope variables and erb templates in puppet 2.7

2011-06-12 Thread Matthias Saou
wrote: > Try: > > inline_template('<%= scope.lookupvar("::fqdn") %>') > > ken. > > On Sun, Jun 12, 2011 at 3:20 PM, Matthias Saou > > wrote: > > Hi, > > > > I'm starting to play with the latest puppet 2.7.0rc4,

[Puppet Users] Global scope variables and erb templates in puppet 2.7

2011-06-12 Thread Matthias Saou
Hi, I'm starting to play with the latest puppet 2.7.0rc4, one of my goals being to try and update all of my puppet related files to be compatible with it, with no warnings at all. I've read in detail this page : http://docs.puppetlabs.com/guides/scope_and_puppet.html There is no mention of anyth

Re: [Puppet Users] Going to publish custom modules : Request for comments

2011-05-15 Thread Matthias Saou
Dan Bode wrote: [...] > > Comments about what I'm doing right and what I'm doing wrong would > > be very welcome. I really want to know that everything's optimal > > before investing time in publishing more modules, to not have to > > later waste time going over all modules again. > > > > The co

[Puppet Users] Going to publish custom modules : Request for comments

2011-05-15 Thread Matthias Saou
Hi, I've been using puppet for a while now, and over time I've created many classes and definitions for a whole bunch of different things. It's all very RHEL4, RHEL5 (and now RHEL6) centric, but since lots of people use that (or clones like CentOS), I'm sure it could all be reused by many. The lic

Re: [Puppet Users] RHEL5 and RHEL6 wiith Puppet

2011-02-23 Thread Matthias Saou
Steve Shipway wrote : > 1. The syslod has changed to rsyslog [...] > > 2. The snmpd has changed the location of its var file [...] > > 3. The use of UDEV for all devices [...] > > Has anyone else spotted any other changes requiring alteration to the Puppet > manifests and modules? There are pr

Re: [Puppet Users] Appending to Variables in a global context

2010-12-19 Thread Matthias Saou
Spenser Gilliland wrote: > Yeap, I'm seeing that it doesn't exist yet either. I'm thinking maybe > I can use exported resources or maybe just an exec that increments a > counter on the host. Either way it's not very pretty. My use case is > as follows: > > In Debian, Redmine has the option of

[Puppet Users] Re: Puppetd stops when the puppermaster doesn't answer

2009-11-02 Thread Matthias Saou
Peter Meier wrote : > > Is this a known problem with 0.25 clients? Has anyone seem these > > problems too? > > There have been some fixes for it in 0.25.1 [1] but I'm still > encountering such issues as well. Especially as I'm connecting some > clients over the internet, so I might encounter

[Puppet Users] Puppetd stops when the puppermaster doesn't answer

2009-11-02 Thread Matthias Saou
Hi, Since upgrading from 0.24 to 0.25, I've seen repeatedly puppetd clients just stop when they're unable to reach the puppetmaster for a while. With the normal logging level, they just seem to stop without writing anything in their log. I've seen this with 0.25.1rc1, rc2 and final, which are al

[Puppet Users] Re: Warnings with regsubst()

2009-10-27 Thread Matthias Saou
Brice Figureau wrote : > > On Tue, 2009-10-27 at 17:25 +0100, Matthias Saou wrote: > > I've got the following working fine with puppet 0.25.1, which was > > previously impossible with 0.24 (yepee!) : > > > > define dirs ( $dirs = [] ) { > >

[Puppet Users] Warnings with regsubst()

2009-10-27 Thread Matthias Saou
Hi, I've got the following working fine with puppet 0.25.1, which was previously impossible with 0.24 (yepee!) : define dirs ( $dirs = [] ) { # Parent directory for the ones below file { "/nfs/skel/${title}": ensure => directory } # Make sure the File namevar is uniqu

Re: Puppetmaster service removing puppetmasterd executable (was: Re: [Puppet Users] ANNOUNCE: Puppet 0.25.1 released!)

2009-10-27 Thread Matthias Saou
Todd Zullinger wrote : > Matthias Saou wrote: > > When I update my rpm packages on the master (RHEL 5.4), when the > > "service puppetmaster stop" command is run, the > > /usr/sbin/puppetmasterd file is removed. Ouch! > > Ouch indeed. This is my fault. :( &

Puppetmaster service removing puppetmasterd executable (was: Re: [Puppet Users] ANNOUNCE: Puppet 0.25.1 released!)

2009-10-27 Thread Matthias Saou
James Turnbull wrote : > Puppet 0.25.1 - code name "zoot" - is now available. The 0.25.1 release > is a maintenance release in the 0.25.x branch. I'm seeing something really weird with this release. I wasn't seeing it with either rc1 or rc2. When I update my rpm packages on the master (RHEL 5.

[Puppet Users] Re: Service bug?

2009-10-15 Thread Matthias Saou
Douglas Garstang wrote: [...] > It seems to me like there might be a bug here. Puppet appears to think > the syslog-ng and syslog service are the same thing and stops > syslog-ng instead of syslog. > If I change the name of the syslog service, like this... > > service { "XXXsyslog": > e

[Puppet Users] Re: Monitoring the puppetmaster

2009-10-12 Thread Matthias Saou
Pete Emerson wrote: > We've got over 150 hosts hitting the one puppetmaster, and based on > what I've seen via searching it seems like we're hitting into > scalability issues with Webrick, and the recommendation is to switch > to Mongrel or Passenger. Looks to me like Passenger is where the focu

[Puppet Users] Re: new to puppet. how to add condition in a class?

2009-10-12 Thread Matthias Saou
william Famy wrote: > I prefer runing class on my client if thereis a file exemple if the > file /etc/mypuppet/condition is present execute the condition class. If you want to do this, you'll likely have to create a simple facter fact for your clients so that the puppetmaster receives "true" if

[Puppet Users] Re: [Puppet-dev] ANNOUNCE Puppet 0.25.1rc1 available

2009-10-05 Thread Matthias Saou
Todd Zullinger wrote : > James Turnbull wrote: > > Puppet 0.25.1 Release Candidate 1 is now available for testing. > > Packages for Fedora 10/11/rawhide and EL 4/5 are available at: > > http://tmz.fedorapeople.org/repo/puppet/ > > Please report any packaging or repository bugs to me and no

[Puppet Users] Re: Facter and arrays? Or puppet and converting strings to arrays?

2009-08-27 Thread Matthias Saou
Paul Nasrat wrote : > > My problem here is that facter doesn't seem to be able to return > > anything other than strings. Is that the case? Because it would be > > really easier for me to have it return an array of the members : > > Correct currently facter is essentially a flat key value map. T

[Puppet Users] Facter and arrays? Or puppet and converting strings to arrays?

2009-08-26 Thread Matthias Saou
Hi, As often with puppet, I'm trying to do something I think is "simple", yet I'm hitting a brick wall. What I want to do is have a client send back a list of members of a system group so that the server can create some template-based configuration files for a specific daemon, one per member. M