Hi All,
Does anyone use example42-network with Hiera? I'm trying to find an example in Hiera that configures that module.
So far I've tried, in <hostname>.yaml (Hiera works OK with hostname, environment, etc etc)
---
network::interfaces_hash:
eth1:
ipaddress: 1.2.3.4
netmask: 255.255.0.0
gateway: 1.2.3.1
Which I think should work, based on the Puppet example from the Forge module readme:
class { 'network': interfaces_hash => { 'eth0' => { enable_dhcp => true, },
'eth1' => { ipaddress => '10.42.42.50', netmask => '255.255.255.0', },
},
}
So, any pointers on where I'm going wrong?
Thanks in advance,
Anthony