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 is contained in:
parent
0e3dd4d7d0
commit
8c76e71dc4
@ -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}",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user