diff options
| author | Brenton Leanhardt <bleanhar@redhat.com> | 2016-03-26 22:07:09 -0400 | 
|---|---|---|
| committer | Brenton Leanhardt <bleanhar@redhat.com> | 2016-03-29 09:52:00 -0400 | 
| commit | d4da502b9f332a6e4ec5a3b757dd8bf352990ec8 (patch) | |
| tree | a9c0fb0b76c0a1272376e3e2b7e737bb69237f72 /playbooks/common/openshift-cluster/upgrades | |
| parent | 1e53057c40fcc6648e4c69d83d0cebc33789a893 (diff) | |
| download | openshift-d4da502b9f332a6e4ec5a3b757dd8bf352990ec8.tar.gz openshift-d4da502b9f332a6e4ec5a3b757dd8bf352990ec8.tar.bz2 openshift-d4da502b9f332a6e4ec5a3b757dd8bf352990ec8.tar.xz openshift-d4da502b9f332a6e4ec5a3b757dd8bf352990ec8.zip | |
Workaround for authenticated registries
Currently there's no good way to install from a registry that requires
authentication.  This applies both to RPM and containerized installs:
https://bugzilla.redhat.com/show_bug.cgi?id=1316341
The workaround is to 'docker login' as root and then have ansible pull the
images to the image cache.
Diffstat (limited to 'playbooks/common/openshift-cluster/upgrades')
| -rw-r--r-- | playbooks/common/openshift-cluster/upgrades/v3_1_to_v3_2/upgrade.yml | 29 | 
1 files changed, 29 insertions, 0 deletions
| diff --git a/playbooks/common/openshift-cluster/upgrades/v3_1_to_v3_2/upgrade.yml b/playbooks/common/openshift-cluster/upgrades/v3_1_to_v3_2/upgrade.yml index 13d234435..e6d7ae05b 100644 --- a/playbooks/common/openshift-cluster/upgrades/v3_1_to_v3_2/upgrade.yml +++ b/playbooks/common/openshift-cluster/upgrades/v3_1_to_v3_2/upgrade.yml @@ -1,4 +1,33 @@  --- +# This is a workaround for authenticated registries +- name: Download new images +  hosts: oo_nodes_to_config +  roles: +  - openshift_facts +  tasks: +  - name: Pull Images +    command: > +      docker pull {{ item }}:v{{ g_new_version }} +    with_items: +    - "{{ openshift.node.node_image }}" +    - "{{ openshift.node.ovs_image }}" +    - "{{ openshift.common.pod_image }}" +    - "{{ openshift.common.router_image }}" +    - "{{ openshift.common.registry_image }}" +    - "{{ openshift.common.deployer_image }}" + +# This is a workaround for authenticated registries +- name: Download new images +  hosts: oo_masters_to_config +  roles: +  - openshift_facts +  tasks: +  - name: Pull Images +    command: > +      docker pull {{ item }}:v{{ g_new_version }} +    with_items: +    - "{{ openshift.master.master_image }}" +  ###############################################################################  # The restart playbook should be run after this playbook completes.  ############################################################################### | 
