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
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
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
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
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
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
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
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
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:
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
10 matches
Mail list logo