Closed jacksgt closed 6 years ago
On Debian 9 Stretch nodes, the ipaddress_eth0 fact is not available, because the default network interface is eno1 instead of eth0.
ipaddress_eth0
eno1
eth0
vision11 $ facter ipaddress_eth0 vision11 $ facter ipaddress_eno1 10.55.63.181
This leads to problems with /etc/hosts configs and exporting the correct ip address to PuppetDB
/etc/hosts
https://github.com/vision-it/vision-default/blob/dec61e0a85f25299f0ee53a0492514d1bbad2c84/manifests/init.pp#L30
What about using the (more generic) ipaddress fact?
ipaddress
vision11.prd (int) :: ~ : facter ipaddress 10.55.63.181 vision01.prd (int) :: ~ : facter ipaddress 10.55.63.153
Sounds good
On Debian 9 Stretch nodes, the
ipaddress_eth0
fact is not available, because the default network interface iseno1
instead ofeth0
.This leads to problems with
/etc/hosts
configs and exporting the correct ip address to PuppetDBhttps://github.com/vision-it/vision-default/blob/dec61e0a85f25299f0ee53a0492514d1bbad2c84/manifests/init.pp#L30