Commit 894019ed authored by Mattia Rizzolo's avatar Mattia Rizzolo

lxd: rename "subnet" variable to "lxd_subnet" and set it in group_vars

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mapreri@ubuntu.com>
parent 4a74fc48
...@@ -2,3 +2,4 @@ ...@@ -2,3 +2,4 @@
local_webserver: nginx local_webserver: nginx
letsencrypt_email: webmaster@ubuntu-it.org letsencrypt_email: webmaster@ubuntu-it.org
lxd_subnet: 10.0.0
...@@ -26,16 +26,15 @@ ...@@ -26,16 +26,15 @@
votantonio.ubuntu-it.org: bromuro.lxd:80 votantonio.ubuntu-it.org: bromuro.lxd:80
- role: lxd - role: lxd
subnet: 10.0.0
- role: lxd-container - role: lxd-container
name: spock name: spock
ip: 10.0.0.2 ip: "{{ lxd_subnet }}.2"
image: debian/jessie/amd64 image: debian/jessie/amd64
expose_ports: expose_ports:
- 2222 - 2222
- role: lxd-container - role: lxd-container
name: bromuro name: bromuro
ip: 10.0.0.3 ip: "{{ lxd_subnet }}.3"
image: ubuntu/trusty/amd64 image: ubuntu/trusty/amd64
server=/lxd/{{ subnet }}.1 server=/lxd/{{ lxd_subnet }}.1
bind-interfaces bind-interfaces
except-interface=lxdbr0 except-interface=lxdbr0
...@@ -17,16 +17,16 @@ LXD_DOMAIN="lxd" ...@@ -17,16 +17,16 @@ LXD_DOMAIN="lxd"
# IPv4 # IPv4
## IPv4 address (e.g. 10.0.8.1) ## IPv4 address (e.g. 10.0.8.1)
LXD_IPV4_ADDR="{{ subnet }}.1" LXD_IPV4_ADDR="{{ lxd_subnet }}.1"
## IPv4 netmask (e.g. 255.255.255.0) ## IPv4 netmask (e.g. 255.255.255.0)
LXD_IPV4_NETMASK="255.255.255.0" LXD_IPV4_NETMASK="255.255.255.0"
## IPv4 network (e.g. 10.0.8.0/24) ## IPv4 network (e.g. 10.0.8.0/24)
LXD_IPV4_NETWORK="{{ subnet }}.0/24" LXD_IPV4_NETWORK="{{ lxd_subnet }}.0/24"
## IPv4 DHCP range (e.g. 10.0.8.2,10.0.8.254) ## IPv4 DHCP range (e.g. 10.0.8.2,10.0.8.254)
LXD_IPV4_DHCP_RANGE="{{ subnet }}.2,{{ subnet }}.254" LXD_IPV4_DHCP_RANGE="{{ lxd_subnet }}.2,{{ lxd_subnet }}.254"
## IPv4 DHCP number of hosts (e.g. 250) ## IPv4 DHCP number of hosts (e.g. 250)
LXD_IPV4_DHCP_MAX="252" LXD_IPV4_DHCP_MAX="252"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment