diff options
author | Jhon Honce <jhonce@redhat.com> | 2014-10-06 08:24:16 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2014-10-06 08:24:16 -0700 |
commit | db6d94e538cd373e92c83a887039ffa54a2ab75a (patch) | |
tree | 1598f9150edac15c791f2d93dff7d979fa24bc4f /roles/openshift_master/tasks | |
parent | c54830c66efe0656442be312bf0dbbbdc0f58940 (diff) | |
parent | b00727520bc903efc02ece721c3500e599f18b75 (diff) | |
download | openshift-db6d94e538cd373e92c83a887039ffa54a2ab75a.tar.gz openshift-db6d94e538cd373e92c83a887039ffa54a2ab75a.tar.bz2 openshift-db6d94e538cd373e92c83a887039ffa54a2ab75a.tar.xz openshift-db6d94e538cd373e92c83a887039ffa54a2ab75a.zip |
Merge pull request #9 from jwhonce/wip/registry
WIP Infra - Deploy GCE openshift v3 cluster
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 |