50 строки
1.3 KiB
YAML
50 строки
1.3 KiB
YAML
---
|
|
##
|
|
## This is run after the OpenShift install and needs
|
|
## create-azure-conf.yaml to be run before the install
|
|
##
|
|
- hosts: masters
|
|
gather_facts: no
|
|
serial: 1
|
|
become: yes
|
|
vars:
|
|
azure_conf_dir: /etc/origin/cloudprovider
|
|
azure_conf: "{{ azure_conf_dir }}/azure.conf"
|
|
master_conf: /etc/origin/master/master-config.yaml
|
|
handlers:
|
|
- name: restart atomic-openshift-master-api
|
|
systemd:
|
|
state: restarted
|
|
name: atomic-openshift-master-api
|
|
|
|
- name: restart atomic-openshift-master-controllers
|
|
systemd:
|
|
state: restarted
|
|
name: atomic-openshift-master-controllers
|
|
|
|
post_tasks:
|
|
- name: insert the azure disk config into the master
|
|
modify_yaml:
|
|
dest: "{{ master_conf }}"
|
|
yaml_key: "{{ item.key }}"
|
|
yaml_value: "{{ item.value }}"
|
|
with_items:
|
|
- key: kubernetesMasterConfig.apiServerArguments.cloud-config
|
|
value:
|
|
- "{{ azure_conf }}"
|
|
|
|
- key: kubernetesMasterConfig.apiServerArguments.cloud-provider
|
|
value:
|
|
- azure
|
|
|
|
- key: kubernetesMasterConfig.controllerArguments.cloud-config
|
|
value:
|
|
- "{{ azure_conf }}"
|
|
|
|
- key: kubernetesMasterConfig.controllerArguments.cloud-provider
|
|
value:
|
|
- azure
|
|
notify:
|
|
- restart atomic-openshift-master-api
|
|
- restart atomic-openshift-master-controllers
|