kickstack/manifests/nameresolution.pp
Florian Haas 3cc5e2e928 Add a name resolution facility for hostnames
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.
2013-07-10 21:11:19 +02:00

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" |>> { }
}
}
}