cfs: add fabrics.cfg to observed files
In a previous commit we already added the openfabric / ospf configuration files, but the configuration format changed since then, so we replace them with the single configuration file used by the fabrics now. Also add a postinst script that removes the leftover folder from that change. Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com> Link: https://lore.proxmox.com/20250716130837.585796-34-g.goller@proxmox.com
This commit is contained in:
parent
19386fac7b
commit
95ff887721
3 changed files with 26 additions and 4 deletions
24
debian/pve-cluster.postinst
vendored
Normal file
24
debian/pve-cluster.postinst
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
remove_fabrics_directory() {
|
||||
LEGACY_FABRICS_DIRECTORY="/etc/pve/sdn/fabrics/"
|
||||
|
||||
if test -d "$LEGACY_FABRICS_DIRECTORY"; then
|
||||
echo "Removing legacy sdn fabrics directory ..."
|
||||
rm -d $LEGACY_FABRICS_DIRECTORY || echo "Failed to remove legacy sdn folder ${LEGACY_FABRICS_DIRECTORY}!"
|
||||
fi
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
# TODO: remove with PVE 10+
|
||||
if dpkg --compare-versions "$2" 'lt' '9.0.0'; then
|
||||
remove_fabrics_directory
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
||||
|
|
@ -81,8 +81,7 @@ my $observed = {
|
|||
'sdn/pve-ipam-state.json' => 1,
|
||||
'sdn/mac-cache.json' => 1,
|
||||
'sdn/dns.cfg' => 1,
|
||||
'sdn/fabrics/openfabric.cfg' => 1,
|
||||
'sdn/fabrics/ospf.cfg' => 1,
|
||||
'sdn/fabrics.cfg' => 1,
|
||||
'sdn/.running-config' => 1,
|
||||
'virtual-guest/cpu-models.conf' => 1,
|
||||
'virtual-guest/profiles.cfg' => 1,
|
||||
|
|
|
|||
|
|
@ -110,8 +110,7 @@ static memdb_change_t memdb_change_array[] = {
|
|||
{.path = "sdn/mac-cache.json"},
|
||||
{.path = "sdn/pve-ipam-state.json"},
|
||||
{.path = "sdn/dns.cfg"},
|
||||
{.path = "sdn/fabrics/openfabric.cfg"},
|
||||
{.path = "sdn/fabrics/ospf.cfg"},
|
||||
{.path = "sdn/fabrics.cfg"},
|
||||
{.path = "sdn/.running-config"},
|
||||
{.path = "virtual-guest/cpu-models.conf"},
|
||||
{.path = "virtual-guest/profiles.cfg"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue