summaryrefslogtreecommitdiffstats
path: root/roles/origin_minion/tasks/main.yml
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2014-10-01 14:30:13 -0700
committerJhon Honce <jhonce@redhat.com>2014-10-02 15:36:01 -0700
commit346da608fbc71029ccac7ca559af38b0f218f3fe (patch)
tree1f95c805c91a78c0f2a5b07b69c1afce845918ec /roles/origin_minion/tasks/main.yml
parent23b5138b592e3ebcc0a33ba578db21e20bb2bf58 (diff)
downloadopenshift-346da608fbc71029ccac7ca559af38b0f218f3fe.tar.gz
openshift-346da608fbc71029ccac7ca559af38b0f218f3fe.tar.bz2
openshift-346da608fbc71029ccac7ca559af38b0f218f3fe.tar.xz
openshift-346da608fbc71029ccac7ca559af38b0f218f3fe.zip
WIP Infra - Add playbooks for using openshift binary
* Fixed terminate so that it properly removes the attached OS disk.
Diffstat (limited to 'roles/origin_minion/tasks/main.yml')
-rw-r--r--roles/origin_minion/tasks/main.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/roles/origin_minion/tasks/main.yml b/roles/origin_minion/tasks/main.yml
new file mode 100644
index 000000000..3bb62b438
--- /dev/null
+++ b/roles/origin_minion/tasks/main.yml
@@ -0,0 +1,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