Skip to content

Commit

Permalink
ansible-scylla-monitoring: Allow adding a custom dockerd configuration
Browse files Browse the repository at this point in the history
Closes #382
  • Loading branch information
igorribeiroduarte committed Jun 19, 2024
1 parent edc9e7f commit 9b70bbf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ansible-scylla-monitoring/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,7 @@ prometheus_url: 'https://github.com/prometheus/prometheus/releases/download/v2.3

# Additional arguments to pass to the prometheus binary
#prometheus_args: "--web.enable-admin-api --storage.tsdb.retention.size=50G"

# Use this variable for setting any custom configuration allowed by dockerd (https://docs.docker.com/reference/cli/dockerd/#on-linux)
# The content of this variable will be coppied to /etc/docker/daemon.json
docker_daemon_custom_config: { "bip": "172.17.0.1/24" }
5 changes: 5 additions & 0 deletions ansible-scylla-monitoring/tasks/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
- name: Populate service facts
service_facts:

- copy:
content: "{{ docker_daemon_custom_config }}"
dest: "/etc/docker/daemon.json"
become: true

- name: restart the docker daemon again
service:
name: docker
Expand Down

0 comments on commit 9b70bbf

Please sign in to comment.