Puppet module to convert Foreman ENC network interface data into values that can be passed into create_resources function.
This following example uses the razorsedge/network module.
Here the value for all interfaces reported by Foreman are given an ensure
value of up
and a mtu
of 1500
.
$static_interface_defaults = {
'ensure' => 'up',
'mtu' => '1500',
}
$static_interfaces = foreman_static_interfaces()
create_resources('network::if::static', $static_interfaces, $static_interface_defaults)