Jesse Pretorius ba7587267a Set haproxy install to use latest packages
This patch changes the apt task for installing haproxy packages
from only checking for presence to always checking for the
latest package version.

This is essential to allow a deployer to switch from a
configuration that does not implement SSL to one that does.

Change-Id: Iaf6eaedba835a332920336b1cb66190924537301
Closes-Bug: #1475597
2015-07-18 17:52:01 +00:00
..
2015-07-13 16:05:40 +00:00
2015-05-08 13:22:42 -05:00

OpenStack Haproxy Server

tags

openstack, galera, haproxy, cloud, ansible

category

*nix

Role for the installation and setup of haproxy

- name: Install haproxy
  hosts: haproxy_hosts
  user: root
  roles:
    - { role: "haproxy_server", tags: [ "haproxy-server" ] }
  vars:
    haproxy_service_configs:
      - service:
          hap_service_name: group_name
          hap_backend_nodes: "{{ groups['group_name'][0] }}"
          hap_backup_nodes: "{{ groups['group_name'][1:] }}"
          hap_port: 80
          hap_balance_type: http
          hap_backend_options:
            - "forwardfor"
            - "httpchk"
            - "httplog"