host type removing aliases

Christian G. Warden
Fri, 01 Sep 2006 17:03:08 -0000

When using the host type in a manifest, aliases for hosts not managed by
puppet are removed.

# cat /etc/hosts
192.168.1.1     host1.example.com host1
# cat /tmp/host.pp
host {
       "host2.example.com": ip => "192.168.1.2", alias
=> host2, ensure => present;
}
# puppet /tmp/host.pp
dnsdomainname: Unknown host
notice: //host=host2.example.com/ensure: created
# cat /etc/hosts
# HEADER: This file was autogenerated at Fri Sep 01 09:58:56 PDT 2006
# HEADER: by puppet.  While it can still be managed manually, it
# HEADER: is definitely not recommended.
192.168.1.1     host1.example.com
192.168.1.2     host2.example.com       host2


The host1 alias has disappeared.

Christian