Issue #12438 has been updated by Daniel Pittman. Description updated Status changed from Unreviewed to Duplicate
Part of the reason that the `host` resource doesn't model that is that you have entered the land of undefined behaviour: the hosts file doesn't actually support more than one line per host, and didn't originally model multi-homed machines or multiple addresses for other reasons. However, in #8940 there is some discussion about a different shortfall of the current model, which is that using the hostname as primary rather than the IP address, we end up with problems where you have both IPv4 and IPv6 records for a machine. If we made that change - make IP the name, not hostname - you would be able to model your situation. The platform behaviour would still be undefined, but you would get the same results you would making that change by hand, which seems to ultimately satisfy your request. We don't have an immediate plan to make that change, but we would probably take patches. Sorry I can't be more help, and we are very unlikely to change the current type to reflect this behaviour. ---------------------------------------- Bug #12438: host type does not understand multiple IP addresses https://projects.puppetlabs.com/issues/12438 Author: Stephen Gran Status: Duplicate Priority: Normal Assignee: Category: host Target version: Affected Puppet version: Keywords: host type Branch: Two things that currently can not be represented with the host type are: <pre> sgran@harris:~$ getent hosts google.com 173.194.67.99 google.com 173.194.67.104 google.com 173.194.67.103 google.com 173.194.67.106 google.com 173.194.67.105 google.com 173.194.67.147 google.com </pre> and ipv4/ipv multi-homed hosts. I understand that there is a lot of existing config that assumes that 'ip' is a single parameter, so the provider will have to do something like to_a.flatten before using the provided line as an array. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
