Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
servers-config
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Sistemisti
servers-config
Commits
894019ed
Commit
894019ed
authored
Mar 16, 2018
by
Mattia Rizzolo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lxd: rename "subnet" variable to "lxd_subnet" and set it in group_vars
Signed-off-by:
Mattia Rizzolo
<
mapreri@ubuntu.com
>
parent
4a74fc48
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
envs/prod/group_vars/roadhouse.yml
envs/prod/group_vars/roadhouse.yml
+1
-0
playbooks/roadhouse.yml
playbooks/roadhouse.yml
+2
-3
roles/lxd/templates/dnsmasq.conf.j2
roles/lxd/templates/dnsmasq.conf.j2
+1
-1
roles/lxd/templates/lxd-bridge-default.j2
roles/lxd/templates/lxd-bridge-default.j2
+3
-3
No files found.
envs/prod/group_vars/roadhouse.yml
View file @
894019ed
...
@@ -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
playbooks/roadhouse.yml
View file @
894019ed
...
@@ -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
roles/lxd/templates/dnsmasq.conf.j2
View file @
894019ed
server=/lxd/{{ subnet }}.1
server=/lxd/{{
lxd_
subnet }}.1
bind-interfaces
bind-interfaces
except-interface=lxdbr0
except-interface=lxdbr0
roles/lxd/templates/lxd-bridge-default.j2
View file @
894019ed
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment