63 lines
2.2 KiB
YAML
63 lines
2.2 KiB
YAML
---
|
|
docker_install: true
|
|
docker_specific_package_ver: false
|
|
docker_pkg_version: "5:24.0.1"
|
|
# Swarm
|
|
docker_swarm: false
|
|
docker_swarm_manager: false
|
|
docker_swarm_manager_availability: 'drain'
|
|
docker_swarm_manager_advertise_address: '{{ ansible_default_ipv4.address }}'
|
|
docker_swarm_node: false
|
|
docker_swarm_node_availability: 'active'
|
|
docker_swarm_node_advertise_address: '{{ ansible_default_ipv4.address }}'
|
|
docker_swarm_worker_hostname: '{{ ansible_fqdn }}'
|
|
docker_swarm_allowed_hosts:
|
|
- '0.0.0.0/0'
|
|
|
|
docker_prune_dangling_images: true
|
|
|
|
# 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
|
|
# 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
|
|
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
|
|
|
|
# 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
|
|
|
|
# Usage:
|
|
# node.labels.<key_name>==<label_value>
|
|
# node.labels.<key_name>!=<label_value>
|
|
#
|
|
# state modes: merge, replace
|
|
docker_label_state_mode: merge
|
|
docker_node_labels: []
|
|
# - { key: 'key_name', value: 'label_value' }
|