Skip to content

Commit

Permalink
Create docker cert dir for our registry
Browse files Browse the repository at this point in the history
  • Loading branch information
sdodson committed Apr 17, 2018
1 parent b3fbf9f commit 508dc8e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions roles/openshift_node/tasks/upgrade/config_changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,23 @@
path: "{{ openshift.common.config_base }}/node/pods"
state: directory
mode: 0755
- name: Check for client-ca.crt
stat:
path: "{{ openshift_node_config_dir }}/client-ca.crt"
register: client_ca_crt

- name: Ensure docker-registry directory exists
file:
state: directory
path: "/etc/docker/certs.d/docker-registry.default.svc:5000"

- name: Update the docker-registry CA symlink
file:
src: "{{ openshift_node_config_dir }}/client-ca.crt"
dest: "/etc/docker/certs.d/docker-registry.default.svc:5000/node-client-ca.crt"
state: link
force: yes
when: client_ca_crt.stat.exists

- name: Update node-config for static pods
yedit:
Expand Down

0 comments on commit 508dc8e

Please sign in to comment.