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

2011-01-08 Thread Patrick
On Jan 7, 2011, at 3:35 PM, Jeff McCune wrote: > OK, so what if declaring* a class always added it to the top scope? > This seems like a relatively straight forward solution to a great many > concerns. The language doesn't change, existing manifests continue to > work and only the convention of

[Puppet Users] Inheriting doesn't work with files?

2011-01-08 Thread Adam Nielsen
Hi all, I've got two classes. One installs and configures the web server lighttpd, and the other installs and configures Mailman. Both these classes need to copy configuration files into the same directory, but I can only get lighttpd's files copied in, Mailman's seem to be ignored. In my

[Puppet Users] Is there a nice syntax for calling functions?

2011-01-08 Thread Adam Nielsen
Hi all, I'm using the class below to set the timezone on a Debian system, however there are two things I'm unhappy with. 1) Why do I have to specify a trailing colon after the exec command and when calling timezone::set? If I leave it off I get the very helpful error "Syntax error at '}'; e

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

2011-01-08 Thread Sébastien Barthélémy
On Fri, 7 Jan 2011, Patrick wrote: On Jan 7, 2011, at 6:33 AM, Sébastien Barthélémy wrote: $ sudo time puppet -l /tmp/puppet.log ~/puppet/respeer.pp 38779.74 real 38230.77 user 153.85 sys $ sudo time puppet -l /tmp/puppet.log ~/puppet/respeer.pp 388.47 real 380.06 user

Re: [Puppet Users] Is there a nice syntax for calling functions?

2011-01-08 Thread Patrick
On Jan 8, 2011, at 3:52 AM, Adam Nielsen wrote: > 2) Because of the exec command, /etc/timezone gets overwritten without a > backup being made like with other functions. Is there a way to get the file > included in the file bucket? I imagine I'd have to add an "onlyif" directive > to make sur

Re: [Puppet Users] Inheriting doesn't work with files?

2011-01-08 Thread Nigel Kersten
On Sat, Jan 8, 2011 at 2:58 AM, Adam Nielsen wrote: > Hi all, > > I've got two classes.  One installs and configures the web server lighttpd, > and the other installs and configures Mailman. > > Both these classes need to copy configuration files into the same directory, > but I can only get light

Re: [Puppet Users] Is there a nice syntax for calling functions?

2011-01-08 Thread Nan Liu
On Sat, Jan 8, 2011 at 3:52 AM, Adam Nielsen wrote: > Hi all, > > I'm using the class below to set the timezone on a Debian system, however > there are two things I'm unhappy with. > > 1) Why do I have to specify a trailing colon after the exec command and > when calling timezone::set? If I leav

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

2011-01-08 Thread Nigel Kersten
Is between "" exactly what you're printing out? = --- YAML --- classes: - geodns::production::backend environment: production name: z01-06-02 parameters: puppet_server: z01-06-02 == You shouldn't have the first line there, and testing shows it's not

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

2011-01-08 Thread Cosimo Streppone
In data 08 gennaio 2011 alle ore 20:07:20, Nigel Kersten ha scritto: Is between "" exactly what you're printing out? = --- YAML --- classes: - geodns::production::backend environment: production name: z01-06-02 parameters: puppet_server: z01-06-02

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

2011-01-08 Thread Daniel Pittman
On Sat, Jan 8, 2011 at 12:17, Cosimo Streppone wrote: > In data 08 gennaio 2011 alle ore 20:07:20, Nigel Kersten > ha scritto: > >> Is between "" exactly what you're printing out? >> >> = >>  --- YAML >>  --- >>  classes: >>   - geodns::production::backend >>  environment: pro

[Puppet Users] Considerations for puppet/cluster to manage 6000 hosts.

2011-01-08 Thread trey85stang
I'm trying to get an idea of what kind of backend setup I would need to run puppet to manage roughly 6000 hosts. I see puppet by iteself is limited to 10-20; but with mongrel/apache that number shoots up but I am not sure by how much? Im still new to puppet and running it in a lab but want to ta

Re: [Puppet Users] Considerations for puppet/cluster to manage 6000 hosts.

2011-01-08 Thread Eduardo S. Scarpellini
My suggestions for big scenarios is: mod_passenger/apache22 (+ ruby-enterprise), subversion (or another scm you like), puppet2.6.4 + stored_configs_async, some stomp server (like activemq), and a couple of mysql servers. You don't need to sync the ssl keys (pem, etc) between backend servers, since

[Puppet Users] Re: Considerations for puppet/cluster to manage 6000 hosts.

2011-01-08 Thread trey85stang
Thanks for the reply, is there any documentation available on this type of setup? Where would the sql servers come into play? On Jan 8, 4:06 pm, "Eduardo S. Scarpellini" wrote: > My suggestions for big scenarios is: mod_passenger/apache22 (+ > ruby-enterprise), subversion (or another scm you l

Re: [Puppet Users] Re: Considerations for puppet/cluster to manage 6000 hosts.

2011-01-08 Thread Patrick
You'll need one or more mysql servers if you use storedconfigs. Storedconfigs can be useful, but will drastically increase the server CPU usage and will require a mysql backend. You can always turn it on later. There are two (working) ways to setup SSL which is used for authentication and sec

Re: [Puppet Users] puppetmaster 100%cpu usage on 2.6 (not on 0.24)

2011-01-08 Thread Leonid Batizhevsky
No, I have not, maybe try to play with passanger worker time to live? Leonid S. Batizhevsky On Fri, Dec 17, 2010 at 19:39, Ashley Penney wrote: > As a datapoint, I experience this problem on RHEL6: > ruby-1.8.7.299-4.el6.x86_64 > Gems: > passenger (3.0.0) > rack (1.2.1) > rack-mount (0.6.13) >

[Puppet Users] Passing node hostname to the Puppet managed node

2011-01-08 Thread Andr? Lu?s Lopes
Hi, First of all, this is my very first message to this list, so please bear with me while I'm getting used to it. Sorry for any non-standard way to ask a question here which I can be using without prior knowledgment. I would like to be able to set up some config parameters on a given node whi

Re: [Puppet Users] Passing node hostname to the Puppet managed node

2011-01-08 Thread Ben Beuchler
I believe you're looking for templates. http://docs.puppetlabs.com/guides/templating.html As an example: file { "/etc/hosts": content => template("hosts.erb") } And the template would contain this: 127.0.0.1 localhost 192.168.99.99 <%= hostname %> <%= fqdn %> -Ben -- You received this

Re: [Puppet Users] Inheriting doesn't work with files?

2011-01-08 Thread Adam Nielsen
Both these classes need to copy configuration files into the same directory, but I can only get lighttpd's files copied in, Mailman's seem to be ignored. What am I doing wrong? It looks to me that you're going to end up with: source => ["puppet:///files/lighttpd/$hostname/",

[Puppet Users] Re: Considerations for puppet/cluster to manage 6000 hosts.

2011-01-08 Thread trey85stang
Thanks for all the replies, looks like a have a lot more reading to do. Appreciate all the info! Thanks On Jan 8, 4:18 pm, Patrick wrote: > You'll need one or more mysql servers if you use storedconfigs.   > Storedconfigs can be useful, but will drastically increase the server CPU > usage and

Re: [Puppet Users] Is there a nice syntax for calling functions?

2011-01-08 Thread Adam Nielsen
It's the minimum required syntax for declaring a resource. The : is required to seperate the resource title and the list of attributes: Thanks for the explanation. Shame the colon isn't optional when there are no attributes ;-) You can use puppet filebucket command to backup the files befor

Re: [Puppet Users] Inheriting doesn't work with files?

2011-01-08 Thread Stefan Schulte
On Sun, Jan 09, 2011 at 09:58:01AM +1000, Adam Nielsen wrote: > >> Both these classes need to copy configuration files into the same > >> directory, > >> but I can only get lighttpd's files copied in, Mailman's seem to be > >> ignored. > >> > >> What am I doing wrong? > > > > It looks to me that

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

2011-01-08 Thread Nigel Kersten
On Sat, Jan 8, 2011 at 12:17 PM, Cosimo Streppone wrote: > In data 08 gennaio 2011 alle ore 20:07:20, Nigel Kersten > ha scritto: > >> Is between "" exactly what you're printing out? >> >> = >>  --- YAML >>  --- >>  classes: >>   - geodns::production::backend >>  environment:

Re: [Puppet Users] Passing node hostname to the Puppet managed node

2011-01-08 Thread Daniel Pittman
On Sat, Jan 8, 2011 at 14:12, Andr? Lu?s Lopes wrote: > First of all, this is my very first message to this list, so please bear > with me while I'm getting used to it. > Sorry for any non-standard way to ask a question here which I can be using > without prior knowledgment. Hey, thanks for join

Re: [Puppet Users] Re: Considerations for puppet/cluster to manage 6000 hosts.

2011-01-08 Thread Daniel Pittman
On Sat, Jan 8, 2011 at 14:18, Patrick wrote: > You'll need one or more mysql servers if you use storedconfigs.   > Storedconfigs can be useful, but will drastically increase the server CPU > usage and will require a mysql backend.  You can always turn it on later. One or more *SQL* servers: we

Re: [Puppet Users] Inheriting doesn't work with files?

2011-01-08 Thread Adam Nielsen
No, I want the 'source' line to be as you suggest - the contents of *both* paths should be copied into the same folder, as it's a "conf.d" style directory. For example, the first path contains 10-main.conf and the second path contains 20-mailman.conf. Both these should be copied into the destina