Role haproxy_server for OpenStack-Ansible
Go to file
Tim Laszlo bd34500c63 Use task state instead of output to create haproxy log directory
Use the previous tasks changed state to create haproxy log
directories.  Both use the same "log_dir.rc != 0" logic.
This allows the play to run in check mode.

Change-Id: I731ea1ec7822266cd9a433b328e5dc5cdd0a205a
2016-05-06 07:01:54 -05:00
defaults Only update apt cache if necessary 2016-02-09 16:46:22 +01:00
files Added logging for haproxy to rsyslog 2015-10-27 20:01:17 +00:00
handlers Added logging for haproxy to rsyslog 2015-10-27 20:01:17 +00:00
meta Keystone SSL cert/key distribution and configuration 2015-08-19 07:51:09 +00:00
tasks Use task state instead of output to create haproxy log directory 2016-05-06 07:01:54 -05:00
templates Fix configuration string for haproxy 2016-04-11 10:13:04 -04: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 Clean up references to haproxy_hosts in plays 2016-01-31 19:54:13 -06: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"