[Puppet Users] specific rails version ?

2011-01-07 Thread Markus Falb
hi, I run puppet 0.25.5 Because of "puppet warnings about metaclass deprecation" i use rails not newer than 2.3.5 see https://bugzilla.redhat.com/show_bug.cgi?id=616519 and http://projects.puppetlabs.com/issues/4668 for that. I use passenger as described in http://projects.puppetlabs.com/project

Re: [Puppet Users] Exactly how do people replace include with parametrised classes?

2011-01-07 Thread R.I.Pienaar
- Original Message - > Sorry for the previous HTML email. no worries, usually I take the time to add extra >'s to make them readable but when they're long it becomes too much and I give in to the top posting temptation :) > On Fri, Jan 7, 2011 at 1:41 PM, R.I.Pienaar wrote: > > > > You

Re: [Puppet Users] ERB Parsing xml

2011-01-07 Thread Daniel Pittman
On Fri, Jan 7, 2011 at 12:29, Marek Dohojda wrote: > I am wondering if erb templates can parse an xml document, and input a valid > variable from within it? Could someone please point me in the right > direction? I can't tell which of these two is your problem, so please ignore the one that do

Re: [Puppet Users] Help with simple function

2011-01-07 Thread bg
That was my guess, I'm sure I'll the error in my ways as I become more fluent in Puppet. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send em

[Puppet Users] Re: Help with simple function

2011-01-07 Thread bg
Thanks for the suggestion Deet, I got it working with something along those lines, except using a shell script, as my Ruby skills are weak, which led to my initial problems. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group

Re: [Puppet Users] Exactly how do people replace include with parametrised classes?

2011-01-07 Thread Jeff McCune
Sorry for the previous HTML email. On Fri, Jan 7, 2011 at 1:41 PM, R.I.Pienaar wrote: > > You cant avoid the scoping issues cos its broken.  You can work around them > though. > > You can be careful about where you set variables and how you include things. > This > isn't new we've been doing it

Re: [Puppet Users] Using puppet to fix a lot of files permissions

2011-01-07 Thread Brice Figureau
On 07/01/11 20:44, Jeff McCune wrote: > -Jeff > > On Jan 7, 2011, at 6:51 AM, Brice Figureau > wrote: > >> On Fri, 2011-01-07 at 15:33 +0100, Sébastien Barthélémy wrote: >>> Hello again, >>> >>> thank you for your answers. I use puppet 2.6.4. >>> I don't think I have a site.pp >>> >>> On Wed, 5

[Puppet Users] Re: Managing cronjobs as a file in solaris with appendifnosuchline for specific servers

2011-01-07 Thread Ace
Thanks all, finally got it working now. On Jan 7, 10:00 am, Nigel Kersten wrote: > On Fri, Jan 7, 2011 at 6:27 AM, Ace wrote: > > Can you please state an example explaining how relating classes would > > execute one class before another? > > class foo { >   require "bar" > > } > > > On Jan 6, 3:

Re: [Puppet Users] My external node classifier script is totally ignored

2011-01-07 Thread Cosimo Streppone
In data 07 gennaio 2011 alle ore 23:17:10, Rameses Mss ha scritto: On Fri, Jan 7, 2011 at 9:51 AM, Cosimo Streppone wrote: Only when I modify my site.pp to manually include the given node, then everything starts to work just fine. This is my working site.pp: $server = "z01-06-02.mydomai

Re: [Puppet Users] Exactly how do people replace include with parametrised classes?

2011-01-07 Thread Nigel Kersten
On Fri, Jan 7, 2011 at 1:57 PM, R.I.Pienaar wrote: > I totally agree and the new design for external variables - which I dont think > has been shared with the community for comment yet - is a good replacement for > extlookup last time I saw what was planned. The *only* reason that this hasn't be

Re: [Puppet Users] My external node classifier script is totally ignored

2011-01-07 Thread Rameses Mss
On Fri, Jan 7, 2011 at 9:51 AM, Cosimo Streppone wrote: > Hi, > > I just added an external classifier script, and things > are not working as I expected to. > > Trying to read documentation about ext.nodes and > searching the archives I couldn't come up with any > useful results. > > My classifier

Re: [Puppet Users] Exactly how do people replace include with parametrised classes?

2011-01-07 Thread R.I.Pienaar
- Original Message - > On Fri, Jan 7, 2011 at 1:41 PM, R.I.Pienaar < r...@devco.net > wrote: > > > (forced to top post due to your html email) > > You cant avoid the scoping issues cos its broken. You can work around > them though. > > You can be careful about where you set variables

Re: [Puppet Users] Exactly how do people replace include with parametrised classes?

2011-01-07 Thread Dan Bode
On Fri, Jan 7, 2011 at 1:41 PM, R.I.Pienaar wrote: > (forced to top post due to your html email) > > You cant avoid the scoping issues cos its broken. You can work around them > though. > > You can be careful about where you set variables and how you include > things. This > isn't new we've been

Re: [Puppet Users] Exactly how do people replace include with parametrised classes?

2011-01-07 Thread Patrick
On Jan 7, 2011, at 11:22 AM, Jeff McCune wrote: > On Fri, Jan 7, 2011 at 2:47 AM, luke.bigum wrote: > Hi list, > > Reading the thread "can a class require an other class?" it's been > mentioned that perhaps one way forward for the Puppet language is to > phase out the include keyword in favour

Re: [Puppet Users] Exactly how do people replace include with parametrised classes?

2011-01-07 Thread R.I.Pienaar
(forced to top post due to your html email) You cant avoid the scoping issues cos its broken. You can work around them though. You can be careful about where you set variables and how you include things. This isn't new we've been doing it for years. You can use extlookup to fetch variables fr

Re: [Puppet Users] Help with simple function

2011-01-07 Thread Patrick
On Jan 7, 2011, at 9:09 AM, bg wrote: > I've got a module that manages user id's, ssh-keys, and passwords. The > passwords are fetched from a text file containing userid and password hashes, > with the terms separated by a space. > > My manifest (which seems to work fine, short of the functio

Re: [Puppet Users] Using puppet to fix a lot of files permissions

2011-01-07 Thread Patrick
On Jan 7, 2011, at 6:33 AM, Sébastien Barthélémy wrote: > Hello again, > > thank you for your answers. I use puppet 2.6.4. > I don't think I have a site.pp > > On Wed, 5 Jan 2011, Patrick wrote: >> I'm finding that with my version of puppet (2.6.4), the checksum line > has no effect on the run

Re: [Puppet Users] Exactly how do people replace include with parametrised classes?

2011-01-07 Thread Jeff McCune
On Fri, Jan 7, 2011 at 12:39 PM, R.I.Pienaar wrote: > > > - Original Message - > > On Fri, Jan 7, 2011 at 2:47 AM, luke.bigum < > > luke.bi...@fasthosts.co.uk > wrote: > > > > > > > > Hi list, > > > > Reading the thread "can a class require an other class?" it's been > > mentioned that pe

[Puppet Users] Re: Help with simple function

2011-01-07 Thread deet
On Jan 7, 9:09 am, bg wrote: > I've got a module that manages user id's, ssh-keys, and passwords.  The > passwords are fetched from a text file containing userid and password bg, Not exactly a suggestion for your specific issue but I wanted to make sure you are aware of the generate functi

Re: [Puppet Users] Exactly how do people replace include with parametrised classes?

2011-01-07 Thread R.I.Pienaar
- Original Message - > On Fri, Jan 7, 2011 at 2:47 AM, luke.bigum < > luke.bi...@fasthosts.co.uk > wrote: > > > > Hi list, > > Reading the thread "can a class require an other class?" it's been > mentioned that perhaps one way forward for the Puppet language is to > phase out the incl

[Puppet Users] ERB Parsing xml

2011-01-07 Thread Marek Dohojda
Hi I am wondering if erb templates can parse an xml document, and input a valid variable from within it? Could someone please point me in the right direction? Thank you kindly -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this gro

Re: [Puppet Users] Using puppet to fix a lot of files permissions

2011-01-07 Thread Jeff McCune
-Jeff On Jan 7, 2011, at 6:51 AM, Brice Figureau wrote: > On Fri, 2011-01-07 at 15:33 +0100, Sébastien Barthélémy wrote: >> Hello again, >> >> thank you for your answers. I use puppet 2.6.4. >> I don't think I have a site.pp >> >> On Wed, 5 Jan 2011, Patrick wrote: >>> I'm finding that with my v

Re: [Puppet Users] Exactly how do people replace include with parametrised classes?

2011-01-07 Thread Jeff McCune
On Fri, Jan 7, 2011 at 2:47 AM, luke.bigum wrote: > Hi list, > > Reading the thread "can a class require an other class?" it's been > mentioned that perhaps one way forward for the Puppet language is to > phase out the include keyword in favour of parametrised classes. I'm > thinking of my Puppet

[Puppet Users] Re: can a class require an other class?

2011-01-07 Thread dingus9
I would like to see a dedicated group for this too. I have a few opinions on the matter of language syntax and semantics. My main frustration is the matter of slightly different methods for declaring defines, nodes and classes. Take these four examples a node, a define and the two class include/

[Puppet Users] Re: can a class require an other class?

2011-01-07 Thread dingus9
To add, I'd like to see a formalized group too... I am slightly tired of having several methods for declaring resources with different syntax for roughly the same idea... Examples node hostname{ stuff } cust_def { 'namestr': } On Jan 7, 9:30 am, Nigel Kersten wrote: > On Fri, Jan 7, 2011 at

[Puppet Users] Re: sysctl default values overridden by custom app values

2011-01-07 Thread Jake - USPS
A couple updates. First, I've been finding some other documentation on parameterized classes. It seems this was first introduced in 2.6.0, which is the version I am using. I'm going to start and try updating to 2.6.3 to see if this gets addressed in a possible bugfix. Please feel free to commen

[Puppet Users] Puppet Meet-Up : Manchester, UK

2011-01-07 Thread joel.merr...@gmail.com
Hi list! I'm trying to organize a puppet meet-up in Manchester, UK (1) - hopefully at madlab(2) If you fancy coming could you register your interest. Dates are still to be confirmed, but I'm pretty flexible and open to suggestions. Thanks! Joel 1) http://www.meetup.com/Puppet/55010/ 2) http://

[Puppet Users] Re: can a class require an other class?

2011-01-07 Thread Luc Suryo
OK hat is what I was looking for, sorry for the noise. On Jan 6, 2:04 pm, Daniel Pittman wrote: > On Thu, Jan 6, 2011 at 12:29, Luc Suryo wrote: > > Is it possible to define a class say php-fpm that requires the class > > php to be called first?  if so what s the syntax? > > Yes:  package { "fo

Re: [Puppet Users] can a class require an other class?

2011-01-07 Thread Nigel Kersten
On Fri, Jan 7, 2011 at 9:10 AM, R.I.Pienaar wrote: > the overall point is there are features that are not designed in a way I > believe has everyones needs in mind and certainly hasnt had community input. I have to admit I was absent from the community when parameterized classes were introduced

Re: [Puppet Users] Retrieving Version Numbers from Packages

2011-01-07 Thread Daniel Pittman
On Jan 7, 2011 9:07 AM, "Martin Harrigan" wrote: > On Thu, Jan 6, 2011 at 5:55 PM, Daniel Pittman wrote: >> On Thu, Jan 6, 2011 at 09:24, Martin Harrigan wrote: >> >> > I install the latest version of a Ruby gem using: >> > package { 'passenger': ensure => latest, provider => 'gem' } >> > >> > H

Re: [Puppet Users] can a class require an other class?

2011-01-07 Thread R.I.Pienaar
- Original Message - > > Does it serve the users that we are recommending they use such a > feature? > > I think the net gain is worth recommending parametrized classes. > > The net gain I see is that it helps new and veteran Puppet users > flatten their nested scopes and avoid uninten

[Puppet Users] Help with simple function

2011-01-07 Thread bg
I've got a module that manages user id's, ssh-keys, and passwords. The passwords are fetched from a text file containing userid and password hashes, with the terms separated by a space. My manifest (which seems to work fine, short of the function: user { $username: comm

Re: [Puppet Users] Retrieving Version Numbers from Packages

2011-01-07 Thread Martin Harrigan
On Thu, Jan 6, 2011 at 5:55 PM, Daniel Pittman wrote: > On Thu, Jan 6, 2011 at 09:24, Martin Harrigan > wrote: > > > I install the latest version of a Ruby gem using: > > > > package { 'passenger': ensure => latest, provider => 'gem' } > > > > However, I want to retrieve the actual version numbe

Re: [Puppet Users] can a class require an other class?

2011-01-07 Thread Jeff McCune
On Fri, Jan 7, 2011 at 3:26 AM, R.I.Pienaar wrote: [snip] > Then I am doubly perplexed. It's not a surprise that the feature isn't > adequate perhaps even mistake has been made. > > Being that it is not done or fixed in stone you're almost guaranteed > that its behavior, implications, perhaps

[Puppet Users] Re: sysctl default values overridden by custom app values

2011-01-07 Thread Jake - USPS
Dan, First, thanks for the sysctl type/provider. I haven't tried it yet but definitely plan to do so after I get this working. Augeas can be a bit slow checking/editing files (about 1 sec per item I set) so this could definitely not only make things easier but also faster. Also, thanks for expl

Re: [Puppet Users] facter --puppet does not report "environment"

2011-01-07 Thread Tony G.
It probably would be good idea to have a facter of the environment, guess that could be a very quick way to know what environment the client/agent is using. On Fri, Jan 7, 2011 at 9:02 AM, Nigel Kersten wrote: > On Fri, Jan 7, 2011 at 6:07 AM, Mohamed Lrhazi wrote: > > Thanks a lot Nigel... I

RE: [Puppet Users] Certificate / Private Key Mismatch

2011-01-07 Thread Michael.Itchue
Hi Adam, Thanks for the link. I actually figured out the problem yesterday as being a name resolution issue. Sort of exactly what the Google bug article indicated. Mike -Original Message- From: puppet-users@googlegroups.com [mailto:puppet-us...@googlegroups.com] On Behalf Of Adam Hein

Re: [Puppet Users] facter --puppet does not report "environment"

2011-01-07 Thread Nigel Kersten
On Fri, Jan 7, 2011 at 6:07 AM, Mohamed Lrhazi wrote: > Thanks  a lot Nigel... I do need to learn to create custom facts indeed. I should add that even without this custom fact, "$environment" is available to use as a variable in your Puppet manifests. It's just not a fact, it's exposed as a glo

Re: [Puppet Users] Re: Managing cronjobs as a file in solaris with appendifnosuchline for specific servers

2011-01-07 Thread Nigel Kersten
On Fri, Jan 7, 2011 at 6:27 AM, Ace wrote: > Can you please state an example explaining how relating classes would > execute one class before another? class foo { require "bar" } > > On Jan 6, 3:15 pm, Nigel Kersten wrote: >> On Thu, Jan 6, 2011 at 11:49 AM, Ace wrote: >> > As you can see

Re: [Puppet Users] can a class require an other class?

2011-01-07 Thread Nigel Kersten
On Fri, Jan 7, 2011 at 3:26 AM, R.I.Pienaar wrote: > > > - Original Message - >> On Thu, Jan 6, 2011 at 2:19 PM, R.I.Pienaar < r...@devco.net > wrote: >> >> >>> imho the right solution is a combination of the require and include >>> keywords,resources requiring classes used extremely spari

[Puppet Users] Re: Problem loading custom modules

2011-01-07 Thread luke.bigum
> I created the tree /etc/puppet/modules/ntp/manifests/ and created an > init.pp with this content: > > class ntp { >          package { "ntp": ensure => installed } >          service { "ntpd": ensure => stopped } > > } Hi Jonathan, How do you know the client isn't doing what you told it if ther

Re: [Puppet Users] Using puppet to fix a lot of files permissions

2011-01-07 Thread Brice Figureau
On Fri, 2011-01-07 at 15:33 +0100, Sébastien Barthélémy wrote: > Hello again, > > thank you for your answers. I use puppet 2.6.4. > I don't think I have a site.pp > > On Wed, 5 Jan 2011, Patrick wrote: > > I'm finding that with my version of puppet (2.6.4), the checksum line > has no effect on t

[Puppet Users] My external node classifier script is totally ignored

2011-01-07 Thread Cosimo Streppone
Hi, I just added an external classifier script, and things are not working as I expected to. Trying to read documentation about ext.nodes and searching the archives I couldn't come up with any useful results. My classifier script outputs: --- YAML --- classes: - geodns::production::b

[Puppet Users] Problem loading custom modules

2011-01-07 Thread Jonathan Gazeley
Hi all, I'm a puppet newbie, so please bear with me. I've installed puppetmaster on a CentOS box, and I have another CentOS box running as a test client while I get to grips. I installed puppetmaster from the EPEL repository. I've added some content to site.pp and nodes.pp (in /etc/puppet/m

Re: [Puppet Users] Re: Managing cronjobs as a file in solaris with appendifnosuchline for specific servers

2011-01-07 Thread Felix Frank
On 01/07/2011 03:27 PM, Ace wrote: > Can you please state an example explaining how relating classes would > execute one class before another? Ace, in this simple case, you could probably get away with define appendifnosuchline($file="", $line="") { exec { "appendline_${file}_${line}":

Re: [Puppet Users] Using puppet to fix a lot of files permissions

2011-01-07 Thread Sébastien Barthélémy
Hello again, thank you for your answers. I use puppet 2.6.4. I don't think I have a site.pp On Wed, 5 Jan 2011, Patrick wrote: I'm finding that with my version of puppet (2.6.4), the checksum line has no effect on the run time when run on a directory containing 10 files that total 7.5GB.  I am

[Puppet Users] Re: Managing cronjobs as a file in solaris with appendifnosuchline for specific servers

2011-01-07 Thread Ace
Can you please state an example explaining how relating classes would execute one class before another? On Jan 6, 3:15 pm, Nigel Kersten wrote: > On Thu, Jan 6, 2011 at 11:49 AM, Ace wrote: > > As you can see the append function is running last and hence all this > > is working. What controls th

Re: [Puppet Users] Certificate / Private Key Mismatch

2011-01-07 Thread Adam Heinz
On Thu, Jan 6, 2011 at 1:33 PM, wrote: > This process seemed to work as far as keys go. However, when I > restarted the puppetd client now I get a message > In the log that states: > Starting puppet client version 2.6.4 > Could not retrieve catalog from remote server; hostname was not a match > w

Re: [Puppet Users] facter --puppet does not report "environment"

2011-01-07 Thread Mohamed Lrhazi
Thanks a lot Nigel... I do need to learn to create custom facts indeed. On Thu, Jan 6, 2011 at 11:22 PM, Nigel Kersten wrote: > facter --puppet shows the facter facts, plus any that have been > delivered by puppet and pluginsync. > > "environment" isn't a fact by default. You could make a fact

Re: [Puppet Users] Silence reports for one specific resource?

2011-01-07 Thread Mohamed Lrhazi
Thanks a lot guys... but how do I do this, both silencing reporting and overriding noop mode, for a resource other than "exec"... mine is: file { "/etc/puppet/facts.yaml": ensure => file, content => inline_template("<%= scope.to_hash.reject { |k,v| !( k.is_a?(String) && v.is_a?(Str

Re: [Puppet Users] can a class require an other class?

2011-01-07 Thread R.I.Pienaar
- Original Message - > On Thu, Jan 6, 2011 at 2:19 PM, R.I.Pienaar < r...@devco.net > wrote: > > >> imho the right solution is a combination of the require and include >> keywords,resources requiring classes used extremely sparingly and the new >> syntax as Danpointed out. >> >> What w

[Puppet Users] Re: Exactly how do people replace include with parametrised classes?

2011-01-07 Thread luke.bigum
O I see :) Thanks Felix that makes a lot of sense. I somehow got it in my head that people were managing to replace the include keyword by passing parameters to classes, rather than just using the parametrised class syntax, something like: class["puppetmaster"] { $common, $puppet, $ldap_auth,

Re: [Puppet Users] Exactly how do people replace include with parametrised classes?

2011-01-07 Thread Felix Frank
> class puppetmaster { > include common > include puppet > include ldap_auth > include iptables::disabled > include httpd::ssl > include ruby-enterprise::passenger > } Hi Luke, I haven't dipped into 2.6 yet, but afaik, this would simply become class puppetmaster { class { [ "p

[Puppet Users] Exactly how do people replace include with parametrised classes?

2011-01-07 Thread luke.bigum
Hi list, Reading the thread "can a class require an other class?" it's been mentioned that perhaps one way forward for the Puppet language is to phase out the include keyword in favour of parametrised classes. I'm thinking of my Puppet and the several levels of include chaining I use and I'm wonde

Re: [Puppet Users] Silence reports for one specific resource?

2011-01-07 Thread Alan Barrett
On Fri, 07 Jan 2011, Patrick wrote: > On Jan 6, 2011, at 10:55 PM, Alan Barrett wrote: > > I probably wouldn't do this, but: > > > >exec { "secret stuff": > > command => "/bin/false", > > unless => "do the real work here", > >} > > I don't know if it's a problem, but this will pro

Re: [Puppet Users] Silence reports for one specific resource?

2011-01-07 Thread Patrick
On Jan 6, 2011, at 10:55 PM, Alan Barrett wrote: > On Thu, 06 Jan 2011, Mohamed Lrhazi wrote: >> I added one resource to all the hosts, which dumps all environment >> variables to a file called: /etc/mcollective/facts.yaml >> This resource always reports that a change needs to be made, since >> t