Re: [Puppet Users] Multiple nodes.pp files

2011-11-17 Thread Jo Rhett
On Nov 16, 2011, at 11:08 AM, Ramin K wrote: > 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(.

Re: [Puppet Users] Multiple nodes.pp files

2011-11-16 Thread Dan White
- Arnau Bria wrote: > On Wed, 16 Nov 2011 15:32:41 +0100 > Hugo Deprez wrote: > > > Dear community, > Hi Hugo, > > > 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 > > we h

Re: [Puppet Users] Multiple nodes.pp files

2011-11-16 Thread Arnau Bria
On Wed, 16 Nov 2011 15:32:41 +0100 Hugo Deprez wrote: > Dear community, Hi Hugo, > 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 we have several node files but use import. [...] > Than

[Puppet Users] Multiple nodes.pp files

2011-11-16 Thread Hugo Deprez
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