12345678910111213141516171819202122232425262728293031323334353637 |
- ---
- # TODO: add task to set the sdn subnet if openshift-sdn-master hasn't been
- # started yet
- - name: Set master sdn OpenShift facts
- openshift_facts:
- role: 'master_sdn'
- local_facts:
- debug_level: "{{ openshift_master_sdn_debug_level | default(openshift.common.debug_level) }}"
- - name: Install openshift-sdn-master
- yum:
- pkg: openshift-sdn-master
- state: installed
- register: install_result
- - name: Reload systemd units
- command: systemctl daemon-reload
- when: install_result | changed
- # TODO: we should probably generate certs specifically for sdn
- - name: Configure openshift-sdn-master settings
- lineinfile:
- dest: /etc/sysconfig/openshift-sdn-master
- regexp: '^OPTIONS='
- line: "OPTIONS=\"-v={{ openshift.master_sdn.debug_level }} -etcd-endpoints={{ openshift_sdn_master_url}}
- -etcd-cafile={{ openshift_master_config_dir }}/ca.crt
- -etcd-certfile={{ openshift_master_config_dir }}/master.etcd-client.crt
- -etcd-keyfile={{ openshift_master_config_dir }}/master.etcd-client.key\""
- notify:
- - restart openshift-sdn-master
- - name: Enable openshift-sdn-master
- service:
- name: openshift-sdn-master
- enabled: yes
- state: started
|