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

30 lines
1.2 KiB
YAML
Raw Normal View History

2020-09-24 16:01:51 +02:00
---
2020-09-30 17:14:29 +02:00
docker_swarm_cluster_haproxy_install: True
# mesh, keepalive, global
docker_swarm_haproxy_installation_type: 'keepalive'
docker_swarm_haproxy_networks:
2020-10-01 17:50:12 +02:00
- 'portainer_{{ docker_swarm_portainer_network }}'
docker_swarm_haproxy_additional_networks: []
2020-09-30 17:14:29 +02:00
#
docker_swarm_expose_api_via_haproxy: True
docker_swarm_expose_api_hostname: 'swarm.example.com'
2020-10-01 15:42:47 +02:00
docker_swarm_api_networks_acl:
- '127.0.0.1/8'
2020-09-30 17:14:29 +02:00
# Portainer
docker_swarm_cluster_portainer_install: True
docker_swarm_portainer_hostname: 'portainer-swarm.example.com'
docker_swarm_portainer_additional_constraints: []
# - 'node.hostname != docker01'
docker_swarm_portainer_network: 'agent_network'
docker_swarm_portainer_http_port: '9000'
docker_swarm_portainer_service_port: '8000'
2020-10-01 15:42:47 +02:00
# The allowed_networks parameter is optional
2020-09-30 17:14:29 +02:00
docker_swarm_haproxy_additional_services: []
2020-10-01 15:42:47 +02:00
# - { acl_name: 'service', acl_rule: 'hdr_dom(host) -i service.example.com', service_name: 'service-', service_replica_num: '1', service_port: '9999', service_overlay_network: 'service-network', allowed_networks: '192.168.1.0/24 192.168.2.0/24' }
2020-09-30 17:14:29 +02:00
2020-09-30 19:02:46 +02:00
docker_swarm_keepalived_vrouter_id: 205
docker_swarm_keepalived_floating_ip: '127.0.0.1/8'
docker_swarm_keepalived_instance_name: 'VI_HAPROXY_1'