Puppet Nodes

58 views
Skip to first unread message

Dominic

unread,
Nov 10, 2014, 2:18:07 PM11/10/14
to puppet...@googlegroups.com
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  

 


Dominic

unread,
Nov 10, 2014, 4:18:51 PM11/10/14
to puppet...@googlegroups.com

OK Think I found my own answer


node /^lab1\d+$/ { include common }

node /^lab2\d+$/ { include somthingelse }

Gavin Williams

unread,
Nov 11, 2014, 3:48:03 AM11/11/14
to puppet...@googlegroups.com
If you want something a bit smarter, you could look at The Foreman [1]. 

Cheers
Gavin

Dominic

unread,
Nov 11, 2014, 12:58:02 PM11/11/14
to puppet...@googlegroups.com
I did look at that..

But I could not see if the group structure was a more traditional layout. Might bring it up on a VM to have a look.

However the snippet of regex allowed me to pull all the modules together and deploy them in a manor that I want. Its a fantastically powerful tool.

I wish the grouping was nicer.

Felix Frank

unread,
Nov 13, 2014, 5:58:55 PM11/13/14
to puppet...@googlegroups.com
On 11/11/2014 06:58 PM, Dominic wrote:
>
> I wish the grouping was nicer.

Hi,

would you care to elaborate on that? If we are missing features, we
should at least keep them around as tickets.

Thanks,
Felix
Reply all
Reply to author
Forward
0 new messages