Skip to content

Latest commit

 

History

History
149 lines (82 loc) · 4.76 KB

REFERENCE.md

File metadata and controls

149 lines (82 loc) · 4.76 KB

Reference

Table of Contents

Classes

  • foreman_network: Configure network interfaces, routes and resolv.conf from foreman ENC node parametes

Defined types

Classes

foreman_network

Configure network interfaces, routes and resolv.conf from foreman ENC node parametes

Parameters

The following parameters are available in the foreman_network class:

debug

Data type: Boolean

Turn on debug mode

foreman_interfaces

Data type: Array

ENC node parameter with key foreman_interfaces injected by foreman

Default value: $::foreman_interfaces

foreman_searchpath

Data type: Array

ENC node parameter with key domainname injected by foreman

Default value: [$::domainname]

manage_network_interface_restart

Data type: Boolean

True means the network interface will be configured (if down & up) immediately on change

manage_if_from_facts_only

Data type: Boolean

If true then only interfaces will be managed that exists in $facts['networking']['interfaces']

manage_resolv_conf

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.

nameservers

Data type: Array

List of nameservers which will be either exclusive used or merged. Depends on nameservers_merge

nameservers_merge

Data type: Boolean

If true merges the entries the foreman dns servers with nameservers. if false then only use nameserver

resolv_conf_path

Data type: Stdlib::Absolutepath

The path of the resolv.conf. For docker accaptance test this could be modified

resolver_options

Data type: Array

ENC node parameter with key resolver_options injected by foreman

route_overrides

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.

searchpath

Data type: Array

Search list in resolv.conf. if searchpath_merge is true the array will me merged with foreman_searchpath

searchpath_merge

Data type: Boolean

If true then merge the entries the foreman_searchpath with searchpath. if false then only use searchpath from foreman

Defined types

foreman_network::network_restart

Apply configuration changes for a network interface

Parameters

The following parameters are available in the foreman_network::network_restart defined type:

interface

Data type: String

The network interface identifier eg. eth0

manage_network_interface_restart

Data type: Boolean

if true the network interface will be restarted

Default value: $foreman_network::manage_network_interface_restart