-
Notifications
You must be signed in to change notification settings - Fork 61
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
Update DHCP Configuration role #172
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
titom73
added
type: documentation
Improvements or additions to documentation
state: accepted
Issue is part of the development roadmap
status: cherry_pick
Issue / PR shall be cherry pick
role: ztp_configuration
Issue related to ztp_configuration role
labels
Mar 25, 2020
titom73
changed the title
Fix documentation and role rename (#171)
Update DHCP Configuration role (#171)
Apr 3, 2020
titom73
changed the title
Update DHCP Configuration role (#171)
Update DHCP Configuration role
Apr 3, 2020
Add default vars and tasks to install dhcp package on a Centos/Red Hat system.
Idempotency validation:
playbook dhcp-installation.yml -i inventory-as73.yml
PLAY [Configure ZTP service on CloudVision] **********
TASK [dhcp_configuration : Install packages] **********
changed: [ztp_server]
TASK [dhcp_configuration : Generate DHCPd configuration file] **********
changed: [ztp_server]
TASK [dhcp_configuration : Check & activate DHCP service] **********
changed: [ztp_server]
PLAY RECAP **********
ztp_server : ok=3 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
playbook dhcp-installation.yml -i inventory-as73.yml
PLAY [Configure ZTP service on CloudVision] **********
TASK [dhcp_configuration : Install packages] **********
ok: [ztp_server]
TASK [dhcp_configuration : Generate DHCPd configuration file] **********
ok: [ztp_server]
TASK [dhcp_configuration : Check & activate DHCP service] **********
ok: [ztp_server]
PLAY RECAP **********
ztp_server : ok=3 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 |
Refactor Role to to support installation and configuration tasks to support Centos and Ubuntu systems. CVP is still supported for configuration tasks in a lab purpose.
Multi OS support validation:playbook dhcp-installation.yml -i inventory-as73.yml
PLAY [Configure ZTP service on CloudVision] *******
TASK [Gathering Facts] *******
ok: [dhcp_ubuntu_server]
ok: [dhcp_centos_server]
TASK [Inform about ansible_distribution] *******
ok: [dhcp_centos_server] =>
msg: CentOS
ok: [dhcp_ubuntu_server] =>
msg: Ubuntu
TASK [dhcp_configuration : gather os specific variables for Centos / Red Hat OS] ********
ok: [dhcp_centos_server]
skipping: [dhcp_ubuntu_server]
TASK [dhcp_configuration : gather os specific variables for Debian / Ubuntu OS] *******
skipping: [dhcp_centos_server]
ok: [dhcp_ubuntu_server]
TASK [dhcp_configuration : Install packages] *******
ok: [dhcp_centos_server]
ok: [dhcp_ubuntu_server]
TASK [dhcp_configuration : Generate DHCPd configuration file] *******
ok: [dhcp_ubuntu_server]
ok: [dhcp_centos_server]
TASK [dhcp_configuration : Check & activate DHCP service] *******
changed: [dhcp_ubuntu_server]
ok: [dhcp_centos_server]
PLAY RECAP *******
dhcp_centos_server : ok=6 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0
dhcp_ubuntu_server : ok=6 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 |
Merged
titom73
added
status: testing
PR under testing
and removed
state: accepted
Issue is part of the development roadmap
labels
May 20, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
role: ztp_configuration
Issue related to ztp_configuration role
status: cherry_pick
Issue / PR shall be cherry pick
status: testing
PR under testing
type: documentation
Improvements or additions to documentation
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Types of changes
Related Issue(s)
#171
Proposed changes
ztp_configuration
todhcp_configuration
How to test
On a Cloud version of centos 7:
Playbook file
Inventory
Checklist:
make linting
andmake sanity-lint
).