ghoneycutt / puppet-module-hosts

Puppet module to manage host entries

Repository from Github https://github.comghoneycutt/puppet-module-hostsRepository from Github https://github.comghoneycutt/puppet-module-hosts

::ipaddress for fqdn entry

jjbc opened this issue · comments

commented

Hi,

In case there are two interfaces, fqdn entry is always associated to ::ipaddress facter, which is equivalent to eth0 IP.
But we could be interesed in setting fqdn entry to the second interface IP.

Is it possible to add a parameter for the fqdn ip?

Kind regards.
Juan José Blanco

Sure, I would accept a pull request with that. The code currently just sets $::ipaddress, so making that a parameter that defaults to $::ipaddress would be fine.