Hello, New user to Puppet 

I am trying to see if Puppet can replace my Mac servers for managing 1200 
clients. Testing has gone well and I am very impressed with the functions 
and potential this platform can offer me.

However I have hit upon a sticking point.

I need to manage lots of machines in groupings. Can I do this by defining 
the name in 

site.pp

import "nodes/*.pp"

then in nodes/

nodes/*.pp ==> lab1.pp
nodes/*.pp ==> lab2.pp

so 

nodes/lab1.pp
nodes/lab2.pp

so all 30 machines with the name lab1_1.domain (lab1_2.domain etc..) only 
get the lab1.pp and machines called lab2.*.domain get the lab2.pp or is 
there a better way to deal with this?

Or would it be 

nodes/labs.pp

node 'lab1* ' {
notify {"this is a lab1 machine"}
}
node 'lab2* ' {
notify {"this is a lab2 machine"}
}


Struggling to get my head around automatically defining groups.

Thank you  

 


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/e513942a-86ca-4399-abc8-721d6d5ece88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to