diff options
author | Jhon Honce <jhonce@redhat.com> | 2014-10-01 14:30:13 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2014-10-02 15:36:01 -0700 |
commit | 346da608fbc71029ccac7ca559af38b0f218f3fe (patch) | |
tree | 1f95c805c91a78c0f2a5b07b69c1afce845918ec /roles/origin_master/tasks | |
parent | 23b5138b592e3ebcc0a33ba578db21e20bb2bf58 (diff) | |
download | openshift-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_master/tasks')
-rw-r--r-- | roles/origin_master/tasks/main.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/roles/origin_master/tasks/main.yml b/roles/origin_master/tasks/main.yml new file mode 100644 index 000000000..3963b5090 --- /dev/null +++ b/roles/origin_master/tasks/main.yml @@ -0,0 +1,25 @@ +--- +# tasks file for openshift_master +- name: Install Origin + yum: pkg=openshift 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: Enable OpenShift + service: name=openshift enabled=yes state=started + +- name: Open firewalld port for Origin + firewalld: port=8080/tcp permanent=false state=enabled + +- name: Save firewalld port for Origin + firewalld: port=8080/tcp permanent=true state=enabled + |