bundles/{lldp,nfs-server,smartd}: move package dependencies to metadata

This commit is contained in:
Franzi 2022-02-18 22:37:07 +01:00
parent a01c28da21
commit 8434eacd94
Signed by: kunsi
GPG key ID: 12E3D2136B818350
4 changed files with 16 additions and 11 deletions

View file

@ -2,22 +2,22 @@ defaults = {
'apt': { 'apt': {
'packages': { 'packages': {
'lldpd': { 'lldpd': {
'needed_by': [ 'needed_by': {
'directory:/etc/lldpd.d', 'directory:/etc/lldpd.d',
'file:/etc/lldp.conf', 'file:/etc/lldp.conf',
'svc_systemd:lldpd', 'svc_systemd:lldpd',
], },
}, },
}, },
}, },
'pacman': { 'pacman': {
'packages': { 'packages': {
'lldpd': { 'lldpd': {
'needed_by': [ 'needed_by': {
'directory:/etc/lldpd.d', 'directory:/etc/lldpd.d',
'file:/etc/lldp.conf', 'file:/etc/lldp.conf',
'svc_systemd:lldpd', 'svc_systemd:lldpd',
], },
}, },
}, },
}, },

View file

@ -4,10 +4,10 @@ defaults = {
'apt': { 'apt': {
'packages': { 'packages': {
'nfs-server': { 'nfs-server': {
'needed_by': [ 'needed_by': {
'svc_systemd:nfs-kernel-server', 'svc_systemd:nfs-kernel-server',
'action:nfs_reload_shares', 'action:nfs_reload_shares',
], },
}, },
}, },
}, },

View file

@ -12,9 +12,6 @@ files = {
svc_systemd = { svc_systemd = {
'smartd': { 'smartd': {
'needs': {
'pkg_apt:smartmontools',
},
'enabled': None, # FIXME this is symlinked to smartmontools.service on bullseye 'enabled': None, # FIXME this is symlinked to smartmontools.service on bullseye
}, },
} }

View file

@ -1,8 +1,16 @@
defaults = { defaults = {
'apt': { 'apt': {
'packages': { 'packages': {
'smartmontools': {}, 'smartmontools': {
'nvme-cli': {}, 'needed_by': {
'svc_systemd:smartd',
},
},
'nvme-cli': {
'needed_by': {
'svc_systemd:smartd',
},
},
}, },
}, },
'icinga2_api': { 'icinga2_api': {