Skip to content

Commit af315d3

Browse files
ansible-scylla-monitoring: Allow adding a custom dockerd configuration
1 parent edc9e7f commit af315d3

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

ansible-scylla-monitoring/defaults/main.yml

+4
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,7 @@ prometheus_url: 'https://github.com/prometheus/prometheus/releases/download/v2.3
8989

9090
# Additional arguments to pass to the prometheus binary
9191
#prometheus_args: "--web.enable-admin-api --storage.tsdb.retention.size=50G"
92+
93+
# Use this variable for setting any custom configuration allowed by dockerd (https://docs.docker.com/reference/cli/dockerd/#on-linux)
94+
# The content of this variable will be coppied to /etc/docker/daemon.json
95+
docker_daemon_custom_config: { "bip": "172.17.0.1/24" }

ansible-scylla-monitoring/tasks/docker.yml

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
- name: Populate service facts
33
service_facts:
44

5+
- copy:
6+
content: "{{ docker_daemon_custom_config }}"
7+
dest: "/etc/docker/daemon.json"
8+
become: true
9+
510
- name: restart the docker daemon again
611
service:
712
name: docker

0 commit comments

Comments
 (0)