openstack-ansible/playbooks/roles/haproxy_server
Kevin Carter f139eb09d4 added role to pin packages
This new role is now providing the ability for a user to pin apt
packages as they see fit. The idea is to allow someone to implement
pinning in a generic way that can be represented as a global variable
or as a hostvar. The new role has been added to all install roles as
a dependency which will allow it to ensure that packages are pinned
everywhere as would be expected.

Change-Id: I354e8515570fa7174366ba57d57aece3c304568e
2015-05-08 13:22:42 -05:00
..
defaults Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
files Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
handlers Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
meta added role to pin packages 2015-05-08 13:22:42 -05:00
tasks Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
templates Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
CONTRIBUTING.rst Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
LICENSE Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
README.rst Convert existing roles into galaxy roles 2015-02-18 10:56:25 +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_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"