]> git.openstreetmap.org Git - chef.git/commitdiff
Add logrotate where required
authorGrant Slater <github@firefishy.com>
Tue, 3 Dec 2024 15:51:22 +0000 (15:51 +0000)
committerGrant Slater <github@firefishy.com>
Tue, 3 Dec 2024 15:51:22 +0000 (15:51 +0000)
cookbooks/apache/recipes/default.rb
cookbooks/chef/recipes/default.rb
cookbooks/fail2ban/recipes/default.rb
cookbooks/logstash/recipes/default.rb
cookbooks/nginx/recipes/default.rb
cookbooks/oxidized/recipes/default.rb

index d1a0aac1dd45c70e56a30b071c64ebcfde31b864..cade29d319641a4f5f18bdb628c28fa8ae791ff4 100644 (file)
@@ -24,6 +24,7 @@ include_recipe "ssl"
 package %w[
   apache2
   libwww-perl
 package %w[
   apache2
   libwww-perl
+  logrotate
 ]
 
 %w[event itk prefork worker].each do |mpm|
 ]
 
 %w[event itk prefork worker].each do |mpm|
index a27b99cbdcc4fcb5c25491f4aaf5f5b1b9208a4f..129888c95a8a729b99a2465d549ef9e9df4bc658 100644 (file)
@@ -101,6 +101,8 @@ template "/etc/chef/report.rb" do
   mode "644"
 end
 
   mode "644"
 end
 
+package "logrotate"
+
 template "/etc/logrotate.d/chef" do
   source "logrotate.erb"
   owner "root"
 template "/etc/logrotate.d/chef" do
   source "logrotate.erb"
   owner "root"
index 216572989067f79898af72f859da3b28462a1284..a218eb580fd3b22f7fa3a51e1a25dec65527cc92 100644 (file)
@@ -23,6 +23,7 @@ package %w[
   fail2ban
   python3-systemd
   ruby-webrick
   fail2ban
   python3-systemd
   ruby-webrick
+  logrotate
 ]
 
 if platform?("debian")
 ]
 
 if platform?("debian")
index bbe8450214f4168e0a770c47188987e6dbda7c1f..46bc3fea03d304b32861a7baea2f7a8217d7e044 100644 (file)
@@ -25,6 +25,7 @@ keys = data_bag_item("logstash", "keys")
 package %w[
   openjdk-11-jre-headless
   logstash
 package %w[
   openjdk-11-jre-headless
   logstash
+  logrotate
 ]
 
 cookbook_file "/var/lib/logstash/beats.crt" do
 ]
 
 cookbook_file "/var/lib/logstash/beats.crt" do
index d8e9d4d2bc566abd1d184c5aaacabf4cc643d4bc..3fcb20fdbda680e1a9ec4df392df59d72df8e7e8 100644 (file)
@@ -21,7 +21,10 @@ include_recipe "apt::nginx"
 include_recipe "prometheus"
 include_recipe "ssl"
 
 include_recipe "prometheus"
 include_recipe "ssl"
 
-package "nginx"
+package %w[
+  nginx
+  logrotate
+]
 
 template "/etc/nginx/nginx.conf" do
   source "nginx.conf.erb"
 
 template "/etc/nginx/nginx.conf" do
   source "nginx.conf.erb"
index 66c919908c8b01bf04341256621b5078747f3fec..fce3126d372673a751aaa51b61a162008ecf7fb0 100644 (file)
@@ -30,6 +30,7 @@ package %w[
   zlib1g-dev
   pkg-config
   libyaml-dev
   zlib1g-dev
   pkg-config
   libyaml-dev
+  logrotate
 ]
 
 keys = data_bag_item("oxidized", "keys")
 ]
 
 keys = data_bag_item("oxidized", "keys")