Skip to content

Commit

Permalink
Merge pull request #3891 from mtnbikenc/refactor-docker
Browse files Browse the repository at this point in the history
Merged by openshift-bot
  • Loading branch information
OpenShift Bot authored Apr 12, 2017
2 parents ff88247 + b4c2a75 commit ba32a08
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 13 deletions.

This file was deleted.

11 changes: 1 addition & 10 deletions playbooks/byo/openshift-cluster/upgrades/docker/upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,4 @@
tasks:
- include_vars: ../../cluster_hosts.yml

- include: ../../../../common/openshift-cluster/evaluate_groups.yml
vars:
# Do not allow adding hosts during upgrade.
g_new_master_hosts: []
g_new_node_hosts: []
openshift_cluster_id: "{{ cluster_id | default('default') }}"

- include: ../../../../common/openshift-cluster/upgrades/initialize_nodes_to_upgrade.yml

- include: docker_upgrade.yml
- include: ../../../../common/openshift-cluster/upgrades/docker/docker_upgrade.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
---
- include: ../../evaluate_groups.yml
vars:
# Do not allow adding hosts during upgrade.
g_new_master_hosts: []
g_new_node_hosts: []
openshift_cluster_id: "{{ cluster_id | default('default') }}"

- include: ../initialize_nodes_to_upgrade.yml

- name: Check for appropriate Docker versions
hosts: oo_masters_to_config:oo_nodes_to_upgrade:oo_etcd_to_config
roles:
Expand All @@ -11,7 +20,7 @@
msg: Cannot upgrade Docker on Atomic operating systems.
when: openshift.common.is_atomic | bool

- include: ../../../../common/openshift-cluster/upgrades/docker/upgrade_check.yml
- include: upgrade_check.yml
when: docker_upgrade is not defined or docker_upgrade | bool


Expand Down Expand Up @@ -47,7 +56,7 @@
delegate_to: "{{ groups.oo_first_master.0 }}"
when: l_docker_upgrade is defined and l_docker_upgrade | bool and inventory_hostname in groups.oo_nodes_to_upgrade

- include: ../../../../common/openshift-cluster/upgrades/docker/upgrade.yml
- include: upgrade.yml
when: l_docker_upgrade is defined and l_docker_upgrade | bool

- name: Set node schedulability
Expand Down

0 comments on commit ba32a08

Please sign in to comment.