-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4217 from ingvagabund/move-etcd-upgrade-code-into…
…-role Move etcd upgrade code into role
- Loading branch information
Showing
22 changed files
with
270 additions
and
198 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
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
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
23 changes: 0 additions & 23 deletions
23
playbooks/common/openshift-cluster/upgrades/etcd/fedora_tasks.yml
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
20 changes: 0 additions & 20 deletions
20
playbooks/common/openshift-cluster/upgrades/etcd/rhel_tasks.yml
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
17 changes: 17 additions & 0 deletions
17
playbooks/common/openshift-cluster/upgrades/etcd/upgrade_image_members.yml
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,17 @@ | ||
--- | ||
# INPUT etcd_upgrade_version | ||
# INPUT etcd_container_version | ||
# INPUT openshift.common.is_containerized | ||
- name: Upgrade containerized hosts to {{ etcd_upgrade_version }} | ||
hosts: oo_etcd_hosts_to_upgrade | ||
serial: 1 | ||
roles: | ||
- role: etcd_upgrade | ||
r_etcd_upgrade_action: upgrade | ||
r_etcd_upgrade_mechanism: image | ||
r_etcd_upgrade_version: "{{ etcd_upgrade_version }}" | ||
r_etcd_common_etcd_runtime: "{{ openshift.common.etcd_runtime }}" | ||
etcd_peer: "{{ openshift.common.hostname }}" | ||
when: | ||
- etcd_container_version | default('99') | version_compare(etcd_upgrade_version,'<') | ||
- openshift.common.is_containerized | bool |
18 changes: 18 additions & 0 deletions
18
playbooks/common/openshift-cluster/upgrades/etcd/upgrade_rpm_members.yml
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,18 @@ | ||
--- | ||
# INPUT etcd_upgrade_version | ||
# INPUT etcd_rpm_version | ||
# INPUT openshift.common.is_containerized | ||
- name: Upgrade to {{ etcd_upgrade_version }} | ||
hosts: oo_etcd_hosts_to_upgrade | ||
serial: 1 | ||
roles: | ||
- role: etcd_upgrade | ||
r_etcd_upgrade_action: upgrade | ||
r_etcd_upgrade_mechanism: rpm | ||
r_etcd_upgrade_version: "{{ etcd_upgrade_version }}" | ||
r_etcd_common_etcd_runtime: "host" | ||
etcd_peer: "{{ openshift.common.hostname }}" | ||
when: | ||
- etcd_rpm_version.stdout | default('99') | version_compare(etcd_upgrade_version, '<') | ||
- ansible_distribution == 'RedHat' | ||
- not openshift.common.is_containerized | bool |
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
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
Oops, something went wrong.