4
# Do the manual steps a user has to run on a fresh system to get an lxd
5
# bridge so the juju lxd provider can function. Taken from changes made
6
# to cloud-init to do approximately this.
8
debconf-communicate << EOF
9
set lxd/setup-bridge true
10
set lxd/bridge-domain lxd
11
set lxd/bridge-name lxdbr0
12
set lxd/bridge-ipv4 true
13
set lxd/bridge-ipv4-address 10.0.8.1
14
set lxd/bridge-ipv4-dhcp-first 10.0.8.2
15
set lxd/bridge-ipv4-dhcp-last 10.0.8.254
16
set lxd/bridge-ipv4-dhcp-leases 252
17
set lxd/bridge-ipv4-netmask 24
18
set lxd/bridge-ipv4-nat true
19
set lxd/bridge-ipv6 false
22
rm -rf /etc/default/lxd-bridge
24
dpkg-reconfigure lxd --frontend=noninteractive
26
# Must run a command for systemd socket activation to start the service