[Puppet Users] Re: params.pp class with parametrized class support?

2012-01-18 Thread Alessandro Franceschi
Look here at how I do this: https://github.com/example42/puppet-openssh -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/Fw_KNwipuDgJ. To post to this group,

[Puppet Users] Import Class vs Require vs Inherits Options

2012-01-18 Thread Antidot SAS
Hi everyone, I am just rediting an old post because don't see any answer regarding this matter: -- Forwarded message -- From: Arnau Bria Date: Jun 30 2009, 5:01 pm Subject: import Class vs require vs inherits To: Puppet Users Hi all, I have a couple of "basic" questions on

[Puppet Users] Re: params.pp class with parametrized class support?

2012-01-18 Thread Ryan Bowlby
Show off! ;) Great example thanks. I noticed you fully qualify variables within the very class they were assigned. Is that best practice now? I've created a simple apache module using your openssh module as inspiration. I still need to modify params.pp to check for globally defined vars. In the c

Re: [Puppet Users] more fun and games...(exported resources)

2012-01-18 Thread Felix Frank
Hi, On 01/17/2012 09:27 PM, Peter Berghold wrote: > err: Could not retrieve catalog from remote server: Error 400 on SERVER: > Exported resource Nagios_contact[sharkrivertech-support] cannot override > local resource on node slcdmon0.slc.sharkrivertech.com >

Re: [Puppet Users] Re: How to handle multiple modules requiring the same packages

2012-01-18 Thread Felix Frank
Hi, On 01/17/2012 04:11 PM, jcbollinger wrote: > The first is simpler only if you get lucky, and you don't intend to > modify your manifests ever again. basically correct, but you can even play it safe: You must make sure each and every invocation of the resource in question is protected by such

Re: [Puppet Users] Import Class vs Require vs Inherits Options

2012-01-18 Thread Felix Frank
Hi, require => is largely orthogonal to the other mentioned concepts. Do require whatever must be handled first by puppet, e.g. service { "ntp": require => Package["ntp"] } so that puppet doesn't try and start a service before its package is even installed. It will *not* automagically install pa

Re: [Puppet Users] more fun and games...(exported resources)

2012-01-18 Thread Peter Berghold
That was my first thought Felix. I ran the command line find . -name '*.pp' -print -exec grep support {} \; just to find out where there might be a duplicate and came up dry. My templates.pp file is the only place that exists. I've managed to kludge a fix for it though by putting an "if" statem

[Puppet Users] Re: params.pp class with parametrized class support?

2012-01-18 Thread Alessandro Franceschi
On Wednesday, January 18, 2012 12:01:42 PM UTC+1, Ryan Bowlby wrote: > > Show off! ;) Great example thanks. > > I noticed you fully qualify variables within the very class they were > assigned. Is that best practice now? > Erm, dunno :-D Still haven't understood what's best practice in Puppet

Re: [Puppet Users] more fun and games...(exported resources)

2012-01-18 Thread Peter Berghold
I guess my kludge didn't work after all. The issue is back. I'm beginning to think that perhaps there is something bad about exporting nagios_contact resources. :-/ On Wed, Jan 18, 2012 at 9:13 AM, Peter Berghold wrote: > That was my first thought Felix. I ran the command line > > find . -nam

[Puppet Users] Re: params.pp class with parametrized class support?

2012-01-18 Thread jcbollinger
On Jan 18, 5:01 am, Ryan Bowlby wrote: > I noticed you fully qualify variables within the very class they were > assigned. Is that best practice now? Not that I am aware. If you want to adopt that as a local convention, however, I don't think it's contrary to best practices either. Personall

[Puppet Users] Re: Import Class vs Require vs Inherits Options

2012-01-18 Thread jcbollinger
On Jan 18, 4:32 am, Antidot SAS wrote: > Hi everyone, > > I am just rediting an old post because don't see any answer regarding this > matter: I observe that your thread title refers to "import", but there is no importing in the examples you asked about. I point this out only to be sure you r

Re: [Puppet Users] more fun and games...(exported resources)

2012-01-18 Thread Nan Liu
You probably have multiple server exporting the same resource when you only intend to export this particular resource only once. Nan On Jan 18, 2012, at 7:59, Peter Berghold wrote: I guess my kludge didn't work after all. The issue is back. I'm beginning to think that perhaps there is somethi

[Puppet Users] Re: Using foo::params, inheritance, and parameterized classes simultaneously?

2012-01-18 Thread jcbollinger
On Jan 18, 1:32 am, Ryan Bowlby wrote: > Looking into it now, thanks. Related question, I see a lot of modules > where an optional package is available as another class, example > > include apache::ssl > > would install apache and mod_ssl. With parametrized classes is it now > better to make thi

Re: [Puppet Users] more fun and games...(exported resources)

2012-01-18 Thread Peter Berghold
So I should logic in to export it just one time... On Jan 18, 2012 12:07 PM, "Nan Liu" wrote: You probably have multiple server exporting the same resource when you only intend to export this particular resource only once. Nan On Jan 18, 2012, at 7:59, Peter Berghold wrote: > I guess my klu

[Puppet Users] Re: stored configs - array sort order

2012-01-18 Thread jcbollinger
On Jan 17, 5:34 pm, Grant Byers wrote: [...] > So, i'd expect sort order to be controlled by LC_COLLATE, which should take > the value of LANG (en_US.UTF-8). This should result in numerics occuring > before alphabetic characters. Me, I would expect the order of array elements to be the same

Re: [Puppet Users] more fun and games...(exported resources)

2012-01-18 Thread Daniel Pittman
Yes. Also, in earlier versions of Puppet - including most of 2.7 - the "local" part in that message is a ... well, "lie" isn't quite the word, but it is misleading. It can also be a resource exported by another machine. :) On Wed, Jan 18, 2012 at 09:25, Peter Berghold wrote: > So I should logic

[Puppet Users] Announce: Facter 1.6.5rc1 Available

2012-01-18 Thread Matthaus Litteken
Welcome to the first maintenance release candidate for Facter in the new year. It includes contributions from the following people: Adrien Thebo, Barrie Bremner, Gary Larizza, Jonathan Boyett, Josh Cooper, Ken Barber, Marcus Vinicius Ferreira, Matt Dainty, Michael Kincaid, Pieter Lexis This relea

[Puppet Users] Announce: Puppet Dashboard 1.2.5rc1 Available

2012-01-18 Thread Matthaus Litteken
Welcome to the first Puppet Dashboard maintenance release candidate of the new year. It addresses issue #5879, and fixes an init script bug. It includes contributions from the following people: Bruno Leon, Daniel Pittman, Daniel Sauble This release is available for download at: http://downloads.

[Puppet Users] Puppet 2.7.10rc1

2012-01-18 Thread Michael Stahnke
Welcome to the first maintenance release candidate for Puppet in the new year. Since we skipped a December release, this release is rather large. I'll also take a moment to remind you of the Puppet Bug Triage-a-thon: January 21st from 2012-01-21 15:00 UTC to 2012-01-22 00:00 UTC - http://triagepu