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 file $fqdn.pp I place the definitions for a node.

Are there more people using this kind of approach?


---
Martin


2011/6/21 Carles Amigó <carles.am...@softonic.com>

> 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 with this approach is when creating new files,
> puppetmaster takes a while to "see" them.
>
>
> El 20/06/2011 5:25, flex escribió:
>
>  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
>> nodes easily or should i change all the defines to classes and using
>> external nodes?
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users+unsubscribe@**
> googlegroups.com <puppet-users%2bunsubscr...@googlegroups.com>.
> For more options, visit this group at http://groups.google.com/**
> group/puppet-users?hl=en<http://groups.google.com/group/puppet-users?hl=en>
> .
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to