diff options
| author | Brenton Leanhardt <bleanhar@redhat.com> | 2015-11-05 16:27:43 -0500 | 
|---|---|---|
| committer | Brenton Leanhardt <bleanhar@redhat.com> | 2015-11-05 16:27:43 -0500 | 
| commit | c73ec7b6b27483aea4bb53db0db9837ff9781d24 (patch) | |
| tree | 27ab3e06fe896997bf0f59b0ac3b6b54728f4425 /roles/haproxy/tasks | |
| parent | d01f131de68bf88e4e3fb4c81450922a30285804 (diff) | |
| parent | 11e7783d4b4177f100ecea8a8ffafbfb07ec47ee (diff) | |
| download | openshift-c73ec7b6b27483aea4bb53db0db9837ff9781d24.tar.gz openshift-c73ec7b6b27483aea4bb53db0db9837ff9781d24.tar.bz2 openshift-c73ec7b6b27483aea4bb53db0db9837ff9781d24.tar.xz openshift-c73ec7b6b27483aea4bb53db0db9837ff9781d24.zip | |
Merge pull request #608 from abutcher/native-ha
Native Support for Multi-Master HA
Diffstat (limited to 'roles/haproxy/tasks')
| -rw-r--r-- | roles/haproxy/tasks/main.yml | 25 | 
1 files changed, 25 insertions, 0 deletions
| diff --git a/roles/haproxy/tasks/main.yml b/roles/haproxy/tasks/main.yml new file mode 100644 index 000000000..5638b7313 --- /dev/null +++ b/roles/haproxy/tasks/main.yml @@ -0,0 +1,25 @@ +--- +- name: Install haproxy +  yum: +    pkg: haproxy +    state: present + +- name: Configure haproxy +  template: +    src: haproxy.cfg.j2 +    dest: /etc/haproxy/haproxy.cfg +    owner: root +    group: root +    mode: 0644 +  notify: restart haproxy + +- name: Enable and start haproxy +  service: +    name: haproxy +    state: started +    enabled: yes +  register: start_result + +- name: Pause 30 seconds if haproxy was just started +  pause: seconds=30 +  when: start_result | changed | 
