aboutsummaryrefslogtreecommitdiff
path: root/ansible
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2024-09-29 08:31:41 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2024-09-29 08:31:41 +0200
commitbfffb5e3ca2d548064a783a8800ee3a829d50d17 (patch)
tree8eba5df29fb2e3efa1d96f481e23f4c8d7d48e66 /ansible
parent6789ad3b07faeac7f8e62fa265ee2a7650f489ae (diff)
downloadinfra-bfffb5e3ca2d548064a783a8800ee3a829d50d17.tar.gz
infra-bfffb5e3ca2d548064a783a8800ee3a829d50d17.tar.bz2
infra-bfffb5e3ca2d548064a783a8800ee3a829d50d17.tar.xz
infra-bfffb5e3ca2d548064a783a8800ee3a829d50d17.zip
prometheus+grafana
Diffstat (limited to 'ansible')
-rw-r--r--ansible/group_vars/all/ipam.yml6
-rw-r--r--ansible/plays/host-hash.yml10
2 files changed, 15 insertions, 1 deletions
diff --git a/ansible/group_vars/all/ipam.yml b/ansible/group_vars/all/ipam.yml
index 2161269..f3f75ac 100644
--- a/ansible/group_vars/all/ipam.yml
+++ b/ansible/group_vars/all/ipam.yml
@@ -34,8 +34,12 @@ ipam6:
range: "fdb1:4242:3538:2006::/64"
hosts:
kv24ix: "fdb1:4242:3538:2006::ffff/64"
- unused_2007:
+ hash_dn42:
range: "fdb1:4242:3538:2007::/64"
+ hosts:
+ hash: "fdb1:4242:3538:2007::ffff"
+ hash_docker_dn42:
+ range: "fdb1:4242:3538:2007:1001::/112"
lhn2_dn42:
range: "fdb1:4242:3538:2008::/64"
hosts:
diff --git a/ansible/plays/host-hash.yml b/ansible/plays/host-hash.yml
new file mode 100644
index 0000000..62b781f
--- /dev/null
+++ b/ansible/plays/host-hash.yml
@@ -0,0 +1,10 @@
+- hosts: hash
+ tasks:
+ - become: yes
+ copy:
+ dest: /etc/docker/daemon.json
+ content: |
+ {
+ "ipv6": true,
+ "fixed-cidr-v6": "{{ ipam6.networks.hash_docker_dn42.range }}"
+ }