From 35e52819020fbf6925bbc7b43c9a5ca40e3eb6a5 Mon Sep 17 00:00:00 2001 From: Jason DeTiberus Date: Wed, 11 Nov 2015 15:27:57 -0500 Subject: Fix update error for templates that didn't previously exist --- .../common/openshift-cluster/upgrades/v3_0_to_v3_1/upgrade.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'playbooks') diff --git a/playbooks/common/openshift-cluster/upgrades/v3_0_to_v3_1/upgrade.yml b/playbooks/common/openshift-cluster/upgrades/v3_0_to_v3_1/upgrade.yml index 1cd7327cb..78797f8b8 100644 --- a/playbooks/common/openshift-cluster/upgrades/v3_0_to_v3_1/upgrade.yml +++ b/playbooks/common/openshift-cluster/upgrades/v3_0_to_v3_1/upgrade.yml @@ -363,13 +363,20 @@ - name: Upgrade default router and default registry hosts: oo_first_master vars: - openshift_examples_import_command: "update" openshift_deployment_type: "{{ deployment_type }}" registry_image: "{{ openshift.master.registry_url | replace( '${component}', 'docker-registry' ) | replace ( '${version}', 'v' + g_new_version ) }}" router_image: "{{ openshift.master.registry_url | replace( '${component}', 'haproxy-router' ) | replace ( '${version}', 'v' + g_new_version ) }}" oc_cmd: "{{ openshift.common.client_binary }} --config={{ openshift.common.config_base }}/master/admin.kubeconfig" roles: + # Create the new templates shipped in 3.1, existing templates are left + # unmodified. This prevents the subsequent role definition for + # openshift_examples from failing when trying to replace templates that do + # not already exist. We could have potentially done a replace --force to + # create and update in one step. - openshift_examples + # Update the existing templates + - role: openshift_examples + openshift_examples_import_command: replace pre_tasks: - name: Check for default router command: > -- cgit v1.2.3