Skip to content

Commit 96859e6

Browse files
committed
incus host config
1 parent 502d1f5 commit 96859e6

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

incus/pillar.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# vi: set ft=yaml:
22

33
incus:
4+
config: # optional, host config values to apply
5+
core.metrics_address: ":8444"
6+
core.metrics_authentication: False
47
images: # optional, images to predownload on server, no images are preloaded by default
58
ubuntu/jammy/amd64: # alias
69
source: images:ubuntu/jammy/amd64

incus/settings.sls

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@ incus_image_pillar_{{ loop.index }}:
3434
{%- endfor %}
3535
{%- endif %}
3636

37+
{%- if "config" in pillar["incus"] %}
38+
{%- for config_key, config_val in pillar["incus"]["config"].items() %}
39+
incus_host_config_set_{{ loop.index }}:
40+
cmd.run:
41+
- name: incus config set {{ config_key }}={{ config_val }}
42+
43+
{%- endfor %}
44+
{%- endif %}
45+
3746
incus_profile_create_autostart:
3847
cmd.run:
3948
- name: incus profile list | grep -q -e "| autostart *|" || incus profile create autostart

0 commit comments

Comments
 (0)