2020-09-24 16:01:51 +02:00
|
|
|
Role Name
|
|
|
|
=========
|
|
|
|
|
2020-09-30 17:14:29 +02:00
|
|
|
A role that configures a docker swarm cluster, adding portainer CE and haproxy
|
2020-09-24 16:01:51 +02:00
|
|
|
|
|
|
|
Role Variables
|
|
|
|
--------------
|
|
|
|
|
2020-09-30 17:14:29 +02:00
|
|
|
The most important variables are listed below:
|
|
|
|
|
|
|
|
``` yaml
|
2020-09-30 17:20:41 +02:00
|
|
|
docker_swarm_cluster_haproxy_install: True
|
|
|
|
# mesh, keepalive, global
|
|
|
|
docker_swarm_haproxy_installation_type: 'keepalive'
|
|
|
|
docker_swarm_haproxy_networks:
|
|
|
|
- '{{ docker_swarm_portainer_network }}'
|
|
|
|
#
|
|
|
|
docker_swarm_expose_api_via_haproxy: True
|
|
|
|
docker_swarm_expose_api_hostname: 'swarm.example.com'
|
|
|
|
# Portainer
|
|
|
|
docker_swarm_cluster_portainer_install: True
|
|
|
|
docker_swarm_portainer_hostname: 'portainer-swarm.example.com'
|
|
|
|
docker_swarm_portainer_additional_constraints: []
|
|
|
|
# - 'node.hostname != docker01'
|
2022-10-31 19:56:31 +01:00
|
|
|
docker_swarm_portainer_nfs_volume: false
|
|
|
|
docker_swarm_portainer_nfs_type: 'nfs4'
|
|
|
|
docker_swarm_portainer_nfs_o: 'nfsvers=4,addr=127.0.0.1,rw,nolock,soft'
|
|
|
|
docker_swarm_portainer_nfs_device: ':/tmp'
|
2020-09-30 17:20:41 +02:00
|
|
|
|
|
|
|
docker_swarm_portainer_network: 'agent_network'
|
|
|
|
docker_swarm_portainer_http_port: '9000'
|
|
|
|
docker_swarm_portainer_service_port: '8000'
|
|
|
|
|
|
|
|
docker_swarm_haproxy_additional_services: []
|
2022-02-21 15:04:06 +01: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', http_redirect_to_https: True }
|
2020-09-30 17:14:29 +02:00
|
|
|
```
|
2020-09-24 16:01:51 +02:00
|
|
|
|
|
|
|
Dependencies
|
|
|
|
------------
|
|
|
|
|
2020-09-30 17:20:41 +02:00
|
|
|
* docker
|
|
|
|
* keepalived, when haproxy is installed in HA host mode
|
2020-09-24 16:01:51 +02:00
|
|
|
|
|
|
|
License
|
|
|
|
-------
|
|
|
|
|
|
|
|
EUPL-1.2
|
|
|
|
|
|
|
|
Author Information
|
|
|
|
------------------
|
|
|
|
|
2020-09-30 17:14:29 +02:00
|
|
|
Andrea Dell'Amico, <andrea.dellamico@isti.cnr.it>
|