|
@@ -9,6 +9,8 @@
|
|
- key: kubernetesMasterConfig.controllerArguments.cluster-signing-key-file
|
|
- key: kubernetesMasterConfig.controllerArguments.cluster-signing-key-file
|
|
value:
|
|
value:
|
|
- /etc/origin/master/ca.key
|
|
- /etc/origin/master/ca.key
|
|
|
|
+ when:
|
|
|
|
+ - openshift_control_plane_apply_cluster_signing_config | default(True)
|
|
|
|
|
|
- name: Create temp directory for static pods
|
|
- name: Create temp directory for static pods
|
|
command: mktemp -d /tmp/openshift-ansible-XXXXXX
|
|
command: mktemp -d /tmp/openshift-ansible-XXXXXX
|
|
@@ -43,11 +45,17 @@
|
|
- key: spec.containers[0].readinessProbe.httpGet.port
|
|
- key: spec.containers[0].readinessProbe.httpGet.port
|
|
value: "{{ openshift_master_api_port }}"
|
|
value: "{{ openshift_master_api_port }}"
|
|
|
|
|
|
|
|
+- name: ensure pod location exists
|
|
|
|
+ file:
|
|
|
|
+ path: "{{ openshift_control_plane_static_pod_location }}"
|
|
|
|
+ state: directory
|
|
|
|
+ mode: "0755"
|
|
|
|
+
|
|
- name: Update master static pods
|
|
- name: Update master static pods
|
|
copy:
|
|
copy:
|
|
remote_src: true
|
|
remote_src: true
|
|
src: "{{ mktemp.stdout }}/{{ item }}"
|
|
src: "{{ mktemp.stdout }}/{{ item }}"
|
|
- dest: "/etc/origin/node/pods/"
|
|
|
|
|
|
+ dest: "{{ openshift_control_plane_static_pod_location }}"
|
|
mode: 0600
|
|
mode: 0600
|
|
with_items:
|
|
with_items:
|
|
- apiserver.yaml
|
|
- apiserver.yaml
|