
Make sure that hosts can always resolve each other's names. For the moment, this simply uses exported /etc/hosts entries. Less naive implementations could just export the address/hostname tuples and feed them into a DNS server configuration.
17 lines
293 B
Puppet
17 lines
293 B
Puppet
class kickstack::nameresolution inherits kickstack {
|
|
|
|
case $::kickstack::name_resolution {
|
|
'hosts': {
|
|
|
|
@@host { "$hostname":
|
|
ip => $ipaddress,
|
|
comment => "Managed by Puppet",
|
|
tag => "hostname"
|
|
}
|
|
|
|
Host <<| tag == "hostname" |>> { }
|
|
}
|
|
}
|
|
}
|
|
|