Skip to content

Commit

Permalink
Merge pull request #60 from redBorder/development
Browse files Browse the repository at this point in the history
Release 3.2.1
  • Loading branch information
nilsver authored Oct 31, 2024
2 parents bf0ea34 + 09c8a23 commit 75f5750
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-proxy CHANGELOG
===============

## 3.2.1

- JuanSheba
- [01ff98d] Add config to create the file with the template
- [84462e7] Create template

## 3.2.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 @@ -3,7 +3,7 @@
maintainer_email 'git@redborder.com'
license 'AGPL-3.0'
description 'Installs/Configures redborder proxy'
version '3.2.0'
version '3.2.1'

depends 'rb-common'
depends 'rb-selinux'
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 @@ -34,6 +34,14 @@
)
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']
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 #
###############################################################################

/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 75f5750

Please sign in to comment.