| For all version of Puppet that I am aware of, the host resource type does not support a stock configuration of Linux. In particular, both RHEL/CentOS and Debian/Ubuntu flavors come with IPv6 enabled by default. This results in two stock entries in /etc/hosts that resemble this:
127.0.0.1 localhost |
::1 localhost ip6-localhost ip6-loopback |
As it stands today, running "puppet resource host" will not return both of these entries - it will only return the IPv4 variant. Additionally, it seems to be impossible to precisely recreate this pair of entries, or any other entry for which a name has both an IPv4 and an IPv6 address. |