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
Fixes #382
  • Loading branch information
igorribeiroduarte authored and vladzcloudius committed Jun 19, 2024
1 parent edc9e7f commit 40194e5
Show file tree
Hide file tree
Showing 2 changed files with 11 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" }
7 changes: 7 additions & 0 deletions ansible-scylla-monitoring/tasks/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
- name: Populate service facts
service_facts:

- name: Add custom dockerd config
copy:
content: "{{ docker_daemon_custom_config }}"
dest: "/etc/docker/daemon.json"
become: true
when: docker_daemon_custom_config is defined

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

0 comments on commit 40194e5

Please sign in to comment.