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

Add reboot host parameters to infra/roles/hosts #231

Merged
merged 3 commits into from
Mar 15, 2021
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 2 additions & 0 deletions roles/infra/roles/hosts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ The `hosts` list can contain the following parameters:
| timeout | 1200 | Maximum wait time for the host to be in an UP state. |
| poll_interval | 20 | Polling interval to check the host status. |
| hosted_engine | UNDEF | Specifies whether to 'deploy' or 'undeploy' hosted-engine to node. |
| reboot_added_host_after_installation | UNDEF | If true reboot host after successful installation. |
roniezr marked this conversation as resolved.
Show resolved Hide resolved
| reboot_added_host_after_upgrade | UNDEF | If true reboot host after successful upgrade. |
roniezr marked this conversation as resolved.
Show resolved Hide resolved

Example Playbook
----------------
Expand Down
2 changes: 2 additions & 0 deletions roles/infra/roles/hosts/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
timeout: "{{ item.timeout | default(ovirt_hosts_add_timeout) }}"
poll_interval: "{{ item.poll_interval | default(20) }}"
hosted_engine: "{{ item.hosted_engine | default(omit) }}"
reboot_after_installation: "{{ item.reboot_added_host_after_installation | default(omit) }}"
reboot_after_upgrade: "{{ item.reboot_added_host_after_upgrade | default(omit) }}"
with_items: "{{ ovirt_infra_hosts }}"
loop_control:
label: "{{ item.name }}"
Expand Down