ansible_lxd_tests/Playbooks/roles/init_lxd/templates/default_config.yml.j2

45 lines
883 B
Plaintext
Raw Normal View History

2022-07-16 23:28:28 -03:00
# --
config:
2022-07-17 01:24:18 -03:00
images.auto_update_interval: "15"
2022-07-16 23:28:28 -03:00
# --
networks:
2022-07-19 10:22:58 -03:00
- name: {{network_default_name}}
project: {{lxd_project_name}}
type: bridge
2022-07-28 20:52:07 -03:00
#config:
2022-07-19 10:22:58 -03:00
# IPv4
2022-07-28 20:52:07 -03:00
# ipv4.nat: "true"
# ipv4.address: {{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}
2022-07-19 10:22:58 -03:00
# IPv6
2022-07-28 20:52:07 -03:00
# ipv6.nat: "true"
2022-07-16 23:28:28 -03:00
# --
storage_pools:
2022-07-28 20:52:07 -03:00
- name: {{storage_pool_name}}
2022-07-19 10:22:58 -03:00
driver: {{storage_pool_driver}}
config:
size: {{storage_pool_size}}
2022-07-16 23:28:28 -03:00
source: /var/snap/lxd/common/lxd/disks/default.img
# --
profiles:
2022-07-19 10:22:58 -03:00
- name: {{lxd_project_name}}
2022-07-16 23:28:28 -03:00
devices:
eth0:
name: eth0
2022-07-19 10:22:58 -03:00
network: {{network_default_name}}
2022-07-16 23:28:28 -03:00
type: nic
root:
path: /
2022-07-28 20:52:07 -03:00
pool: {{storage_pool_name}}
2022-07-16 23:28:28 -03:00
type: disk
# --
projects:
2022-07-28 20:52:07 -03:00
- name: {{lxd_project_name}}
config:
2022-07-16 23:28:28 -03:00
features.images: "true"
features.networks: "true"
features.profiles: "true"
2022-07-28 20:52:07 -03:00
features.storage.volumes: "true"