deploy_haproxy/vars/main.yml

42 lines
1.7 KiB
YAML

---
# vars file for deploy_haproxy
deploy_haproxy_config_dir: /etc/haproxy
deploy_haproxy_chroot: /var/lib/haproxy
deploy_haproxy_socket: "{{ deploy_haproxy_chroot }}/stats"
deploy_haproxy_cert_dir_dst: "{{ deploy_haproxy_chroot }}/certs"
deploy_haproxy_user: "{{ '99' if deploy_haproxy_deploy_method == 'docker' else 'haproxy' }}"
deploy_haproxy_group: "{{ '99' if deploy_haproxy_deploy_method == 'docker' else 'haproxy' }}"
deploy_haproxy_service_name: "haproxy{{ '_container' if deploy_haproxy_deploy_method == 'docker' }}"
deploy_haproxy_docker_image: haproxytech/haproxy-debian
deploy_haproxy_version_map:
latest: "2.9"
deploy_haproxy_container_volume_map:
- "{{ deploy_haproxy_config_dir }}:/usr/local/etc/haproxy"
# - "{{ deploy_haproxy_chroot }}:{{ deploy_haproxy_chroot }}"
deploy_haproxy_repository:
debian:
- name: haproxy
uri: "http://haproxy.debian.net"
comments: "haproxy repository"
types:
- deb
suites:
- "{{ ansible_distribution_release }}-backports-{{ deploy_haproxy_version_map[deploy_haproxy_version] | default(deploy_haproxy_version) }}"
components:
- main
options:
Signed-By: "https://haproxy.debian.net/bernat.debian.org.gpg"
ubuntu:
- name: haproxy
uri: "https://ppa.launchpadcontent.net/vbernat/haproxy-{{ deploy_haproxy_version_map[deploy_haproxy_version] | default(deploy_haproxy_version) }}/ubuntu/"
comments: "haproxy repository"
types:
- deb
suites:
- "{{ ansible_distribution_release }}"
components:
- main
options:
Signed-By: "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xcffb779aadc995e4f350a060505d97a41c61b9cd"