diff options
Diffstat (limited to 'ansible')
-rw-r--r-- | ansible/group_vars/all/host_database.yml | 42 | ||||
-rw-r--r-- | ansible/host_vars/conflatorio/lxc.yml | 13 | ||||
-rw-r--r-- | ansible/inventory | 2 |
3 files changed, 44 insertions, 13 deletions
diff --git a/ansible/group_vars/all/host_database.yml b/ansible/group_vars/all/host_database.yml index 1898ccc..4342f23 100644 --- a/ansible/group_vars/all/host_database.yml +++ b/ansible/group_vars/all/host_database.yml @@ -1,8 +1,14 @@ # Generate hwaddr with # echo $(od -vN 6 -An -tx1 /dev/urandom) |tr ' ' : +# Generate ipv6 with +# echo $(od -vN 8 -An -tx2 /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 + host_database: birgitte: interfaces: @@ -39,27 +45,45 @@ host_database: address: 192.168.70.1 netmask: 24 ipv6: - address: fd56:1ae9:097d:3ddd::1 + address: "{{ ipv6_networks.conflatorio.prefix }}:3017:fd82:dfd7:8617" netmask: 64 conflatorio-test1: interfaces: veth0: hwaddr: 66:01:9d:6a:e6:cd - ipv4: - address: 192.168.70.2 - netmask: 24 ipv6: - address: fd56:1ae9:097d:3ddd::2 + address: "{{ ipv6_networks.conflatorio.prefix }}:6c53:1011:3bad:9498" netmask: 64 conflatorio-test2: interfaces: veth0: hwaddr: 6a:c6:27:92:dd:84 - ipv4: - address: 192.168.70.3 - netmask: 24 ipv6: - address: fd56:1ae9:097d:3ddd::3 + address: "{{ ipv6_networks.conflatorio.prefix }}:4c96:be16:9e04:c110" + netmask: 64 + + conflatorio-test3: + interfaces: + veth0: + hwaddr: 6a:c6:27:92:dd:85 + ipv6: + address: "{{ ipv6_networks.conflatorio.prefix }}:02df:da1d:ccb7:97b9" + netmask: 64 + + conflatorio-test4: + interfaces: + veth0: + hwaddr: 6a:c6:27:92:dd:86 + ipv6: + address: "{{ ipv6_networks.conflatorio.prefix }}:ecd7:7f0a:79cd:343c" + netmask: 64 + + conflatorio-test5: + interfaces: + veth0: + hwaddr: 6a:c6:27:92:dd:87 + ipv6: + address: "{{ ipv6_networks.conflatorio.prefix }}:5375:e67b:7878:310d" netmask: 64 diff --git a/ansible/host_vars/conflatorio/lxc.yml b/ansible/host_vars/conflatorio/lxc.yml index 43e1817..caa6767 100644 --- a/ansible/host_vars/conflatorio/lxc.yml +++ b/ansible/host_vars/conflatorio/lxc.yml @@ -3,7 +3,14 @@ lxc_host__containers: state: started host_database: conflatorio-test1 test2: - state: stopped + state: started host_database: conflatorio-test2 - conflatorio-test3: - state: absent + test3: + state: started + host_database: conflatorio-test3 + test4: + state: started + host_database: conflatorio-test4 + test5: + state: started + host_database: conflatorio-test5 diff --git a/ansible/inventory b/ansible/inventory index f1e1506..db5d88a 100644 --- a/ansible/inventory +++ b/ansible/inventory @@ -36,7 +36,7 @@ all: malabaricus: elasticsearch-servers: hosts: - numquam: + conflatorio-test1: modern1: hosts: arius: |