diff options
Diffstat (limited to 'roles/openshift_master/tasks')
-rw-r--r-- | roles/openshift_master/tasks/main.yml | 30 |
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..83573cb27 --- /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=\"{{ oo_bind_ip }}\"' } + - { regex: '^OPENSHIFT_BIND_ADDR', line: 'OPENSHIFT_BIND_ADDR=\"{{ oo_bind_ip }}\"'} + 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 |