From 340a003f614d22ac498593ffbb46a6f3d6645d73 Mon Sep 17 00:00:00 2001 From: medalibi Date: Mon, 12 Sep 2022 13:02:58 +0100 Subject: [PATCH 1/5] Adding the two options to Ipv4 to allow PXE server configuration --- plugins/modules/nios_host_record.py | 19 +++++++++++++++++++ 1 file changed, 19 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) ) From f89098862cc3d63fc3fa74f33d16d2856d47b666 Mon Sep 17 00:00:00 2001 From: Mohamed Date: Tue, 11 Oct 2022 09:18:17 +0100 Subject: [PATCH 2/5] update coverage version tot he one required by the test --- tests/unit/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/requirements.txt b/tests/unit/requirements.txt index 0e1091bc..fc903c38 100644 --- a/tests/unit/requirements.txt +++ b/tests/unit/requirements.txt @@ -4,4 +4,4 @@ pytest-xdist mock pytest-mock pytest-cov -coverage==4.5.4 +coverage==6.5.0 From fa86ded40111e6da9a99de43f53b326afc5b612b Mon Sep 17 00:00:00 2001 From: Mohamed Date: Tue, 11 Oct 2022 11:19:31 +0100 Subject: [PATCH 3/5] Fixing Pypi versions depending on the Python version for coverage pkg --- tests/requirements.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/requirements.txt b/tests/requirements.txt index 7f835e9f..2b827e5c 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 From 45f86273bc4312112ad6e13577dbd01b6e191153 Mon Sep 17 00:00:00 2001 From: Mohamed Date: Tue, 11 Oct 2022 11:20:19 +0100 Subject: [PATCH 4/5] Fixing Pypi versions depending on the Python version for coverage pkg --- tests/unit/requirements.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/requirements.txt b/tests/unit/requirements.txt index fc903c38..6f9289fe 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-xdist From 4d622ca86e9b3b402e7bffd809ed216fa0c9cadb Mon Sep 17 00:00:00 2001 From: Mohamed Date: Tue, 11 Oct 2022 11:33:24 +0100 Subject: [PATCH 5/5] Changing Coverage version to something usable --- tests/unit/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/requirements.txt b/tests/unit/requirements.txt index 6f9289fe..a556478d 100644 --- a/tests/unit/requirements.txt +++ b/tests/unit/requirements.txt @@ -6,4 +6,4 @@ pytest-xdist mock pytest-mock pytest-cov -coverage==6.5.0 +coverage==4.5.4