]> git.openstreetmap.org Git - chef.git/commitdiff
Remove rsyslog as functionality replaced by systemd-journald master
authorGrant Slater <github@firefishy.com>
Mon, 2 Nov 2026 21:15:05 +0000 (21:15 +0000)
committerGrant Slater <github@firefishy.com>
Mon, 2 Nov 2026 22:26:22 +0000 (22:26 +0000)
systemd is the standard for logging in Debian 12+
rsyslog is not installed by default in Debian 12+
Ubuntu+ 20.04 "minimal" server install does not install rsyslog

Kernel logs: journalctl -k
"syslog" logs: journalctl _TRANSPORT=syslog

cookbooks/tools/recipes/default.rb

index c35a0129ff88dde4667437dc7a84991c0a734e2d..29fef95ed06142b770d661ac26508c28e9d2a106 100644 (file)
@@ -35,7 +35,6 @@ package %w[
   pciutils
   ripgrep
   rsync
   pciutils
   ripgrep
   rsync
-  rsyslog
   screen
   smartmontools
   strace
   screen
   smartmontools
   strace
@@ -52,9 +51,9 @@ if platform?("debian")
   package "wtmpdb"
 end
 
   package "wtmpdb"
 end
 
-service "rsyslog" do
-  action [:enable, :start]
-  supports :status => true, :restart => true, :reload => true
+# rsyslog functionality replaced by systemd-journald, avoid log duplication
+package "rsyslog" do
+  action :purge
 end
 
 # Install some common tools
 end
 
 # Install some common tools