bundles/icinga2: fix dependencies for svc_systemd:icinga2
All checks were successful
bundlewrap/pipeline/head This commit looks good

icinga2 runs fine without any checks, so we now only depend on the other
configuration files managed by bw. This will also fix unwanted
dependencies, because 'file:' means *all* files, not only those provided
by this bundle. In the past, it wasn't possible to skip any file,
because that would result in icinga not properly restarting.
This commit is contained in:
Franzi 2021-01-30 17:31:05 +01:00
parent 569275329c
commit 71f033b7c2
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -260,14 +260,22 @@ for feature in ENABLED_FEATURES:
},
}
icinga_run_deps = {
'pkg_apt:icinga2',
'pkg_apt:icinga2-ido-pgsql',
}
for name in actions.keys():
icinga_run_deps.add(f'action:{name}')
for name in directories.keys():
icinga_run_deps.add(f'directory:{name}')
for name in files.keys():
icinga_run_deps.add(f'file:{name}')
for name in symlinks.keys():
icinga_run_deps.add(f'symlink:{name}')
svc_systemd = {
'icinga2': {
'needs': {
'action:icinga2_api_setup',
'file:',
'pkg_apt:',
'symlink:',
},
'needs': icinga_run_deps,
},
'icinga_statusmonitor': {
'needs': {