October 2011
Intermediate to advanced
300 pages
5h 51m
English
It's a brave (or foolish) sysadmin who puts all her servers in one basket. Let's say you have dedicated servers hosted with three different providers: WreckSpace, GoDodgy, and VerySlow. They have different data centers and geographical locations, so you will need to make small modifications to your config for servers hosted with each provider. You have several different types of servers, but they are distributed randomly across the three providers.
One way to implement this in Puppet would be to set a variable in the node definition that tells the node where it is:
node webserver127 { $provider = "VerySlow" include admin::basics include admin::ssh include admin::ntp include puppet::client include backup::client include webserver ...Read now
Unlock full access