foreman_network
: Configure network interfaces, routes and resolv.conf from foreman ENC node parametes
foreman_network::network_restart
: Restart a network interface
Configure network interfaces, routes and resolv.conf from foreman ENC node parametes
The following parameters are available in the foreman_network
class:
debug
foreman_interfaces
foreman_searchpath
manage_network_interface_restart
manage_if_from_facts_only
manage_resolv_conf
nameservers
nameservers_merge
resolv_conf_path
resolver_options
route_overrides
searchpath
searchpath_merge
Data type: Boolean
Turn on debug mode
Data type: Array
ENC node parameter with key foreman_interfaces injected by foreman
Default value: $::foreman_interfaces
Data type: Array
ENC node parameter with key domainname injected by foreman
Default value: [$::domainname]
Data type: Boolean
True means the network interface will be configured (if down & up) immediately on change
Data type: Boolean
If true then only interfaces will be managed that exists in $facts['networking']['interfaces']
Data type: Boolean
Specify wether to manage resolve.conf or not. IMPORTANT: If DHCP is enabled on the primary interface resolv.conf will always be unmanged.
Data type: Array
List of nameservers which will be either exclusive used or merged. Depends on nameservers_merge
Data type: Boolean
If true merges the entries the foreman dns servers with nameservers. if false then only use nameserver
Data type: Stdlib::Absolutepath
The path of the resolv.conf. For docker accaptance test this could be modified
Data type: Array
ENC node parameter with key resolver_options injected by foreman
Data type: Hash
Overrides the default route provided by foreman and could also add additional static network routes. IMPORTANT: If DHCP enabled is enabled on the primary interface. All routes on the primary interface will be ignored.
Data type: Array
Search list in resolv.conf. if searchpath_merge is true the array will me merged with foreman_searchpath
Data type: Boolean
If true then merge the entries the foreman_searchpath with searchpath. if false then only use searchpath from foreman
Apply configuration changes for a network interface
The following parameters are available in the foreman_network::network_restart
defined type:
Data type: String
The network interface identifier eg. eth0
Data type: Boolean
if true the network interface will be restarted
Default value: $foreman_network::manage_network_interface_restart