Showing with 17 additions and 1 deletion.
  1. +5 −0 CHANGELOG.md
  2. +7 −0 manifests/repo.pp
  3. +5 −1 metadata.json
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ Changelog
## Unreleased
[Full Changelog](https://github.com/pcfens/puppet-filebeat/compare/v4.0.0...HEAD)

## [v4.0.2](https://github.com/pcfens/puppet-filebeat/tree/v4.0.2)
[Full Changelog](https://github.com/pcfens/puppet-filebeat/compare/v4.0.1...v4.0.2)

- Clear the yum cache whenever we modify the yum repo config [\#217](https://github.com/pcfens/puppet-filebeat/issues/217)

## [v4.0.1](https://github.com/pcfens/puppet-filebeat/tree/v4.0.1)
[Full Changelog](https://github.com/pcfens/puppet-filebeat/compare/v4.0.0...v4.0.1)

Expand Down
7 changes: 7 additions & 0 deletions manifests/repo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,15 @@
gpgkey => 'https://artifacts.elastic.co/GPG-KEY-elasticsearch',
priority => $::filebeat::repo_priority,
enabled => 1,
notify => Exec['flush-yum-cache'],
}
}

exec { 'flush-yum-cache':
command => '/bin/yum clean all',
refreshonly => true,
path => ['/bin', '/usr/bin', '/sbin', '/usr/sbin'],
}
}
'Suse': {
exec { 'topbeat_suse_import_gpg':
Expand Down
6 changes: 5 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pcfens-filebeat",
"version": "4.0.1",
"version": "4.0.2",
"author": "pcfens",
"summary": "A module to install and manage the filebeat log shipper",
"license": "Apache-2.0",
Expand All @@ -23,6 +23,10 @@
{
"name": "puppet/archive",
"version_requirement": ">= 0.5.0 < 4.0.0"
},
{
"name": "puppetlabs/yumrepo_core",
"version_requirement": ">= 1.0.0 < 2.0.0"
}
],
"operatingsystem_support": [
Expand Down