diff options
author | Scott Moser <smoser@ubuntu.com> | 2016-04-11 15:20:46 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2016-04-11 15:20:46 -0400 |
commit | 763be4ecccca0c0ccb62466699cc9cd22f79adc7 (patch) | |
tree | 816b5703292f5820c4b1f3921c91ee66e532c4c1 /doc/examples | |
parent | 822ac18bc98dee35c805bf238f6bf0a1543a39dc (diff) | |
parent | 860d98bce4b607a513dc94d96335e8f105a36294 (diff) | |
download | vyos-cloud-init-763be4ecccca0c0ccb62466699cc9cd22f79adc7.tar.gz vyos-cloud-init-763be4ecccca0c0ccb62466699cc9cd22f79adc7.zip |
lxd: adds basic support for dpkg based lxd-bridge configuration.
It exposes the most useful debconf keys as cloud-init configuration keys.
Diffstat (limited to 'doc/examples')
-rw-r--r-- | doc/examples/cloud-config-lxd.txt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/examples/cloud-config-lxd.txt b/doc/examples/cloud-config-lxd.txt index b9bb4aa5..e96f314b 100644 --- a/doc/examples/cloud-config-lxd.txt +++ b/doc/examples/cloud-config-lxd.txt @@ -12,6 +12,20 @@ # storage_create_loop: set up loop based storage with size in GB # storage_pool: name of storage pool to use or create # trust_password: password required to add new clients +# bridge: dict of options for the lxd bridge +# mode: one of "new", "existing" or "none". Defaults to "new" +# name: the name of the bridge. Defaults to "lxdbr0" +# ipv4_address: an IPv4 address (e.g. 10.0.8.1) +# ipv4_netmask: a CIDR mask value (e.g. 24) +# ipv4_dhcp_first: the first IP of the DHCP range (e.g. 10.0.8.2) +# ipv4_dhcp_last: the last IP of the DHCP range (e.g. 10.0.8.254) +# ipv4_dhcp_leases: the size of the DHCP pool (e.g. 250) +# ipv4_nat: either "true" or "false" +# ipv6_address: an IPv6 address (e.g. fd98:9e0:3744::1) +# ipv6_netmask: a CIDR mask value (e.g. 64) +# ipv6_nat: either "true" or "false" +# domain: domain name to use for the bridge + lxd: init: @@ -20,6 +34,19 @@ lxd: storage_backend: zfs storage_pool: datapool storage_create_loop: 10 + bridge: + mode: new + name: lxdbr0 + ipv4_address: 10.0.8.1 + ipv4_netmask: 24 + ipv4_dhcp_first: 10.0.8.2 + ipv4_dhcp_last: 10.0.8.3 + ipv4_dhcp_leases: 250 + ipv4_nat: true + ipv6_address: fd98:9e0:3744::1 + ipv6_netmask: 64 + ipv6_nat: true + domain: lxd # The simplist working configuration is |