summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node_upgrade
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-03-21 16:52:50 -0400
committerScott Dodson <sdodson@redhat.com>2017-03-21 16:56:11 -0400
commitdaf9d723a7b7f8d09706558eb67b7ed5ad6519f6 (patch)
tree097fa77703ed0f508e1a1c7fab8809419cdf6325 /roles/openshift_node_upgrade
parent03ae7f76debd812264b6831a6f3314825b251abe (diff)
downloadopenshift-daf9d723a7b7f8d09706558eb67b7ed5ad6519f6.tar.gz
openshift-daf9d723a7b7f8d09706558eb67b7ed5ad6519f6.tar.bz2
openshift-daf9d723a7b7f8d09706558eb67b7ed5ad6519f6.tar.xz
openshift-daf9d723a7b7f8d09706558eb67b7ed5ad6519f6.zip
Update imageConfig.format on upgrades to match oreg_url
Diffstat (limited to 'roles/openshift_node_upgrade')
-rw-r--r--roles/openshift_node_upgrade/tasks/main.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/openshift_node_upgrade/tasks/main.yml b/roles/openshift_node_upgrade/tasks/main.yml
index 2f79931df..002bbc39b 100644
--- a/roles/openshift_node_upgrade/tasks/main.yml
+++ b/roles/openshift_node_upgrade/tasks/main.yml
@@ -69,6 +69,13 @@
# Mandatory Docker restart, ensure all containerized services are running:
- include: docker/restart.yml
+- name: Update oreg value
+ yedit:
+ src: "{{ openshift.common.config_base }}/node/node-config.yaml"
+ key: 'imageConfig.format'
+ value: "{{ oreg_url }}"
+ when: oreg_url is defined
+
- name: Restart rpm node service
service:
name: "{{ openshift.common.service_type }}-node"