Re: [Puppet Users] Templates : about puppet syntax

2010-03-22 Thread Smain Kahlouch
Yes i intended to pass a variable to a class through node definition. Could you please show me an example of the syntax please ? Message initial De: Michael DeHaan Reply-to: puppet-users@googlegroups.com À: puppet-users@googlegroups.com Sujet: Re: [Puppet Users] Templates : abou

Re: [Puppet Users] large files hierarchy - per module or monolithic?

2010-03-22 Thread Nigel Kersten
On Mon, Mar 22, 2010 at 10:50 PM, John Warburton wrote: > The issue isn't organising puppet, but dealing with a global team of 50 > people who may or may not really understand what they are dealing with > > I was thinking that rather than find out too late that someone has tried to > manage the sa

Re: [Puppet Users] large files hierarchy - per module or monolithic?

2010-03-22 Thread Ohad Levy
I have such a setup :) what we ended up using is some sort of a define to the file statement, which search in different places based on some logic. at the end of the day, it depends on the usage cases, based on your ACL (e.g. who is allowed to change what in your manifest etc). my 2 cents, Ohad

Re: [Puppet Users] large files hierarchy - per module or monolithic?

2010-03-22 Thread John Warburton
The issue isn't organising puppet, but dealing with a global team of 50 people who may or may not really understand what they are dealing with I was thinking that rather than find out too late that someone has tried to manage the same file in muliple modules, I was wondering if putting all file su

Re: [Puppet Users] Source and Template file defaults

2010-03-22 Thread Ohad Levy
You could probably create your own function, which checks if a file exists and if it does call the template function on it. Ohad On Tue, Mar 23, 2010 at 1:23 PM, Douglas Garstang wrote: > On Mon, Mar 22, 2010 at 7:15 PM, Ohad Levy wrote: > > Hmm.. Puppet does not support going over multiple te

Re: [Puppet Users] Source and Template file defaults

2010-03-22 Thread Douglas Garstang
On Mon, Mar 22, 2010 at 7:15 PM, Ohad Levy wrote: > Hmm.. Puppet does not support going over multiple templates like it does in > plain files. > > maybe there is even a feature request for it ;) Aw crap. I've been told that twice in the last few days. Is there another way I could emulate this fun

Re: [Puppet Users] large files hierarchy - per module or monolithic?

2010-03-22 Thread Ohad Levy
Why not simply using inheritance? or alternativly, have a source search order? e.g. find the first files it find. in moduleA, modubleB, common if you really need to manage different parts of the file in different modules, you might want to look for volcane concat module. cheers, Ohad On Tue, Mar

Re: [Puppet Users] Use IP of one class in other

2010-03-22 Thread Ohad Levy
Hi, You can achieve that with a few options: 1. use storeconfigs, export and collection will allow your nfs clients to export, and your nfs server to collect the list of machines. maybe not usable if you have a large setup (or multi location puppetmaters). 2. parse the yaml files on the master (e

Re: [Puppet Users] Source and Template file defaults

2010-03-22 Thread Ohad Levy
Hmm.. Puppet does not support going over multiple templates like it does in plain files. maybe there is even a feature request for it ;) Ohad On Tue, Mar 23, 2010 at 6:34 AM, Douglas Garstang wrote: > Can someone tell me why this works: > > file { >"/etc/sudoers": >source =>

Re: [Puppet Users] Directory structure?

2010-03-22 Thread Ohad Levy
Hi, I have a similar structure, but the modules them self are versioned, so instead of putting the real module in the env directory, I use links (which are managed by puppet), e.g.: /etc/puppet/env/global_puppetmaster apache2 -> /etc/puppet/modules/stable/services/apache2_0.2/ co

Re: [Puppet Users] Behavior of Environments -- Bug?

2010-03-22 Thread Nigel Kersten
On Mon, Mar 22, 2010 at 6:25 PM, Scott Smith wrote: > On 3/22/10 1:26 PM, Paul Lathrop wrote: >> >> Scott, >> >> I know it defaults to production if a environment is not specified. >> However, that's not the case here. The client *is* specifying an >> environment, the server doesn't know about tha

Re: [Puppet Users] Behavior of Environments -- Bug?

2010-03-22 Thread Scott Smith
On 3/22/10 1:26 PM, Paul Lathrop wrote: Scott, I know it defaults to production if a environment is not specified. However, that's not the case here. The client *is* specifying an environment, the server doesn't know about that environment. I think this is different than what you are describing

Re: [Puppet Users] Directory structure?

2010-03-22 Thread Tony G.
I have same structure, but interested if there is any other out there. On Mon, Mar 22, 2010 at 4:33 PM, Nigel Kersten wrote: > You should use 'lib' instead of 'plugins' for 0.25.x clients. > > Otherwise that's exactly how I have things laid out. > > > On Mon, Mar 22, 2010 at 4:24 PM, Allan Marcu

Re: [Puppet Users] Is there an approach to pre and post notify for changes to a file?

2010-03-22 Thread Dan Bode
On Mon, Mar 22, 2010 at 5:32 PM, chuck clark wrote: > I'm using puppet 0.25.2 in a RHEL5 environment and Glassfish is one of the > resources under management. Managing the Glassfish configuration is proving > troublesome. > > I have a glassfish module with a glassfish class which has the followi

Re: [Puppet Users] Is anyone managing Glassfish configuration with puppet?

2010-03-22 Thread chuck clark
> > I think a custom resource to drive asadmin is probably the right way to go. > What version are you using? > As of Glassfish v3 there's a good REST API ( v3asadmin is essentially > a http client). > See the article here: > > http://blogs.sun.com/aquatic/entry/glassfish_rest_interface_for_managem

[Puppet Users] Is there an approach to pre and post notify for changes to a file?

2010-03-22 Thread chuck clark
I'm using puppet 0.25.2 in a RHEL5 environment and Glassfish is one of the resources under management. Managing the Glassfish configuration is proving troublesome. I have a glassfish module with a glassfish class which has the following file resource definition: "/opt/glassfish/domains/pulse

[Puppet Users] large files hierarchy - per module or monolithic?

2010-03-22 Thread John Warburton
Hi All I've done a small scale puppet (130 servers) implementation per the book and had my files hierarchy under each module: modules/module1/files modules/module2/files modules/module3/files etc This worked fine because we only had a small number of people working on the project

Re: [Puppet Users] Directory structure?

2010-03-22 Thread Nigel Kersten
You should use 'lib' instead of 'plugins' for 0.25.x clients. Otherwise that's exactly how I have things laid out. On Mon, Mar 22, 2010 at 4:24 PM, Allan Marcus wrote: > hello, > > Is this directory structure for modules still recommended, or is there a > better way? > > http://projects.reduct

[Puppet Users] Directory structure?

2010-03-22 Thread Allan Marcus
hello, Is this directory structure for modules still recommended, or is there a better way? http://projects.reductivelabs.com/projects/puppet/wiki/Module_Organisation We are thinking of having a directory for each environment, then broken down as recommended here: http://projects.reductivelab

[Puppet Users] Configuration retrieval timed out after log rotation

2010-03-22 Thread Lisa
Hello all, On several servers, I get the following outputs in the syslog files, especially after log rotation : puppetd: Reopening log files puppetd: Starting Puppet client version 0.24.5 puppetd: Configuration retrieval timed out puppetd: Starting catalog run Is there a link between log rotatio

[Puppet Users] Source and Template file defaults

2010-03-22 Thread Douglas Garstang
Can someone tell me why this works: file { "/etc/sudoers": source => [ "puppet://$server/security/etc/sudoers:${fqdn}", "puppet://$server/security/etc/sudoers" ], owner => root, group => root, mode => 440, } but, this doe

Re: [Puppet Users] Behavior of Environments -- Bug?

2010-03-22 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 23/03/10 7:26 AM, Paul Lathrop wrote: > Scott, > > I know it defaults to production if a environment is not specified. > However, that's not the case here. The client *is* specifying an > environment, the server doesn't know about that environment.

[Puppet Users] Use IP of one class in other

2010-03-22 Thread DieterVDW
Hi, I'd like to hear some idea's on how to do the following with puppet: Suppose I have a node that implements a certain server class, eg. nfs- server, and some other nodes that implement a class nfs-client. I'd like all nodes that implement nfs-client to contain a reference to the node that impl

Re: [Puppet Users] Behavior of Environments -- Bug?

2010-03-22 Thread Nigel Kersten
On Mon, Mar 22, 2010 at 2:24 PM, Julian Simpson wrote: > I'd expect it to fail in such a way that the puppet run could not happen. > Anything else could have worse consequences. ++ > J. > > On 22 March 2010 20:26, Paul Lathrop wrote: >> >> Scott, >> >> I know it defaults to production if a env

Re: [Puppet Users] Behavior of Environments -- Bug?

2010-03-22 Thread Julian Simpson
I'd expect it to fail in such a way that the puppet run could not happen. Anything else could have worse consequences. J. On 22 March 2010 20:26, Paul Lathrop wrote: > Scott, > > I know it defaults to production if a environment is not specified. > However, that's not the case here. The client

Re: [Puppet Users] Templates : about puppet syntax

2010-03-22 Thread Michael DeHaan
Modules can't currently take parameters (I think you intend to really pass parameters to a class, not a module, right?); they can however make use of variables, whether set by an external nodes classifier or in site.pp. Parameterized classes, however, are coming soon and would do what you want.

Re: [Puppet Users] Behavior of Environments -- Bug?

2010-03-22 Thread Paul Lathrop
Scott, I know it defaults to production if a environment is not specified. However, that's not the case here. The client *is* specifying an environment, the server doesn't know about that environment. I think this is different than what you are describing - if the client does not specify an enviro

[Puppet Users] Templates : about puppet syntax

2010-03-22 Thread Smain Kahlouch
Hi, I just have a question about puppet syntax. I would like to give a parameter to my ldap module. In the node definition i would like to specify the domain. Example : ldapnode { include ldap::master::domain("domain.tld") } And in the manifest : define ldap::master::domain() {...} but i don't

Re: [Puppet Users] certificates

2010-03-22 Thread Dan Bode
On Mon, Mar 22, 2010 at 11:39 AM, Michael DeHaan wrote: > > > On Mon, Mar 22, 2010 at 2:01 PM, Arnauld wrote: > >> Hi, >> >> It may be obvious but I don't understand what the 'ca/ca_*.pem' and >> the 'certs/ca.pem' files stand for :( >> It sounds a bit 'redundant' to me >> Someone has an expl

Re: [Puppet Users] Behavior of Environments -- Bug?

2010-03-22 Thread Scott Smith
On 3/22/10 10:27 AM, Paul Lathrop wrote: IMHO this is a bug, but I can see how it might be by design. Any comments? Should I file it? --Paul Don't know if it's a bug but... Yeah it defaults to "production" - you have to create an empty manifest for "production" in order to prevent Very Scary

Re: [Puppet Users] certificates

2010-03-22 Thread Michael DeHaan
On Mon, Mar 22, 2010 at 2:01 PM, Arnauld wrote: > Hi, > > It may be obvious but I don't understand what the 'ca/ca_*.pem' and > the 'certs/ca.pem' files stand for :( > It sounds a bit 'redundant' to me > Someone has an explanation ? > > Hi Arnauld, Have you seen http://projects.reductivelabs

Re: [Puppet Users] Behavior of Environments -- Bug?

2010-03-22 Thread Tony G.
Oh Ok, so what you are looking for is more like a feature to let you know that the environment "foo" does not exist. Does not sounds bad to me, if somebody uses tons of environments it will reduce errors or at least will be easier to find them. On Mon, Mar 22, 2010 at 11:14 AM, Paul Lathrop wrot

Re: [Puppet Users] Behavior of Environments -- Bug?

2010-03-22 Thread Paul Lathrop
Tony, Sure, I understand that, but if the client is asking for a specific environment that the puppetmaster doesn't know about, I feel like that warrants a warning at minimum, probably an error and a refusal to compile. Would be interested if anyone has a counter-argument. --Paul On Mon, Mar 22,

[Puppet Users] certificates

2010-03-22 Thread Arnauld
Hi, It may be obvious but I don't understand what the 'ca/ca_*.pem' and the 'certs/ca.pem' files stand for :( It sounds a bit 'redundant' to me Someone has an explanation ? Best regards, -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To

Re: [Puppet Users] Behavior of Environments -- Bug?

2010-03-22 Thread Tony G.
Hi Paul, How does your config file look like in the main section? There is a default one if no environment is defined, e.g. environments = production,testing,development* manifest = /opt/puppet/production/site.pp <-- These are the modulepath = /opt/puppet/production/modules <-- default

[Puppet Users] Behavior of Environments -- Bug?

2010-03-22 Thread Paul Lathrop
Over the weekend we noticed an interesting and unexpected behavior with environments. I made a change to the way our puppet.conf file is generated and distributed, which led to an environment which had been defined on a puppetmaster being no longer defined in puppet.conf. We'll call this the "core"

[Puppet Users] puppet booth at openexpo.ch

2010-03-22 Thread Marc Fournier
Hello, This short notice to inform folks from Switzerland & vicinity that we will be holding a small puppet booth at OpenExpo, which takes place in Bern next wednesday an thursday. If you happen to be around, come and find us at the open-source village[¹] ! Cheers, the guys behind spug.ch [¹] h

[Puppet Users] Problem with Variables and Class Inheritance

2010-03-22 Thread Farooque M Haris
I am trying to create set of users from different set of lists in the following way; *Secondary Classes* - class /*DevelopersManager */#Secondary Class 1 { *$fileList* = "developerUserlist.txt" *$group* = "users" *$home *= "/home" include StaffManager } class /*Admi

[Puppet Users] custom type/provider load error

2010-03-22 Thread Frederik Wagner
Hi .*, with the first puppet run on a freshly installed system all custom types and providers a synced. As you can see from the output for some reason puppet tries to load the providers before the types and therefore the custom provider loads throw an error. It looks like the load happens alphabet