osp.edpm.edpm_os_net_config module – Execute os-net-config tool.

New in osp.edpm 1.0

Synopsis

  • Configure host network interfaces using a JSON config file format.

Requirements

The below requirements are needed on the host that executes this module.

  • os-net-config

Parameters

Parameter

Comments

cleanup

boolean

Cleanup unconfigured interfaces.

Choices:

  • false ← (default)

  • true

config_file

string

Path to the configuration file.

Default: "/etc/os-net-config/config.yaml"

debug

boolean

Print debug output.

Choices:

  • false ← (default)

  • true

detailed_exit_codes

boolean

If enabled an exit code of ‘2’ means that files were modified.

Choices:

  • false ← (default)

  • true

safe_defaults

boolean

If enabled, safe defaults (DHCP for all interfaces) will be applied in case of failing while applying the provided net config.

Choices:

  • false ← (default)

  • true

use_nmstate

boolean

If enabled, use nmstate and network manager for network configuration.

Choices:

  • false ← (default)

  • true

Examples

- name: Create network configs with defaults
  edpm_os_net_config:

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key

Description

rc

integer

Integer for the return code

Returned: always

stderr

string

The command standard error

Returned: always

stdout

string

The command standard output

Returned: always

Authors

  • OpenStack EDPM Contributors