Skip to content

Commit

Permalink
Merge pull request #236 from redBorder/development
Browse files Browse the repository at this point in the history
Release 4.4.1
  • Loading branch information
nilsver authored Oct 31, 2024
2 parents ccf7b69 + fe39666 commit 2156543
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
cookbook-rb-manager CHANGELOG
===============

## 4.4.1

- JuanSheba
- [8e22478] Add creation of the logrotate file with the template
- [77bbbfb] Create Template

## 4.4.0

- Miguel Negrón
Expand Down
2 changes: 1 addition & 1 deletion resources/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
maintainer_email '[email protected]'
license 'AGPL-3.0'
description 'Installs/Configures redborder manager'
version '4.4.0'
version '4.4.1'

depends 'rb-common'
depends 'chef-server'
Expand Down
8 changes: 8 additions & 0 deletions resources/recipes/prepare_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@
options: node['chef-client']['options'])
end

template '/etc/logrotate.d/logstash' do
source 'logstash_log-rotate.erb'
owner 'root'
group 'root'
mode 0644
retries 2
end

service 'chef-client' do
if node['redborder']['services']['chef-client'] && node.run_state['cluster_installed']
action [:enable, :start]
Expand Down
16 changes: 16 additions & 0 deletions resources/templates/default/logstash_log-rotate.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
###############################################################################
# Generated by Chef for <%= node[:hostname] %>
###############################################################################

/var/log/logstash/*.log {
size=20M
missingok
rotate 5
compress
delaycompress
notifempty
copytruncate
postrotate
rm -f /var/log/logstash/*.gz > /dev/null
endscript
}

0 comments on commit 2156543

Please sign in to comment.