ansible-role-docker-swarm/defaults/main.yml

34 lines
1.2 KiB
YAML

---
docker_swarm_cluster_haproxy_install: True
# mesh, keepalive, global
docker_swarm_haproxy_installation_type: 'global'
# I did not find any way to make it dependant on docker_swarm_haproxy_installation_type
docker_swarm_haproxy_keepalive_installation: False
docker_swarm_haproxy_swarm_port: '{{ docker_api_port }}'
docker_swarm_haproxy_plain_http_api: True
#
docker_swarm_expose_api_via_haproxy: True
docker_swarm_expose_api_hostname: 'swarm.example.com'
docker_swarm_api_backend: 'dockersocket /var/run/docker.sock'
docker_swarm_api_check_availability: True
docker_swarm_api_networks_acl:
- '127.0.0.1/8'
# Portainer
docker_swarm_cluster_portainer_install: True
docker_swarm_portainer_hostname: 'portainer-swarm.example.com'
docker_swarm_portainer_additional_constraints: []
# - 'node.hostname != docker01'
# This is ugly
docker_swarm_haproxy_shinyproxy_metrics: False
docker_swarm_portainer_network: 'agent_network'
docker_swarm_portainer_http_port: '9000'
docker_swarm_portainer_service_port: '8000'
docker_swarm_keepalived_vrouter_id: 205
docker_swarm_keepalived_floating_ip: '127.0.0.1/8'
docker_swarm_keepalived_instance_name: 'VI_HAPROXY_1'
docker_swarm_haproxy_loglevel: '{{ haproxy_loglevel }}'
docker_swarm_haproxy_http2_enabled: True