ansible-role-docker/defaults/main.yml

50 lines
1.5 KiB
YAML
Raw Normal View History

2020-08-06 16:45:47 +02:00
---
docker_install: True
2020-08-11 20:01:36 +02:00
# Swarm
docker_swarm: False
docker_swarm_manager: False
docker_swarm_manager_availability: 'drain'
docker_swarm_node: False
docker_swarm_node_availability: 'active'
docker_swarm_worker_hostname: '{{ ansible_fqdn }}'
2020-08-11 20:01:36 +02:00
docker_swarm_allowed_hosts:
- '0.0.0.0/0'
# Set this to one of the manager hostnames to be able to initialize the cluster
docker_swarm_manager_main_node_hostname: localhost
docker_swarm_manager_main_node_address: 127.0.0.1
2020-08-11 20:01:36 +02:00
# Set this on one of the masters
docker_swarm_manager_main_node: False
docker_run_as_docker_user: True
docker_user_home: /home/docker
docker_defaults_file: /etc/default/docker
docker_enable_tcp_socket: False
docker_tcp_socket_port: 2375
docker_tls_api: True
docker_tls_native_tls: True
# Set the following to the your ca and certificates path if native_tls is False
docker_tls_ca: '/var/lib/docker/swarm/certificates/swarm-root-ca.crt'
docker_tls_cert: '/var/lib/docker/swarm/certificates/swarm-node.crt'
docker_tls_key: '/var/lib/docker/swarm/certificates/swarm-node.key'
#
docker_tls_verify_clients: True
docker_enable_api_port: True
2020-08-11 20:01:36 +02:00
docker_api_port: 2376
docker_tcp_socket_host: 127.0.0.1
docker_log_to_journal: True
docker_daemon_debug: False
docker_prometheus_metrics: True
docker_prometheus_host: 127.0.0.1
docker_prometheus_metrics_port: 9323
2020-09-17 19:19:17 +02:00
2020-10-02 19:33:54 +02:00
# Usage:
# node.labels.<key_name>==<label_value>
# node.labels.<key_name>!=<label_value>
#
# state modes: merge, replace
2020-09-17 19:19:17 +02:00
docker_label_state_mode: merge
docker_node_labels: []
# - { key: 'key_name', value: 'label_value' }