From b288ce373b05464f02db2e35643044f11bd5fd15 Mon Sep 17 00:00:00 2001 From: Mohamed Alibi Date: Tue, 3 Sep 2024 12:37:10 +0100 Subject: [PATCH] Adding the two options to Ipv4 to allow PXE server configuration (#146) * Adding the two options to Ipv4 to allow PXE server configuration --- plugins/modules/nios_host_record.py | 19 +++++++++++++++++++ tests/requirements.txt | 2 ++ tests/unit/requirements.txt | 2 ++ 3 files changed, 23 insertions(+) diff --git a/plugins/modules/nios_host_record.py b/plugins/modules/nios_host_record.py index 31f7f513..66f00549 100644 --- a/plugins/modules/nios_host_record.py +++ b/plugins/modules/nios_host_record.py @@ -92,6 +92,23 @@ required: false aliases: - add + use_nextserver: + version_added: "1.0.0" + description: + - Enable the use of the nextserver option + type: bool + required: false + aliases: + - use_pxe + nextserver: + version_added: "1.0.0" + description: + - Takes as input the name in FQDN format and/or IPv4 Address of + the next server that the host needs to boot from. + type: str + required: false + aliases: + - pxe remove: version_added: "1.0.0" description: @@ -328,6 +345,8 @@ def main(): configure_for_dhcp=dict(type='bool', required=False, aliases=['dhcp']), mac=dict(required=False), add=dict(type='bool', required=False), + use_nextserver=dict(type='bool', required=False, aliases=['use_pxe']), + nextserver=dict(required=False, aliases=['pxe']), remove=dict(type='bool', required=False) ) diff --git a/tests/requirements.txt b/tests/requirements.txt index 708b417d..f0ae0e93 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -1,3 +1,5 @@ +pip==20.3.4; python_version == '2.6' or python_version=='2.7' +pip==22.2.2; python_version > '3.0' infoblox-client pytest pytest-xdist diff --git a/tests/unit/requirements.txt b/tests/unit/requirements.txt index c64045e9..065df589 100644 --- a/tests/unit/requirements.txt +++ b/tests/unit/requirements.txt @@ -1,3 +1,5 @@ +pip==20.3.4; python_version == '2.6' or python_version=='2.7' +pip==22.2.2; python_version > '3.0' infoblox-client pytest pytest-forked