Re: [Puppet Users] How to manage many nodes easily?

2011-06-22 Thread flex
These is another question, i have many defines which will apply an application to sepcified path, called as: application::add { app1: path = /var/app1 } by this i can apply app1 and app2 in node1, app3 and app4 in node2, etc. now, how do i switch this to a class? Need i create a seperate class

Re: [Puppet Users] How to manage many nodes easily?

2011-06-22 Thread Martin Alfke
On 06/23/2011 04:35 AM, flex wrote: These is another question, i have many defines which will apply an application to sepcified path, called as: application::add { app1: path = /var/app1 } by this i can apply app1 and app2 in node1, app3 and app4 in node2, etc. now, how do i switch this

Re: [Puppet Users] How to manage many nodes easily?

2011-06-21 Thread Carles Amigó
We had the same problem and we just separated each node (or group of nodes) in one file and then we load them using the following syntax: import nodes/*.pp You could also organize those files in subdirectories if you like so: import nodes/*/*.pp The only problem we've found

Re: [Puppet Users] How to manage many nodes easily?

2011-06-21 Thread Martin Willemsma
We use /etc/puppet/node-definitions/*.pp in site.pp similar to what Carles is saying. [node-definitions] is a git repo thats being synced on both puppermasters. This happens on every push to origin We use the 'default' node which does the baseline configuration based on a 'role' In a separate

Re: [Puppet Users] How to manage many nodes easily?

2011-06-21 Thread Chris Phillips
I would see a principle whereby nodes should not ever be defined within the manifest code at all. To me the manifests should be written to be very generic, and then use ENC's to modify their behaviour at a user level. There is still a lot of inconsistency within Puppet as to how device specific

Re: [Puppet Users] How to manage many nodes easily?

2011-06-20 Thread Ohad Levy
On Mon, Jun 20, 2011 at 6:25 AM, flex frostyn...@gmail.com wrote: We have many modules and many nodes, every node may use different module, so it's very unpleasant to modify the nodes.pp Then i saw the external node, but seems it only support class and we have many defines called in node.pp

Re: [Puppet Users] How to manage many nodes easily?

2011-06-20 Thread Ohad Levy
On Mon, Jun 20, 2011 at 10:45 AM, Ohad Levy ohadl...@gmail.com wrote: On Mon, Jun 20, 2011 at 6:25 AM, flex frostyn...@gmail.com wrote: We have many modules and many nodes, every node may use different module, so it's very unpleasant to modify the nodes.pp Then i saw the external node, but

Re: [Puppet Users] How to manage many nodes easily?

2011-06-20 Thread Ken Barber
Do you have a lot of boxes that perform the same function? You can use the regex node syntax: node /^db/ { include db } Or device some other way of extracting function out of the machine name. It might save you some time. Otherwise if your machines are fairly unique using ENC to configure

Re: [Puppet Users] How to manage many nodes easily?

2011-06-20 Thread flex
thanks Ohad and Ken, i am using foreman now, but only for logging reports, i think i should try to restructe our config and use external node with forman. 2011/6/20 Ken Barber k...@puppetlabs.com Do you have a lot of boxes that perform the same function? You can use the regex node syntax:

[Puppet Users] How to manage many nodes easily?

2011-06-19 Thread flex
We have many modules and many nodes, every node may use different module, so it's very unpleasant to modify the nodes.pp Then i saw the external node, but seems it only support class and we have many defines called in node.pp So here is my question: Is there another way for us to manage so many