chore: set core.https_address for incus (#249)

- check the current config and update core.https_address if its wrong

Reviewed-on: https://git.query.consul/unkinben/puppet-prod/pulls/249
This commit was merged in pull request #249.
This commit is contained in:
2025-04-07 11:04:12 +10:00
parent 0e3dd4d7d0
commit 8c76e71dc4
+8
View File
@@ -54,4 +54,12 @@ class incus (
subscribe => File['/root/incus.preseed.yaml'],
}
}
# set core.https_address
if $facts['incus']['config']['core.https_address'] != "${server_addr}:${server_port}" {
exec { 'incus_config_set_core_https_address':
path => ['/bin', '/usr/bin'],
command => "incus config set core.https_address ${server_addr}:${server_port}",
}
}
}