Skip to content

Commit

Permalink
Release new version
Browse files Browse the repository at this point in the history
  • Loading branch information
manegron committed Oct 10, 2024
2 parents eecacdb + de3dab4 commit feb973d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 8 deletions.
11 changes: 8 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
cookbook-rsyslog CHANGELOG
===============

## 2.0.1

- Miguel Negrón
- [ab8cdbc] Add pre and postun to clean the cookbook

## 2.0.0

- Miguel Negrón
Expand All @@ -11,7 +16,7 @@ cookbook-rsyslog CHANGELOG
- [6f036b4] Update rpm.yml
- David Vanhoucke
- [0c105e4] remove rsyslog version
- Miguel Negron
- Miguel Negrón
- [7250f0e] Bump version
- [2b04f41] Remove omfile
- [82227c9] Add line
Expand All @@ -27,7 +32,7 @@ cookbook-rsyslog CHANGELOG
- [ef332b8] Merge pull request #5 from redBorder/feature/18535_send_alarm_to_vault
- [a00e3eb] Update README.md
- [6f036b4] Update rpm.yml
- Miguel Negron
- Miguel Negrón
- [2b04f41] Remove omfile
- [82227c9] Add line
- [5885383] fix rsyslog
Expand All @@ -38,7 +43,7 @@ cookbook-rsyslog CHANGELOG

## 1.0.6

- Miguel Negron
- Miguel Negrón
- [805eb97] Lint providers 3
- [34948b5] Lint helper
- [ab3cdd0] Lint providers 2
Expand Down
20 changes: 16 additions & 4 deletions packaging/rpm/cookbook-rsyslog.spec
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ cp -f -r resources/* %{buildroot}/var/chef/cookbooks/rsyslog/
chmod -R 0755 %{buildroot}/var/chef/cookbooks/rsyslog
install -D -m 0644 README.md %{buildroot}/var/chef/cookbooks/rsyslog/README.md


%pre
if [ -d /var/chef/cookbooks/rsyslog ]; then
rm -rf /var/chef/cookbooks/rsyslog
fi

%post
case "$1" in
Expand All @@ -44,6 +46,12 @@ case "$1" in
;;
esac

%postun
# Deletes directory when uninstall the package
if [ "$1" = 0 ] && [ -d /var/chef/cookbooks/rsyslog ]; then
rm -rf /var/chef/cookbooks/rsyslog
fi

%files
%defattr(0755,root,root)
%{rsys_lib}
Expand All @@ -56,10 +64,14 @@ esac
%doc

%changelog
* Fri Jan 07 2022 David Vanhoucke <dvanhoucke@redborder.com> - 1.0.4-1
* Thu Oct 10 2024 Miguel Negrón <manegron@redborder.com>
- Add pre and postun

* Fri Jan 07 2022 David Vanhoucke <dvanhoucke@redborder.com>
- change register to consul
* Mon Nov 15 2021 Jordi Hernandez <jhernandez@redborder.com> - 1.0.1-1

* Mon Nov 15 2021 Jordi Hernandez <jhernandez@redborder.com>
- Corrected source cookbook template

* Fri Nov 12 2021 Javier Rodríguez <javiercrg@redborder.com> - 1.0.0-1
* Fri Nov 12 2021 Javier Rodríguez <javiercrg@redborder.com>
- first spec version
2 changes: 1 addition & 1 deletion resources/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
maintainer_email 'git@redborder.com'
license 'AGPL-3.0'
description 'Installs/Configures rsyslog in redborder manager'
version '2.0.0'
version '2.0.1'

0 comments on commit feb973d

Please sign in to comment.