Go to file
Jesse Pretorius a9ab13daf4 Add ability to change apt/yum package state for the haproxy_server role
The current method of installing the distribution packages required is
set in the tasks and cannot be changed by a deployer.

Currently the apt task always installs the latest package. This results
in unexpected binary changes when a deployer may simply be trying to
execute a configuration change.

This patch adds the ability for a deployer to change the desired state
so that the results are predictable.

Change-Id: I3732efabfa4fc7e80a8f172abd1415fd54489763
2016-08-13 01:10:17 +00:00
2016-05-27 11:12:17 +00:00
2016-05-27 11:12:17 +00:00
2016-05-27 11:12:17 +00: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
  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"
Description
Role haproxy_server for OpenStack-Ansible
Readme 5.1 MiB
Languages
Jinja 69%
Python 31%