46 lines
865 B
Django/Jinja
46 lines
865 B
Django/Jinja
# --
|
|
config:
|
|
images.auto_update_interval: "15"
|
|
|
|
# --
|
|
networks:
|
|
- name: {{network_default_name}}
|
|
project: {{lxd_project_name}}
|
|
type: bridge
|
|
#config:
|
|
# IPv4
|
|
# ipv4.nat: "true"
|
|
# ipv4.address: {{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}
|
|
# IPv6
|
|
# ipv6.nat: "true"
|
|
|
|
# --
|
|
storage_pools:
|
|
- name: {{storage_pool_name}}
|
|
driver: {{storage_pool_driver}}
|
|
config:
|
|
size: {{storage_pool_size}}
|
|
source: {{storage_pool_source}}
|
|
|
|
# --
|
|
profiles:
|
|
- name: {{lxd_project_name}}
|
|
devices:
|
|
eth0:
|
|
name: eth0
|
|
network: {{network_default_name}}
|
|
type: nic
|
|
root:
|
|
path: /
|
|
pool: {{storage_pool_name}}
|
|
type: disk
|
|
|
|
# --
|
|
projects:
|
|
- name: {{lxd_project_name}}
|
|
config:
|
|
features.images: "true"
|
|
features.networks: "true"
|
|
features.profiles: "true"
|
|
features.storage.volumes: "true"
|