Skip to content

Commit

Permalink
Merge pull request #10048 from mtnbikenc/release-3.10-fix-ca-redeploy
Browse files Browse the repository at this point in the history
[release-3.10] Update openshift ca redeploy to use correct node client-ca
  • Loading branch information
openshift-merge-robot committed Sep 13, 2018
2 parents 1aae920 + 16bb963 commit 97b853b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions playbooks/openshift-master/private/redeploy-openshift-ca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -234,21 +234,21 @@
tasks:
- copy:
src: "{{ hostvars['localhost'].g_master_mktemp.stdout }}/ca-bundle.crt"
dest: "{{ openshift.common.config_base }}/node/ca.crt"
dest: "{{ openshift.common.config_base }}/node/client-ca.crt"
- name: Copy OpenShift CA to system CA trust
copy:
src: "{{ item.cert }}"
dest: "/etc/pki/ca-trust/source/anchors/{{ item.id }}-{{ item.cert | basename }}"
remote_src: yes
with_items:
- id: openshift
cert: "{{ openshift.common.config_base }}/node/ca.crt"
cert: "{{ openshift.common.config_base }}/node/client-ca.crt"
notify:
- update ca trust
- name: Update node client kubeconfig CA data
kubeclient_ca:
client_path: "{{ openshift.common.config_base }}/node/system:node:{{ openshift.common.hostname }}.kubeconfig"
ca_path: "{{ openshift.common.config_base }}/node/ca.crt"
ca_path: "{{ openshift.common.config_base }}/node/client-ca.crt"
handlers:
# Normally this handler would restart docker after updating ca
# trust. We'll do that when we restart nodes to avoid restarting
Expand Down Expand Up @@ -284,7 +284,7 @@
- ('expired' not in hostvars
| lib_utils_oo_select_keys(groups['oo_nodes_to_config'])
| lib_utils_oo_collect('check_results.check_results.ocp_certs')
| lib_utils_oo_collect('health', {'path':hostvars[groups.oo_nodes_to_config.0].openshift.common.config_base ~ "/node/ca.crt"}))
| lib_utils_oo_collect('health', {'path':hostvars[groups.oo_nodes_to_config.0].openshift.common.config_base ~ "/node/client-ca.crt"}))
# masters
- ('expired' not in hostvars
| lib_utils_oo_select_keys(groups['oo_masters_to_config'])
Expand Down

0 comments on commit 97b853b

Please sign in to comment.