summaryrefslogtreecommitdiffstats
path: root/roles/openshift_minion/tasks/main.yml
blob: 3821277bc0b412eb6ab94eeb54e0f90f0f52e529 (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
25
26
27
28
29
---
# tasks file for openshift_minion
- name: Install OpenShift
  yum: pkg=origin state=installed

  # fixme: Once openshift stops resolving hostnames for minion queries remove this...
- name: Set hostname to IP Addr (WORKAROUND)
  command: /usr/bin/hostname {{ oo_bind_ip }}

- name: Configure OpenShift Minion settings
  lineinfile:
    dest: /etc/sysconfig/openshift
    regexp: "{{ item.regex }}"
    line: "{{ item.line }}"
  with_items:
    - { regex: '^ROLE=', line: 'ROLE=\"node\"' }
    - { regex: '^OPTIONS=', line: 'OPTIONS=\"--master=http://{{ oo_master_ips[0] }}:8080  --loglevel=5\"' }
  notify:
    - restart openshift-minion

- 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

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