Also add a missing package when using LXD with LVM backend which is not yet fully configurable, see: https://bugs.launchpad.net/openstack-ansible/+bug/1678073 Change-Id: I384a8aa7713946b349fcf34dfb7d62ae2177ae2d
19 lines
529 B
Django/Jinja
19 lines
529 B
Django/Jinja
#!/bin/bash
|
|
# {{ ansible_managed }}
|
|
|
|
# This is a script to configure lxd system settings.
|
|
# "/usr/bin/lxd init"
|
|
|
|
/usr/bin/lxd init \
|
|
--auto \
|
|
--network-address={{ lxd_bind_address }} \
|
|
--network-port={{ lxd_bind_port }} \
|
|
--storage-backend={{ lxd_storage_backend }} \
|
|
{% if lxd_storage_pool is defined %}
|
|
--storage-pool={{ lxd_storage_pool }} \
|
|
{% endif %}
|
|
{% if lxd_storage_create_device is defined %}
|
|
--storage-create-device={{ lxd_storage_create_device }} \
|
|
{% endif %}
|
|
--trust-password={{ lxd_trust_password }}
|