summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2020-08-01 22:41:06 +0200
committerlaforge <laforge@osmocom.org>2020-08-03 01:12:43 +0000
commit523aa0874e2488af0dfee7090989c0280bf81581 (patch)
treed5a6e2fe744160dc0d645f22c210642a9550ff4c
parente17a4d66d06ad5acb74a728ca378ad0cc9fffdf0 (diff)
ansible/docker: set overlayfs2 and ipv6
overlayfs2 should be the default anyway. Enable it on all hosts, since it was enabled on older hosts. Change-Id: I20728d6017204c3978e23376baa89de6e91fed1e
-rw-r--r--ansible/roles/docker/files/daemon.json5
-rw-r--r--ansible/roles/docker/handlers/main.yml6
-rw-r--r--ansible/roles/docker/tasks/main.yml6
3 files changed, 17 insertions, 0 deletions
diff --git a/ansible/roles/docker/files/daemon.json b/ansible/roles/docker/files/daemon.json
new file mode 100644
index 0000000..e08a463
--- /dev/null
+++ b/ansible/roles/docker/files/daemon.json
@@ -0,0 +1,5 @@
+{
+ "ipv6": true,
+ "storage-driver": "overlay2",
+ "fixed-cidr-v6": "fd02:db8:1::/64"
+}
diff --git a/ansible/roles/docker/handlers/main.yml b/ansible/roles/docker/handlers/main.yml
new file mode 100644
index 0000000..06f7c61
--- /dev/null
+++ b/ansible/roles/docker/handlers/main.yml
@@ -0,0 +1,6 @@
+---
+
+- name: restart docker
+ service:
+ name: docker
+ state: restarted
diff --git a/ansible/roles/docker/tasks/main.yml b/ansible/roles/docker/tasks/main.yml
index 813b5ac..6ffe1af 100644
--- a/ansible/roles/docker/tasks/main.yml
+++ b/ansible/roles/docker/tasks/main.yml
@@ -38,3 +38,9 @@
hour: '*/3'
user: "{{ jenkins_user }}"
job: "test -x /home/{{ jenkins_user }}/osmo-ci/scripts/docker-cleanup.sh && /home/{{ jenkins_user }}/osmo-ci/scripts/docker-cleanup.sh >/dev/null"
+
+- name: copy daemon.json to support ipv6
+ copy:
+ src: daemon.json
+ dest: /etc/docker/daemon.json
+ notify: restart docker