Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding the two options to Ipv4 to allow PXE server configuration #146

Merged
merged 6 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions plugins/modules/nios_host_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
)

Expand Down
2 changes: 2 additions & 0 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down