Skip to content

Commit

Permalink
Adding the two options to Ipv4 to allow PXE server configuration (#146)
Browse files Browse the repository at this point in the history
* Adding the two options to Ipv4 to allow PXE server configuration
  • Loading branch information
Medalibi authored Sep 3, 2024
1 parent b1623bc commit b288ce3
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
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-forked
Expand Down

0 comments on commit b288ce3

Please sign in to comment.