2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-11-22 02:12:25 +00:00

Leave dhclient leases of Debian and Ubuntu out of captures

dhclient keeps its leases in /var/lib/dhcp there, and on EL also as
*.leases next to the *.lease files already excluded. Keep dhcpd.leases
of a DHCP server, which lives in the same directory.
This commit is contained in:
Markus Hilger
2026-11-03 19:34:23 +01:00
parent e65a4e960b
commit e8206bb968
+3 -1
View File
@@ -165,7 +165,9 @@ CAPTURE_DIRS_ONLY = ('/var/log', '/var/cache/apt')
# writes the node's own (as with the netplan files masked in capture_fs)
CAPTURE_DROP_FILES = (
'/var/lib/systemd/random-seed', '/var/lib/rsyslog/imjournal.state',
'/var/lib/NetworkManager/*.lease', '/var/lib/dhclient/*.lease',
'/var/lib/NetworkManager/*.lease', '/var/lib/dhclient/*.lease*',
# dhclient on Debian and Ubuntu, unlike dhcpd.leases of a DHCP server
'/var/lib/dhcp/dhclient*.leases',
'/root/.*_history', '/root/.lesshst', '/root/.viminfo',
'/etc/NetworkManager/system-connections/*',
'/etc/sysconfig/network-scripts/ifcfg-*')