blob: 7a79b4ee900961de59a7a77dad571853988189e2 (
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
|
---
# tasks file for openshift_minion
- name: Install OpenShift
yum: pkg=origin state=installed
- name: Set hostname to IP Addr
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
|