summaryrefslogtreecommitdiffstats
path: root/roles/openshift_master/tasks
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2014-10-01 15:39:26 -0700
committerJhon Honce <jhonce@redhat.com>2014-10-02 15:36:11 -0700
commitb1b2cbe00cfe766a414972352730454c1e79c2c2 (patch)
treeda75bd9df2bca097bf5937f760597990e85e9b4c /roles/openshift_master/tasks
parent2808f726dacb60e58c289c18a91258e0526705a3 (diff)
downloadopenshift-b1b2cbe00cfe766a414972352730454c1e79c2c2.tar.gz
openshift-b1b2cbe00cfe766a414972352730454c1e79c2c2.tar.bz2
openshift-b1b2cbe00cfe766a414972352730454c1e79c2c2.tar.xz
openshift-b1b2cbe00cfe766a414972352730454c1e79c2c2.zip
Finish origin -> openshift rename
Diffstat (limited to 'roles/openshift_master/tasks')
-rw-r--r--roles/openshift_master/tasks/main.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/roles/openshift_master/tasks/main.yml b/roles/openshift_master/tasks/main.yml
new file mode 100644
index 000000000..5a940c88a
--- /dev/null
+++ b/roles/openshift_master/tasks/main.yml
@@ -0,0 +1,30 @@
+---
+# tasks file for openshift_master
+- name: Install Origin
+ yum: pkg=origin state=installed
+
+- name: Configure Origin settings
+ lineinfile: >
+ dest=/etc/sysconfig/openshift
+ regexp={{ item.regex }}
+ line="{{ item.line }}"
+ with_items:
+ - { regex: '^OPENSHIFT_MASTER', line: 'OPENSHIFT_MASTER=\"{{ hostvars[inventory_hostname].ansible_eth0.ipv4.address }}\"' }
+ - { regex: '^OPENSHIFT_BIND_ADDR', line: 'OPENSHIFT_BIND_ADDR=\"{{ hostvars[inventory_hostname].ansible_eth0.ipv4.address }}\"'}
+ notify:
+ - restart openshift-master
+
+- name: Open firewalld port for etcd embedded in OpenShift
+ firewalld: port=4001/tcp permanent=false state=enabled
+
+- name: Save firewalld port for etcd embedded in
+ firewalld: port=4001/tcp permanent=true state=enabled
+
+- name: Open firewalld port for OpenShift
+ firewalld: port=8080/tcp permanent=false state=enabled
+
+- name: Save firewalld port for OpenShift
+ firewalld: port=8080/tcp permanent=true state=enabled
+
+- name: Enable OpenShift
+ service: name=openshift enabled=yes state=started