ansible-role-docker/defaults/main.yml

63 lines
2.2 KiB
YAML
Raw Permalink Normal View History

2020-08-06 16:45:47 +02:00
---
2022-05-21 19:22:06 +02:00
docker_install: true
docker_specific_package_ver: false
docker_pkg_version: "5:24.0.1"
2020-08-11 20:01:36 +02:00
# Swarm
2022-05-21 19:22:06 +02:00
docker_swarm: false
docker_swarm_manager: false
2020-08-11 20:01:36 +02:00
docker_swarm_manager_availability: 'drain'
2022-02-21 23:57:43 +01:00
docker_swarm_manager_advertise_address: '{{ ansible_default_ipv4.address }}'
2022-05-21 19:22:06 +02:00
docker_swarm_node: false
2020-08-11 20:01:36 +02:00
docker_swarm_node_availability: 'active'
2022-02-21 23:57:43 +01:00
docker_swarm_node_advertise_address: '{{ ansible_default_ipv4.address }}'
docker_swarm_worker_hostname: '{{ ansible_fqdn }}'
2020-08-11 20:01:36 +02:00
docker_swarm_allowed_hosts:
- '0.0.0.0/0'
2022-05-21 19:45:46 +02:00
docker_prune_dangling_images: true
2020-08-11 20:01:36 +02:00
# 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
2022-05-21 19:22:06 +02:00
docker_swarm_manager_main_node: false
2020-08-11 20:01:36 +02:00
2022-05-21 19:22:06 +02:00
docker_run_as_docker_user: true
2020-08-11 20:01:36 +02:00
docker_user_home: /home/docker
docker_defaults_file: /etc/default/docker
2022-05-21 19:22:06 +02:00
docker_enable_tcp_socket: false
2020-08-11 20:01:36 +02:00
docker_tcp_socket_port: 2375
2022-05-21 19:22:06 +02:00
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'
#
2022-05-21 19:22:06 +02:00
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
2022-05-21 19:22:06 +02:00
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
2023-05-29 13:38:35 +02:00
# cAdvisor
docker_swarm_cluster_cadvisor_install: true
docker_swarm_cluster_cadvisor_deb_pkg: true
docker_swarm_cluster_cadvisor_docker_endpoint: "unix:///var/run/docker.sock"
docker_swarm_cluster_cadvisor_port: 4194
docker_swarm_cluster_cadvisor_github_url: "https://github.com/google/cadvisor/releases/download/v0.47.0/cadvisor-v0.47.0-linux-amd64"
docker_swarm_cluster_cadvisor_binary_path: /usr/local/bin/cadvisor
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' }