summaryrefslogtreecommitdiffstats
path: root/roles/origin_minion/tasks/main.yml
blob: 3bb62b4388af0923ad1ba9a1d3565cede8eeb9cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
# tasks file for openshift_minion
- name: Install OpenShift
  yum: pkg=openshift state=installed

- name: Configure OpenShift settings
  lineinfile: >
    dest=/etc/sysconfig/openshift
    regexp={{ item.regex }}
    line="{{ item.line }}"
  with_items:
    - { regex: '^OPENSHIFT_MASTER',  line: 'OPENSHIFT_MASTER=\"{{ oo_master_ips[0] }}\"' }
    - { regex: '^OPENSHIFT_BIND_ADDR', line: 'OPENSHIFT_BIND_ADDR=\"{{ hostvars[inventory_hostname].ansible_eth0.ipv4.address }}\"'}
  notify:
    - restart openshift-minion

- name: Enable OpenShift
  service: name=openshift enabled=yes state=started

- name: Open firewalld port for OpenShift
  firewalld: port=10250/tcp permanent=false state=enabled

- name: Save firewalld port for OpenShift
  firewalld: port=10250/tcp permanent=true state=enabled