Compare commits

...

2 Commits

Author SHA1 Message Date
181111a951 Merge remote-tracking branch 'refs/remotes/origin/master' 2025-06-13 15:33:42 +08:00
e2bec3f717 seperated preseed data 2025-06-13 15:32:15 +08:00
3 changed files with 47 additions and 2 deletions

View File

@ -73,11 +73,17 @@
register: incus_ready
until: incus_ready.rc == 0
- name: Run incus admin init with preseed
shell: incus admin init --preseed < init-preseed.yml
- name: Preseed network and storage
command: incus admin init --preseed
args:
chdir: "{{ playbook_dir }}"
stdin: "{{ lookup('file', 'preseed-network-storage.yml') }}"
- name: Preseed profile and global config
command: incus admin init --preseed
args:
chdir: "{{ playbook_dir }}"
stdin: "{{ lookup('file', 'preseed-profile.yml') }}"
- name: Add current user to incus-admin group
user:

View File

@ -0,0 +1,13 @@
networks:
- config:
ipv4.address: 10.69.69.1/24
ipv4.nat: "true"
ipv6.address: none
name: incusbr0
type: bridge
storage_pools:
- config:
source: /var/lib/incus/storage-pools/default
name: default
driver: dir

26
preseed-profile.yml Normal file
View File

@ -0,0 +1,26 @@
profiles:
- name: default
config: {}
description: Default Incus profile
devices:
eth0:
name: eth0
network: incusbr0
type: nic
root:
path: /
pool: default
type: disk
config:
core.https_address: :8443
projects:
- name: default
config:
features.images: "true"
features.networks: "true"
features.profiles: "true"
features.storage.volumes: "true"
features.storage.buckets: "true"
features.networks.zones: "true"