[Puppet Users] Migrating from 0.25.4 to 2.6

2011-02-02 Thread Matthew Macdonald-Wallace
Hi all, As part of a new project, we're thinking about moving from CentOS to Debian. One of the few concerns I have about doing this is that we currently run Puppet 0.25.4 on all our systems, yet the available versions for Debian appear to be 0.24.5 or 2.6.2 (backports). If I keep my puppetmaste

Re: [Puppet Users] Re: How to include the Scope(...) in a generated string?

2011-02-02 Thread Hiran Chaudhuri
Hi, Brian.Not knowing about the structures inside puppet my guess would be that the scope is evaluated before the classes are applied.Their content seems complete in both cases you mention. However the order may vary. This can be the case if the variables are held internally in a HashMap or similar

Re: [Puppet Users] Re: How to include the Scope(...) in a generated string?

2011-02-02 Thread Brian Gallew
My experience with it is that it only includes declared/included classes (which matches my desire anyway), but that the list of classes is ... somewhat random. It will always include the classes in the chain of the test, but other classes are more random. A short example: class one{ include two;

[Puppet Users] Re: How to include the Scope(...) in a generated string?

2011-02-02 Thread Nick Fagerlund
*EXPERIMENTS* Huh, it seems to return the DECLARED classes, not the defined ones, i.e. it can only see the modules and classes that are being applied to this particular node. OK, I could see an argument for that making sense. BUT: It also includes the names of any `node` constructs that match it (

[Puppet Users] Re: How to include the Scope(...) in a generated string?

2011-02-02 Thread Nick Fagerlund
On it. (Thanks for the example, Dan; that's pretty sweet.) Brian, what problem do you tend to see with the classes array? Does it look like an order dependency? Is it just a crapshoot as to whether a given class is in the list, or is there a method to it? On Feb 2, 5:18 pm, Brian Gallew wrote: >

Re: [Puppet Users] How to include the Scope(...) in a generated string?

2011-02-02 Thread Brian Gallew
On Feb 2, 2011, at 4:57 PM, John Warburton wrote: > I would love to see that in http://docs.puppetlabs.com/guides/templating.html > in the "Access to defined tags and classes" section. I have created a ticket > for that -https://projects.puppetlabs.com/issues/6124 Sadly, there's also a great n

Re: [Puppet Users] Re: using return value of a shell command as a puppet conditional

2011-02-02 Thread Nigel Kersten
On Wed, Feb 2, 2011 at 5:10 PM, Daniel Pittman wrote: > On Wed, Feb 2, 2011 at 17:02, Nigel Kersten wrote: >> On Wed, Feb 2, 2011 at 10:52 AM, Ashley Gould wrote: >>> On Mon, Jan 31, 2011 at 06:27:20PM -0800, Daniel Pittman wrote: In the longer term I would hope to have that information pus

Re: [Puppet Users] Re: using return value of a shell command as a puppet conditional

2011-02-02 Thread Daniel Pittman
On Wed, Feb 2, 2011 at 17:02, Nigel Kersten wrote: > On Wed, Feb 2, 2011 at 10:52 AM, Ashley Gould wrote: >> On Mon, Jan 31, 2011 at 06:27:20PM -0800, Daniel Pittman wrote: >>> In the longer term I would hope to have that information pushed out >>> from the puppet system, so that if a node *shoul

Re: [Puppet Users] Re: using return value of a shell command as a puppet conditional

2011-02-02 Thread Nigel Kersten
On Wed, Feb 2, 2011 at 10:52 AM, Ashley Gould wrote: > On Mon, Jan 31, 2011 at 06:27:20PM -0800, Daniel Pittman wrote: >> In the longer term I would hope to have that information pushed out >> from the puppet system, so that if a node *should* be joined with >> centrifyDC puppet will make it so, b

Re: [Puppet Users] How to include the Scope(...) in a generated string?

2011-02-02 Thread John Warburton
On 3 February 2011 05:04, Dan Bode wrote: > > Here is some code to print all of the current variable names in the scopes > symbol table: > > class fooperi { > $foo = inline_template("<% scope.to_hash.keys.each do |k| %> > <%= k %><% end %>") > notice($foo) > } > For those of us with next to n

[Puppet Users] Re: Puppetrun problem

2011-02-02 Thread rjl
One more piece of infolisten = true in my puppet.conf file on the clients. On Feb 2, 3:19 pm, rjl wrote: > Hi, > I am running puppet-2.6.4-0.7.el5 and puppetmaster-2.6.4-0.7.el5 on > CentOS 5.4 and cannot get puppetrun to work. > > Files on my clients are as follows: > /etc/puppet/auth.conf c

[Puppet Users] Puppetrun problem

2011-02-02 Thread rjl
Hi, I am running puppet-2.6.4-0.7.el5 and puppetmaster-2.6.4-0.7.el5 on CentOS 5.4 and cannot get puppetrun to work. Files on my clients are as follows: /etc/puppet/auth.conf contains: path /run method save allow * /etc/puppet/namespaceauth.conf contains: [fileserver] allow * [

[Puppet Users] Starting Tomcat Through Service Resource

2011-02-02 Thread robertbogdon
I'm running into a bizarre issue. What it boils down to is that when I start tomcat through puppetd, certain UTF-8 settings do not appear to take effect and the end result is garbage characters on a web page. However, when we run puppetd with --no-daemonize --debug -- trace --one-time, everythin

Re: [Puppet Users] Re: using return value of a shell command as a puppet conditional

2011-02-02 Thread Ashley Gould
On Mon, Jan 31, 2011 at 06:27:20PM -0800, Daniel Pittman wrote: > In the longer term I would hope to have that information pushed out > from the puppet system, so that if a node *should* be joined with > centrifyDC puppet will make it so, but until then what you have is > great. I have considered

Re: [Puppet Users] How to include the Scope(...) in a generated string?

2011-02-02 Thread Nigel Kersten
On Wed, Feb 2, 2011 at 9:47 AM, Rich Rauenzahn wrote: > I'd like to include similar information that notice() spits out in a > file I am generating -- basically so that anyone looking at the > generated file (actually a file fragment) could trace it back to the > class that is generating the ent

Re: [Puppet Users] How to include the Scope(...) in a generated string?

2011-02-02 Thread Dan Bode
On Wed, Feb 2, 2011 at 9:47 AM, Rich Rauenzahn wrote: > I'd like to include similar information that notice() spits out in a > file I am generating -- basically so that anyone looking at the > generated file (actually a file fragment) could trace it back to the > class that is generating the ent

[Puppet Users] How to include the Scope(...) in a generated string?

2011-02-02 Thread Rich Rauenzahn
I'd like to include similar information that notice() spits out in a file I am generating -- basically so that anyone looking at the generated file (actually a file fragment) could trace it back to the class that is generating the entry. Using $name within the file fragment is the closest I am ge

Re: [Puppet Users] "Registering" a node with a central service?

2011-02-02 Thread Daniel Pittman
On Feb 1, 2011 11:56 PM, "KC Braunschweig" wrote: > On Thu, Jan 27, 2011 at 7:54 AM, Rob McBroom wrote: > > On Jan 26, 2011, at 9:15 AM, Howard Jones wrote: > > > >> I have a couple of applications (backup, Cacti, Asset Tracking) where I want a node to have some package and config installed, and

Re: [Puppet Users] Run stages implicitly include classes, is this behavior intended?

2011-02-02 Thread Ben Lavender
On Wed, Feb 2, 2011 at 2:57 PM, Felix Frank wrote: >> Yes: the class statement in the equivalent of "include", as well as >> assigning that metadata. > > ...the workaround being: Use class instead of include in your ruby > manifest (is this available?) and select the desired stage right there. It

Re: [Puppet Users] Two file mode bugs in puppet 0.25?

2011-02-02 Thread Disconnect
On Wed, Feb 2, 2011 at 3:21 AM, Felix Frank wrote: > > file { "/usr/src/php": > > ensure => directory, > > } > > > > This results in /usr/src/php being created as mode 400. One could argue > > this is not a bug since 400 is the default mode. However on its second > > run puppet changes th

Re: [Puppet Users] Possible to disable puppets internal CA, and use wildcard certs from DigiCert CA?

2011-02-02 Thread Derek J. Balling
On Jan 28, 2011, at 2:02 PM, Daniel Pittman wrote: > Yes. On the other hand, you will very quickly run into a problem: > > The puppet master uses the name in the SSL certificate that the client > supplies as the "node" identifier. So, if you use that wildcard for > your nodes you will not be ab

Re: [Puppet Users] Stored configs - error

2011-02-02 Thread Adam Crews
On Mon, Jan 31, 2011 at 1:51 PM, Matthew Ceroni wrote: > I have struggled with this issue for a long time without any resolution. > > This showed up in previous versions (0.25) and suggestions were to upgrade > to the latest - currently running 2.6.3 on RHEL5. > > The errors I get are: > > Jan 31

Re: [Puppet Users] Possible to disable puppets internal CA, and use wildcard certs from DigiCert CA?

2011-02-02 Thread Nigel Kersten
On Tue, Feb 1, 2011 at 11:51 PM, KC Braunschweig wrote: > On Fri, Jan 28, 2011 at 11:02 AM, Daniel Pittman > wrote: > > On Fri, Jan 28, 2011 at 06:47, Jed wrote: > >> is this possible? > > > > Probably not usefully to you, no. You might better aim to integrate a > > stage into your host build pr

Re: [Puppet Users] Stored configs - error

2011-02-02 Thread Felix Frank
> Jan 31 14:46:07 ls1313p puppet-master[27438]: PGError: server closed the > connection unexpectedlyThis probably means the server terminated > abnormallybefore or while processing the request. : SELECT * FROM > "hosts" WHERE ("hosts"."name" = E'lv2119p.encana.com >

Re: [Puppet Users] Run stages implicitly include classes, is this behavior intended?

2011-02-02 Thread Felix Frank
> Yes: the class statement in the equivalent of "include", as well as > assigning that metadata. ...the workaround being: Use class instead of include in your ruby manifest (is this available?) and select the desired stage right there. Otherwise, define a wrapper-class that sets the stage for you

[Puppet Users] Re: Puppet Enterprise

2011-02-02 Thread Al @ Lab42
Congratulation for the approach you followed to balance the open source nature of Puppet and the need of your company to release a commercially scalable product/service. I think you've found out a sane compromise that should make everybody happy. Hope PE will be a very successful product. All t

Re: [Puppet Users] Two file mode bugs in puppet 0.25?

2011-02-02 Thread Felix Frank
> file { "/usr/src/php": > ensure => directory, > } > > This results in /usr/src/php being created as mode 400. One could argue > this is not a bug since 400 is the default mode. However on its second > run puppet changes the mode on this dir to 500. So either the initial > mode or the lat