Re: [Puppet Users] Reading Puppet reports with Python

2010-09-28 Thread Douglas Garstang
On Tue, Sep 28, 2010 at 11:06 AM, Rob McBroom wrote: > On Sep 28, 2010, at 1:25 PM, Douglas Garstang wrote: > > It's not true and you're taking a particularly shitty attitude for >> someone who is asking for help Doug. >> >> > It is true, and you're taking a particularly sensitive attitude for som

Re: [Puppet Users] problem with overriding in two sub classes of the same parent class

2010-09-28 Thread Patrick
On Sep 28, 2010, at 7:53 AM, luke.bigum wrote: > Hi all, > > I'm working with class inheritance and run into a problem with a node > including two child classes of the same parent class. The two child > classes use the plusignment operator to append to the 'subscrube' > metaparm of the same reso

[Puppet Users] problem with overriding in two sub classes of the same parent class

2010-09-28 Thread luke.bigum
Hi all, I'm working with class inheritance and run into a problem with a node including two child classes of the same parent class. The two child classes use the plusignment operator to append to the 'subscrube' metaparm of the same resource in the parent class. The error is: err: Could not retr

List behavior (was Re: [Puppet Users] Reading Puppet reports with Python)

2010-09-28 Thread James Turnbull
Douglas Garstang wrote: > It's not true and you're taking a particularly shitty attitude for > someone who is asking for help Doug. > > > It is true, and you're taking a particularly sensitive attitude for > someone that doesn't know me Nigel. > Douglas I've asked in the past that you

Re: [Puppet Users] Reading Puppet reports with Python

2010-09-28 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 >> It's not true and you're taking a particularly shitty attitude for >> someone who is asking for help Doug. >> >> >> It is true, and you're taking a particularly sensitive attitude for >> someone that doesn't know me Nigel. > > > If this was you

Re: [Puppet Users] Proposal to remove redundant info in source => parameters

2010-09-28 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > So back on a serious note... Is this definitely a deal breaker ? I > really don't want us to be US-centric... it wouldn't be one for me and I still stick with sg keyboards. ~pete -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comm

Re: [Puppet Users] Reading Puppet reports with Python

2010-09-28 Thread Rob McBroom
On Sep 28, 2010, at 1:25 PM, Douglas Garstang wrote: > It's not true and you're taking a particularly shitty attitude for > someone who is asking for help Doug. > > > It is true, and you're taking a particularly sensitive attitude for someone > that doesn't know me Nigel. If this was your fir

[Puppet Users] Exec dependent on directory

2010-09-28 Thread Dan Urist
I have the following test code in a manifest: > file { > '/tmp/testdir': > ensure => directory, > owner => root, > group => root, > mode => 0755, > checksum => mtime; > } > > exec { > 'testdir_updated': > command => 'touch /tmp/testdir_updated',

Re: [Puppet Users] Variables with class inheritance and templates

2010-09-28 Thread Bruce Richardson
On Tue, Sep 28, 2010 at 09:01:25AM -0700, Darren Worrall wrote: > > Is this a bug, or a limitation of class inheritance? (ie, base classes > are evaluated completely, and subclasses are only allowed to modify > things after the fact?) > They're not classes, they shouldn't have been called classe

Re: [Puppet Users] Reading Puppet reports with Python

2010-09-28 Thread Douglas Garstang
On Tue, Sep 28, 2010 at 10:13 AM, Nigel Kersten wrote: > On Tue, Sep 28, 2010 at 10:08 AM, Douglas Garstang > wrote: > > > > On Tue, Sep 28, 2010 at 9:50 AM, Eduardo S. Scarpellini > > wrote: > >> > >> Douglas, > >> I've started my tests with Python + Puppet Yaml yesterday, based on > >> > http:

Re: [Puppet Users] Reading Puppet reports with Python

2010-09-28 Thread Nigel Kersten
On Tue, Sep 28, 2010 at 10:08 AM, Douglas Garstang wrote: > > On Tue, Sep 28, 2010 at 9:50 AM, Eduardo S. Scarpellini > wrote: >> >> Douglas, >> I've started my tests with Python + Puppet Yaml yesterday, based on >> http://www.mailinglistarchive.com/html/puppet-users@googlegroups.com/2010-05/msg0

Re: [Puppet Users] Classes and Inheritence

2010-09-28 Thread Disconnect
You need to include or inherit the class that defines the service before you can notify it. (Or just redefine the service in the other module.) There is no link between smtpexternal and smtp. On Tue, Sep 28, 2010 at 12:15 PM, Matt Wallace wrote: > > Hi all, > > I'm going out of my mind trying to

Re: [Puppet Users] Reading Puppet reports with Python

2010-09-28 Thread Douglas Garstang
On Tue, Sep 28, 2010 at 9:51 AM, Nigel Kersten wrote: > On Tue, Sep 28, 2010 at 9:29 AM, Douglas Garstang > wrote: > > Has anyone got/seen Python code to read puppet reports? > > I added a bunch of these: > > class PuppetReport(yaml.YAMLObject): > > yaml_tag = u'!ruby/object:Puppet::Transaction

Re: [Puppet Users] Reading Puppet reports with Python

2010-09-28 Thread Douglas Garstang
On Tue, Sep 28, 2010 at 9:50 AM, Eduardo S. Scarpellini < scarpell...@gmail.com> wrote: > Douglas, > I've started my tests with Python + Puppet Yaml yesterday, based on > http://www.mailinglistarchive.com/html/puppet-users@googlegroups.com/2010-05/msg00539.html, > and I'm having the same difficult

Re: [Puppet Users] Reading Puppet reports with Python

2010-09-28 Thread Douglas Garstang
On Tue, Sep 28, 2010 at 9:50 AM, Eduardo S. Scarpellini < scarpell...@gmail.com> wrote: > Douglas, > I've started my tests with Python + Puppet Yaml yesterday, based on > http://www.mailinglistarchive.com/html/puppet-users@googlegroups.com/2010-05/msg00539.html, > and I'm having the same difficult

Re: [Puppet Users] Reading Puppet reports with Python

2010-09-28 Thread Nigel Kersten
On Tue, Sep 28, 2010 at 9:29 AM, Douglas Garstang wrote: > Has anyone got/seen Python code to read puppet reports? > I added a bunch of these: > class PuppetReport(yaml.YAMLObject): >   yaml_tag = u'!ruby/object:Puppet::Transaction::Report' >   def __init__(self, host, logs, metrics, records, time

Re: [Puppet Users] Reading Puppet reports with Python

2010-09-28 Thread Eduardo S. Scarpellini
Douglas, I've started my tests with Python + Puppet Yaml yesterday, based on http://www.mailinglistarchive.com/html/puppet-users@googlegroups.com/2010-05/msg00539.html, and I'm having the same difficulties. I shall keep working on this script today and I'll post the solution, if I can find it. 201

Re: [Puppet Users] Re: YUMREPO { productname => PowerEdge 2650}

2010-09-28 Thread R.I.Pienaar
- "CraftyTech" wrote: > puppet --version = 0.25.5.. Regex would be nice.. then see http://docs.puppetlabs.com/guides/language_tutorial.html#selectors > > On Sep 28, 12:32 pm, "R.I.Pienaar" wrote: > > - "CraftyTech" wrote: > > > I wonder if I could use an if/then statement for this

[Puppet Users] Re: Environments and wiki documentation

2010-09-28 Thread tortuegeniale
Yes, I'm running 0.24.5 In this case it should be good to specify this versioning maybe On 28 sep, 17:28, Nigel Kersten wrote: > On Tue, Sep 28, 2010 at 12:58 AM, Atlantis Boengkih > > > > wrote: > > Hello, > > > First, please excuse my english. > > > I've had some troubles setting up environme

[Puppet Users] Re: YUMREPO { productname => PowerEdge 2650}

2010-09-28 Thread CraftyTech
puppet --version = 0.25.5.. Regex would be nice.. On Sep 28, 12:32 pm, "R.I.Pienaar" wrote: > - "CraftyTech" wrote: > > I wonder if I could use an if/then statement for this one, or perhaps > > an function that picks up the 2650 from the value "PowerEdge > > 2650" > > what version puppet

Re: [Puppet Users] Proposal to remove redundant info in source => parameters

2010-09-28 Thread Nigel Kersten
On Tue, Sep 28, 2010 at 9:06 AM, James Turnbull wrote: > Brice Figureau wrote: >> On Tue, 2010-09-28 at 08:23 -0700, Nigel Kersten wrote: >>> [heavilly snipped because answer OT] >>> After looking up a few of the major non-US keyboard layouts, I'm >>> really not sure '~' makes sense anymore. How d

Re: [Puppet Users] Variables with class inheritance and templates

2010-09-28 Thread Tony G.
Darren, On Tue, Sep 28, 2010 at 11:01 AM, Darren Worrall wrote: > With a manifest like so: > > class base { > $myvar = '1234' > file { >'/tmp/foo': > content => template('test.erb') > } > } > > class newbase inherits base { > $myvar = '5678' > } > > node default { > include newbase

Re: [Puppet Users] Re: YUMREPO { productname => PowerEdge 2650}

2010-09-28 Thread R.I.Pienaar
- "CraftyTech" wrote: > I wonder if I could use an if/then statement for this one, or perhaps > an function that picks up the 2650 from the value "PowerEdge > 2650" what version puppet do you use? recent ones have regex this would probably work for you > > > > On Sep 28, 12:00 pm,

[Puppet Users] Reading Puppet reports with Python

2010-09-28 Thread Douglas Garstang
Has anyone got/seen Python code to read puppet reports? I added a bunch of these: class PuppetReport(yaml.YAMLObject): yaml_tag = u'!ruby/object:Puppet::Transaction::Report' def __init__(self, host, logs, metrics, records, time): self.host = host self.logs = logs self.metrics = me

[Puppet Users] Re: YUMREPO { productname => PowerEdge 2650}

2010-09-28 Thread CraftyTech
I wonder if I could use an if/then statement for this one, or perhaps an function that picks up the 2650 from the value "PowerEdge 2650" On Sep 28, 12:00 pm, "R.I.Pienaar" wrote: > - "CraftyTech" wrote: > > Interesting I used the notice with the single quote as you > > suggested..

[Puppet Users] Classes and Inheritence

2010-09-28 Thread Matt Wallace
Hi all, I'm going out of my mind trying to get my head around inheritance in Puppet 0.25. I have a module named smtp which contains a number of classes for setting up the various configurations that we have for SMTP Servers based on Exim. I have a class called SMTP which has a service defined

Re: [Puppet Users] Proposal to remove redundant info in source => parameters

2010-09-28 Thread James Turnbull
Brice Figureau wrote: > On Tue, 2010-09-28 at 08:23 -0700, Nigel Kersten wrote: >> [heavilly snipped because answer OT] >> After looking up a few of the major non-US keyboard layouts, I'm >> really not sure '~' makes sense anymore. How do you people use Unixes? >> :) Is OSX Unix? :) > > I dumped

[Puppet Users] Variables with class inheritance and templates

2010-09-28 Thread Darren Worrall
With a manifest like so: class base { $myvar = '1234' file { '/tmp/foo': content => template('test.erb') } } class newbase inherits base { $myvar = '5678' } node default { include newbase } And test.erb with <%= myvar %> /tmp/foo contains 1234, when I would expect it to con

Re: [Puppet Users] Re: YUMREPO { productname => PowerEdge 2650}

2010-09-28 Thread R.I.Pienaar
- "CraftyTech" wrote: > Interesting I used the notice with the single quote as you > suggested.. and I get the notice with only one single quotation: --> > notice: Scope(Class[basic_dev::files]): The product is: 'PowerEdge > 2650 <-- It spits it out with only one single quotation... s

[Puppet Users] Re: YUMREPO { productname => PowerEdge 2650}

2010-09-28 Thread CraftyTech
Interesting I used the notice with the single quote as you suggested.. and I get the notice with only one single quotation: --> notice: Scope(Class[basic_dev::files]): The product is: 'PowerEdge 2650 <-- It spits it out with only one single quotation... On Sep 28, 11:35 am, "R.I.Pienaar" wro

Re: [Puppet Users] Proposal to remove redundant info in source => parameters

2010-09-28 Thread Brice Figureau
On Tue, 2010-09-28 at 08:23 -0700, Nigel Kersten wrote: > [heavilly snipped because answer OT] > After looking up a few of the major non-US keyboard layouts, I'm > really not sure '~' makes sense anymore. How do you people use Unixes? > :) I dumped my azerty keyboard in favor of an US one as soon

Re: [Puppet Users] Re: YUMREPO { productname => PowerEdge 2650}

2010-09-28 Thread R.I.Pienaar
- "CraftyTech" wrote: > R.I.Pienaar, > > I'm using puppet 0.25.5, and that syntax is not working for me. > notify("The product is: '${productname}'": }, ... There's a trailing > squiggly bracket that wasn't previously opened. How would I > incorporate this in my class:? sorry, make it no

Re: [Puppet Users] Environments and wiki documentation

2010-09-28 Thread Nigel Kersten
On Tue, Sep 28, 2010 at 12:58 AM, Atlantis Boengkih wrote: > Hello, > > First, please excuse my english. > > I've had some troubles setting up environments. After a few hours digging for > the misconfiguration, it appears that I did not declare my environments in > the main section of my clients

[Puppet Users] Re: YUMREPO { productname => PowerEdge 2650}

2010-09-28 Thread CraftyTech
R.I.Pienaar, I'm using puppet 0.25.5, and that syntax is not working for me. notify("The product is: '${productname}'": }, ... There's a trailing squiggly bracket that wasn't previously opened. How would I incorporate this in my class:? yumrepo { "domain_OMSA": baseurl => $productname

Re: [Puppet Users] Proposal to remove redundant info in source => parameters

2010-09-28 Thread Nigel Kersten
On Mon, Sep 27, 2010 at 10:08 PM, Luke Kanies wrote: > On Sep 27, 2010, at 7:04 AM, Brice Figureau wrote: > >> Hi, >> >> It looks like I missed your original e-mail to puppet-dev. >> >> On Fri, 2010-09-24 at 11:20 -0700, Nigel Kersten wrote: >>> [cross-posting as I'd like to know whether my intuit

Re: [Puppet Users] Re: YUMREPO { productname => PowerEdge 2650}

2010-09-28 Thread R.I.Pienaar
- "CraftyTech" wrote: > I used a notice statement: notice("The product is: ${productname} "), > and it shows the product name the way it should: "notice: > Scope(Class[basic_dev::files]): The product is: PowerEdge 2650". I'm > at a lost here.. I'm not sure what's going on. I tried removing

[Puppet Users] Re: YUMREPO { productname => PowerEdge 2650}

2010-09-28 Thread CraftyTech
I used a notice statement: notice("The product is: ${productname} "), and it shows the product name the way it should: "notice: Scope(Class[basic_dev::files]): The product is: PowerEdge 2650". I'm at a lost here.. I'm not sure what's going on. I tried removing the repo all together, just to see h

Re: [Puppet Users] Re: YUMREPO { productname => PowerEdge 2650}

2010-09-28 Thread R.I.Pienaar
- "CraftyTech" wrote: > Thanks for the feedback Matt, but no, it didn't work. Here's the > repo > I'm trying to define: > > yumrepo { "domain_OMSA": > baseurl => $productname ? { > "PowerEdge 2650" => 'http://build.dev.domain.com:1234/OMSA5.5', > default => 'http://buil

[Puppet Users] Re: YUMREPO { productname => PowerEdge 2650}

2010-09-28 Thread CraftyTech
Thanks for the feedback Matt, but no, it didn't work. Here's the repo I'm trying to define: yumrepo { "domain_OMSA": baseurl => $productname ? { "PowerEdge 2650" => 'http://build.dev.domain.com:1234/OMSA5.5', default => 'http://build.dev.domain.com:1234/OMSA6.2' }, descr

Re: [Puppet Users] YUMREPO { productname => PowerEdge 2650}

2010-09-28 Thread Tony G.
Henry, On Tue, Sep 28, 2010 at 9:12 AM, CraftyTech wrote: > Hello All, > > How do I specify a variable that has a space in it? I'm trying > to setup a yum repo that has two different baseurl's based on the > product name ($productname). Default goes one way, but if the product > is "Power

Re: [Puppet Users] YUMREPO { productname => PowerEdge 2650}

2010-09-28 Thread Matt Wallace
On Tuesday 28 Sep 2010 15:12:34 CraftyTech wrote: > Hello All, > > How do I specify a variable that has a space in it? I'm trying > to setup a yum repo that has two different baseurl's based on the > product name ($productname). Default goes one way, but if the product > is "PowerEdge 2650"

[Puppet Users] YUMREPO { productname => PowerEdge 2650}

2010-09-28 Thread CraftyTech
Hello All, How do I specify a variable that has a space in it? I'm trying to setup a yum repo that has two different baseurl's based on the product name ($productname). Default goes one way, but if the product is "PowerEdge 2650" then is a different URL. The thing is, that is only picking

[Puppet Users] questions about certs on 2.6.1

2010-09-28 Thread Arnau Bria
Hi all, I've a second puppet server (test) where I copied ONLY ca* from prod server. This server is running 2.6.1 + mongrel with SSLVerifyClient optional. I have 2 strange behaviours which I'd like to comment with some expert user. 1.-) I'm running new clients against this "new" server, they re

[Puppet Users] Re: Proposal to remove redundant info in source => parameters

2010-09-28 Thread quicksilver03
Please no backticks or other characters like "~", those of us who do not have a U.S. keyboard layout have a hard time typing them (2-to-3 keys combinations in some cases). On Sep 28, 7:33 am, Patrick wrote: > On Sep 27, 2010, at 10:08 PM, Luke Kanies wrote: > > > > > > > On Sep 27, 2010, at 7:04

[Puppet Users] Environments and wiki documentation

2010-09-28 Thread Atlantis Boengkih
Hello, First, please excuse my english. I've had some troubles setting up environments. After a few hours digging for the misconfiguration, it appears that I did not declare my environments in the main section of my clients puppet.conf. The wiki show the environment definition: [puppetd]

Re: [Puppet Users] Determining if puppet ran ok.

2010-09-28 Thread Ohad Levy
On Tue, Sep 28, 2010 at 2:35 AM, Douglas Garstang wrote: > Nigel, having just done a quick run through of the reporting for the first > time, I'll just stick with the yaml files. They should provide what I need. > It's a bit hard to automate a GUI. > What does that mean? which kind of automation a