I think it's fairly common to put something like this in your site.pp if you like separate node files which I prefer.
import "nodes/*.pp" You can also use regex in your node files to further simplify though if you're doing a lot of logic here you should probably start thinking about an ENC. fe.pp node /^fe\d+(.*)/ inherits basenode { case $::fqdn { /(.*)stage|demo(.*)/: { include hostgroup::frontend::stage } default: { include hostgroup::frontend::prod } } } Ramin On Nov 16, 6:32 am, Hugo Deprez <hugo.dep...@gmail.com> wrote: > Dear community, > > I would like to know if it is possible to use different files for the nodes.pp > > Can we use in nodes.pp the following syntax : > > include nodes2.pp > > nodes2.pp could contain host definition eactly as nodes.pp but for a > particular platform. > > This would allow more readable configuration file. > > I didn't find anything on the internet. > > Thank you. > > hugo -- 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.