Re: [Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-10 Thread Nan Liu
On Fri, Jun 10, 2011 at 6:12 AM, Nigel Kersten wrote: > > > On Thu, Jun 9, 2011 at 6:50 PM, Jacob Helwig wrote: >> >> On Thu, 09 Jun 2011 18:42:54 -0700, Nigel Kersten wrote: >> > >> > https://projects.puppetlabs.com/issues/7697 >> > >> > One problem people producing modules that make use of stag

Re: [Puppet Users] early cert blues

2011-06-10 Thread Denmat
Sorry, phone using auto complete.. Okay, there is a connection issue between your client and server. Puppet clients need to reach the server on that port. Is there a firewall in between? Can you connect on the server with the external ip address? Can you connect from the client using the serve

Re: [Puppet Users] how to do conditional check?

2011-06-10 Thread Patrick
On Jun 10, 2011, at 4:10 PM, Sans wrote: > Dear all, > > This is my script in the bash: how can I put it into puppet? > > #!/usr/bin/env bash > > CONF_DIR="/var/mom_priv" > CPU_COUNT=`cat /proc/cpuinfo | grep siblings | uniq | cut -d\ -f2` > > ideal_load_var=$(echo "scale=2; ${CPU_COUNT}+0.

[Puppet Users] how to do conditional check?

2011-06-10 Thread Sans
Dear all, This is my script in the bash: how can I put it into puppet? #!/usr/bin/env bash CONF_DIR="/var/mom_priv" CPU_COUNT=`cat /proc/cpuinfo | grep siblings | uniq | cut -d\ -f2` ideal_load_var=$(echo "scale=2; ${CPU_COUNT}+0.5" | bc) max_load_var=$(echo "scale=2; ${CPU_COUNT}*1.2" | bc)

Re: [Puppet Users] early cert blues

2011-06-10 Thread Craig White
On Jun 10, 2011, at 3:36 PM, Denmat wrote: > openssl s_client -connection ubuntu.ttinet:8140 -connection was a problem but -connect is valid from ubuntu2 (intended puppet client system) openssl s_client -connect ubuntu.ttinet:8140 connect: Connection refused connect:errno=111 from ubuntu (

Re: [Puppet Users] early cert blues

2011-06-10 Thread Denmat
Hi, What is the response of the following: $ openssl s_client -connection ubuntu.ttinet:8140 Can you make the connection from the client? Cheers, Den On 11/06/2011, at 3:40, Craig White wrote: > trying to get started and this doesn't seem to be working as intended - > clearly pebkac > > #

Re: [Puppet Users] Testing, testing . . .

2011-06-10 Thread James Turnbull
Guy Matz wrote: Any of you folks have any good tests that you use to make sure a module has completed successfully? Any best practice suggestions? I looked around on the www but didn't see anything about this. Please point me in the right direction if I missed it. thanks, Have you had a loo

RE: [Puppet Users] Testing, testing . . .

2011-06-10 Thread Kinzel, David
Shouldn't your catalog apply any changes to the services then, and just notify yourself on failures? Or am I missing a bigger picture here? From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of Yushu Yao Sent: F

Re: [Puppet Users] Testing, testing . . .

2011-06-10 Thread Yushu Yao
I have the same question. I will need to verify if the services are up after the puppet catalog is applied. Currently I have to use a shell script to do it. It will be great if it can be defined as puppet script and included in the module. -Yushu +---

[Puppet Users] Testing, testing . . .

2011-06-10 Thread Guy Matz
Any of you folks have any good tests that you use to make sure a module has completed successfully? Any best practice suggestions? I looked around on the www but didn't see anything about this. Please point me in the right direction if I missed it. thanks, guy -- You received this message bec

Re: [Puppet Users] How can I test if source file exists?

2011-06-10 Thread Markus Falb
On 10.6.2011 21:18, JoE wrote: > This is what I would like to do. > > define normal_user($fullname, $groups) { > $username = $name > user { "$username" : > ensure => present, > allowdupe => false, > shell => '/bin/bash', > home=> "/home/

[Puppet Users] How can I test if source file exists?

2011-06-10 Thread JoE
This is what I would like to do. define normal_user($fullname, $groups) { $username = $name user { "$username" : ensure => present, allowdupe => false, shell => '/bin/bash', home=> "/home/${username}", gid => $username,

[Puppet Users] early cert blues

2011-06-10 Thread Craig White
trying to get started and this doesn't seem to be working as intended - clearly pebkac # puppet agent --server ubuntu.ttinet --waitforcert 60 --test info: Caching catalog for ubuntu.ttinet info: Applying configuration version '1307724789' notice: Finished catalog run in 0.01 seconds # puppet cer

Re: [Puppet Users] Re: cannot manage home directories

2011-06-10 Thread Nigel Kersten
On Fri, Jun 10, 2011 at 8:34 AM, vella1tj wrote: > Thanks going to try that right now sorry that the error wasn't more > helpful. > You're completely misunderstanding me :) The error not being helpful is Puppet's fault, not yours at all :) -- You received this message because you are subscribe

[Puppet Users] Re: cannot manage home directories

2011-06-10 Thread vella1tj
Thanks going to try that right now sorry that the error wasn't more helpful. On Jun 10, 11:09 am, Nigel Kersten wrote: > On Fri, Jun 10, 2011 at 7:51 AM, vella1tj wrote: > > user {'username': > >            uid                      => 501, > >            gid                      => 'staff', > >

RE: [Puppet Users] logging output at err level, success as just a notice?

2011-06-10 Thread Jennings, Jared L CTR USAF AFMC 46 SK/CCI
Helwig: > On Tue, 07 Jun 2011 10:29:12 -0500, Jennings, Jared L CTR USAF AFMC 46 > SK/CCI wrote: > > pwck indeed behaves nicely with its exitcodes - the problem is I want > > the output to be an err, not a notice > > exec { 'pwck -r': > path => '/usr/bin:/bin:/usr/sbin:/sbin', > log

Re: [Puppet Users] cannot manage home directories

2011-06-10 Thread Nigel Kersten
On Fri, Jun 10, 2011 at 7:51 AM, vella1tj wrote: > user {'username': >uid => 501, >gid => 'staff', >comment => 'comment', >ensure => present, >home =

[Puppet Users] cannot manage home directories

2011-06-10 Thread vella1tj
user {'username': uid => 501, gid => 'staff', comment => 'comment', ensure => present, home => '/Users/sysop', shell=>

[Puppet Users] Re: using command execution result as conditional

2011-06-10 Thread jcbollinger
On Jun 9, 10:20 am, Guillaume Rousse wrote: > Hello. > > I'd like to enhance the classical package/configuration/service pattern > with an additional stage: configuration syntax checking. The goal is to > ensure a service won't be restarted with an invalid configuration first, > but also to ensu

Re: [Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-10 Thread Nigel Kersten
On Fri, Jun 10, 2011 at 6:35 AM, Dan Bode wrote: > > > On Thu, Jun 9, 2011 at 6:42 PM, Nigel Kersten wrote: > >> https://projects.puppetlabs.com/issues/7697 >> >> One problem people producing modules that make use of stages are hitting >> is that it's difficult to create something reusable that i

Re: [Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-10 Thread Dan Bode
On Thu, Jun 9, 2011 at 6:42 PM, Nigel Kersten wrote: > https://projects.puppetlabs.com/issues/7697 > > One problem people producing modules that make use of stages are hitting is > that it's difficult to create something reusable that integrates seamlessly > into existing setups. > > This feature

Re: [Puppet Users] Upgrade from 0.24.5 to 2.6.2: Could not find resource(s) M[test] for overriding

2011-06-10 Thread Lorenz Schori
Am Fri, 10 Jun 2011 12:08:28 +0200 schrieb Brice Figureau : > [...] > I think puppet is looking M in the scope of C, but not in the scope > of P anymore. > Can you rewrite it like this and test: > > class c inherits p { >P::M["test"] { > message => "overridden", >} >

Re: [Puppet Users] Re: RFC: Adding implicit stages to Puppet

2011-06-10 Thread vagn scott
On 06/10/2011 08:55 AM, jcbollinger wrote: Maybe what is needed is an easier way to perform two or more successive puppet runs in different environments. It would be nice to have a puppet restart command. Tell puppet that it should reinitialize and try again. Then you could, as you say, ha

Re: [Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-10 Thread Nigel Kersten
On Fri, Jun 10, 2011 at 4:35 AM, Vagn Scott wrote: > Puppet already has stage[ Main ] which is the only > stage it needs to define. All other stages > can be defined relative to main and each other, and should > be a matter of convention. This is true, but only if you don't care about sharing

Re: [Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-10 Thread Nigel Kersten
On Thu, Jun 9, 2011 at 6:50 PM, Jacob Helwig wrote: > On Thu, 09 Jun 2011 18:42:54 -0700, Nigel Kersten wrote: > > > > https://projects.puppetlabs.com/issues/7697 > > > > One problem people producing modules that make use of stages are hitting > is > > that it's difficult to create something reus

[Puppet Users] Re: RFC: Adding implicit stages to Puppet

2011-06-10 Thread jcbollinger
On Jun 10, 3:06 am, Brice Figureau wrote: > On Thu, 2011-06-09 at 18:50 -0700, Jacob Helwig wrote: > > On Thu, 09 Jun 2011 18:42:54 -0700, Nigel Kersten wrote: > > > >https://projects.puppetlabs.com/issues/7697 > > > > One problem people producing modules that make use of stages are hitting > >

Re: [Puppet Users] Name or service not known issue

2011-06-10 Thread Felix Frank
Hi, you need to do one of these: a) create a DNS entry for "puppet" pointing to your master b) create a hosts entry for "puppet" pointing to your master c) specify the --server parameter with an address resolving to your master d) add a server= entry to your puppet.conf HTH, Felix On 05/27/2011

Re: [Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-10 Thread Vagn Scott
Puppet already has stage[ Main ] which is the only stage it needs to define. All other stages can be defined relative to main and each other, and should be a matter of convention. So I think it would be more fruitful to talk about the purpose of stages, along with their proposed names. For exam

Re: [Puppet Users] Puppet managed hosts in multiple nagios hostgroups

2011-06-10 Thread Martijn Grendelman
On 08-06-11 16:29, Chris Phillips wrote: > updated, and hopefully finished: > > Facter.add(:bp_nagios_hostgroups) do > setcode do > > if FileTest.exists?("/var/lib/puppet/classes.txt") > bp_nagios_hostgroups = "" > File.open("/var/lib/puppet/classes.txt") { |fi

Re: [Puppet Users] Upgrade from 0.24.5 to 2.6.2: Could not find resource(s) M[test] for overriding

2011-06-10 Thread Brice Figureau
On Fri, 2011-06-10 at 10:00 +0200, Lorenz Schori wrote: > Hi, > > I've been upgrading from Debian Lenny to Squeeze and now many of my > puppet modules are failing with the message "Could not find > resource(s) X for overriding on node Y". I've isolated the problem case > and apparently properties

Re: [Puppet Users] Upgrade from 0.24.5 to 2.6.2: Could not find resource(s) M[test] for overriding

2011-06-10 Thread Lorenz Schori
Hi again, Am Fri, 10 Jun 2011 10:00:28 +0200 schrieb Lorenz Schori : > Debian Squeeze / Puppet 2.6.2 > [...] > Could not find resource(s) M[test] for overriding on node > puppet-squeeze I've now verified that this problem was not present in the latest legacy version 0.25.5 (install

Re: [Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-10 Thread Chris Phillips
On 10 June 2011 09:06, Brice Figureau wrote: > On Thu, 2011-06-09 at 18:50 -0700, Jacob Helwig wrote: > > On Thu, 09 Jun 2011 18:42:54 -0700, Nigel Kersten wrote: > > > > > > https://projects.puppetlabs.com/issues/7697 > > > > > > One problem people producing modules that make use of stages are >

Re: [Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-10 Thread Brice Figureau
On Thu, 2011-06-09 at 18:50 -0700, Jacob Helwig wrote: > On Thu, 09 Jun 2011 18:42:54 -0700, Nigel Kersten wrote: > > > > https://projects.puppetlabs.com/issues/7697 > > > > One problem people producing modules that make use of stages are hitting is > > that it's difficult to create something reu

[Puppet Users] Upgrade from 0.24.5 to 2.6.2: Could not find resource(s) M[test] for overriding

2011-06-10 Thread Lorenz Schori
Hi, I've been upgrading from Debian Lenny to Squeeze and now many of my puppet modules are failing with the message "Could not find resource(s) X for overriding on node Y". I've isolated the problem case and apparently properties of defined resources may not be overridden anymore in recent version

Re: [Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-10 Thread Chris Phillips
On 10 Jun 2011 07:52, "Jacob Helwig" wrote: > > Chris Phillips wrote: >> >> >> >> On 10 June 2011 02:50, Jacob Helwig wrote: >>> >>> On Thu, 09 Jun 2011 18:42:54 -0700, Nigel Kersten wrote: >>> > >>> > https://projects.puppetlabs.com/issues/7697 >>> > >>> > One problem people producing modules t

Re: [Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-10 Thread Jacob Helwig
Chris Phillips wrote: On 10 June 2011 02:50, Jacob Helwig wrote: On Thu, 09 Jun 2011 18:42:54 -0700, Nigel Kersten wrote: > > https://projects.puppetlabs.com/issues/7697 > > One problem people producing modules that make use of stages are hitting is > that it's difficult to create something r