aboutsummaryrefslogtreecommitdiff
path: root/ansible/group_vars
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-01-11 07:45:58 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2019-01-11 07:45:58 +0100
commit99ce768a7d6fe9e828caf932554c4e095c1d00b2 (patch)
treeb367f0776e0640714d6a581ba5eb0d4e2f3d1b76 /ansible/group_vars
parentfca718acb8d31e3f05608fb5aedfa4c7d34c7455 (diff)
downloadinfra-99ce768a7d6fe9e828caf932554c4e095c1d00b2.tar.gz
infra-99ce768a7d6fe9e828caf932554c4e095c1d00b2.tar.bz2
infra-99ce768a7d6fe9e828caf932554c4e095c1d00b2.tar.xz
infra-99ce768a7d6fe9e828caf932554c4e095c1d00b2.zip
lxc-host: Moving to its own playbook. Adding arius-test1. Only
configuring ipv4/6 forwarding for the created interface. Adding configurable ipv6 address too. wireguard: Tagging old nets with never. nftables: Trying out portforwarding on arius.
Diffstat (limited to 'ansible/group_vars')
-rw-r--r--ansible/group_vars/all/host_database.yml29
1 files changed, 27 insertions, 2 deletions
diff --git a/ansible/group_vars/all/host_database.yml b/ansible/group_vars/all/host_database.yml
index 4342f23..c7bce07 100644
--- a/ansible/group_vars/all/host_database.yml
+++ b/ansible/group_vars/all/host_database.yml
@@ -1,13 +1,15 @@
-# Generate hwaddr with
-# echo $(od -vN 6 -An -tx1 /dev/urandom) |tr ' ' :
# Generate ipv6 with
# echo $(od -vN 8 -An -tx2 /dev/urandom) |tr ' ' :
+# Generate hwaddr with
+# echo $(od -vN 6 -An -tx1 /dev/urandom) |tr ' ' :
# Note that the last bit of the first byte can't be set! Keep that byte even!
# After you boot the container you'll get the IPv6 address
ipv6_networks:
conflatorio:
prefix: fd56:1ae9:097d:3ddd
+ arius:
+ prefix: f338:7b65:2445:ef9a
host_database:
birgitte:
@@ -87,3 +89,26 @@ host_database:
ipv6:
address: "{{ ipv6_networks.conflatorio.prefix }}:5375:e67b:7878:310d"
netmask: 64
+
+ arius:
+ interfaces:
+ lxc0-int:
+ ipv4:
+ address: 10.1.1.1
+ netmask: 24
+ ipv6:
+ address: "{{ ipv6_networks.arius.prefix }}:954b:90fc:c42d:1aef"
+ netmask: 64
+
+ arius-test1:
+ interfaces:
+ veth0:
+ hwaddr: 42:bc:1e:d3:bb:c5
+ ipv4:
+ address: 10.1.1.2
+ netmask: 24
+ gateway: 10.1.1.1
+ ipv6:
+ address: "{{ ipv6_networks.arius.prefix }}:2d35:abc6:97c1:cbf3"
+ netmask: 64
+ gateway: auto