-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
acb0b5e
commit 8f7dfb4
Showing
5 changed files
with
62 additions
and
45 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
rhdata1 | ||
rhdata2 | ||
rhdata3 | ||
|
||
[rhvm] | ||
rhvm-2940.dota-lab.iad.redhat.com |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
rhvuser: admin@internal | ||
rhvpass: redhat1 | ||
rhvurl: https://rhvm-2940.dota-lab.iad.redhat.com/ovirt-engine/api | ||
engine_url: https://rhvm-2940.dota-lab.iad.redhat.com/ovirt-engine/api | ||
engine_user: admin@internal | ||
engine_password: redhat1 | ||
engine_cafile: /etc/pki/ovirt-engine/ca.pem | ||
|
||
# Define John's old variable names | ||
rhvurl: "{{ engine_url }}" | ||
rhvuser: "{{ engine_user }}" | ||
rhvpass: "{{ engine_password }}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# sudo ansible-galaxy install oVirt.cluster-upgrade -p /etc/ansible/roles/ | ||
# https://github.com/oVirt/ovirt-ansible-cluster-upgrade | ||
|
||
--- | ||
- name: Upgrade RHV Hosts | ||
hosts: rhvm | ||
vars_files: | ||
- "{{ ansible_domain }}/rhvm-vault.yml" | ||
vars: | ||
cluster_name: Default | ||
check_upgrade: true | ||
reboot_after_upgrade: true | ||
upgrade_timeout: 1200 | ||
host_names: | ||
- rhclient2 | ||
# host_statuses: | ||
# - up | ||
# - installing | ||
# - install_failed | ||
# - non_operational | ||
# stopped_vms: | ||
# - gluster-win10 | ||
|
||
roles: | ||
- oVirt.cluster-upgrade |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
- hosts: rhvm | ||
gather_facts: yes | ||
vars_files: | ||
- "{{ ansible_domain }}/rhvm-vault.yml" | ||
|
||
tasks: | ||
- name: Login to RHV | ||
ovirt_auth: | ||
url: "{{ rhvurl }}" | ||
insecure: yes | ||
username: "{{ rhvuser }}" | ||
password: "{{ rhvpass }}" | ||
|
||
- ovirt_hosts_facts: | ||
#pattern: name=host* and datacenter=west | ||
pattern: '*' | ||
auth: "{{ ovirt_auth }}" | ||
- debug: | ||
var: ovirt_hosts | ||
|
||
- name: Cleanup RHV auth token | ||
ovirt_auth: | ||
ovirt_auth: "{{ ovirt_auth }}" | ||
state: absent |