Files
openstack-ansible-os_nova/templates/lxd-init.sh.j2
ArchiFleKs 12d958e0aa Allow to use a custom block device with LXD init
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
2017-03-31 13:41:20 +02:00

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 }}