Re: host type removing aliases

Luke Kanies
Fri, 01 Sep 2006 17:40:47 -0000

Christian G. Warden wrote:
> 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.

Can you please submit that as a bug at
http://reductivelabs.com/cgi-bin/puppet.cgi?

Thanks.

--
You can''t have everything.  Where would you put it?
                 -- Stephen Wright
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com