Showing with 23 additions and 7 deletions.
  1. +11 −1 CHANGELOG.md
  2. +9 −3 manifests/install.pp
  3. +3 −3 metadata.json
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,18 @@ Changelog
=========

## Unreleased
[Full Changelog](https://github.com/pcfens/puppet-filebeat/compare/v0.5.0...HEAD)
[Full Changelog](https://github.com/pcfens/puppet-filebeat/compare/v0.5.2...HEAD)

## [v0.5.2](https://github.com/pcfens/puppet-filebeat/tree/v0.5.2)
[Full Changelog](https://github.com/pcfens/puppet-filebeat/compare/v0.5.1...v0.5.2)

- Use the anchor pattern instead of contain so that older versions of puppet
are supported [\#12](https://github.com/pcfens/puppet-filebeat/pull/12)

## [v0.5.1](https://github.com/pcfens/puppet-filebeat/tree/v0.5.1)
[Full Changelog](https://github.com/pcfens/puppet-filebeat/compare/v0.5.0...v0.5.1)

- Update metadata to reflect which versions of puppet are supported.

## [v0.5.0](https://github.com/pcfens/puppet-filebeat/tree/v0.5.0)
[Full Changelog](https://github.com/pcfens/puppet-filebeat/compare/v0.4.1...v0.5.0)
Expand Down
12 changes: 9 additions & 3 deletions manifests/install.pp
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
class filebeat::install {
anchor { 'filebeat::install::begin': }

case $::kernel {
'Linux': {
contain filebeat::install::linux
class{ 'filebeat::install::linux': }
Anchor['filebeat::install::begin'] -> Class['filebeat::install::linux'] -> Anchor['filebeat::install::end']
if $::filebeat::manage_repo {
contain filebeat::repo
class { 'filebeat::repo': }
Class['filebeat::repo'] -> Class['filebeat::install::linux']
}
}
'Windows': {
contain filebeat::install::windows
class{'filebeat::install::windows':}
Anchor['filebeat::install::begin'] -> Class['filebeat::install::windows'] -> Anchor['filebeat::install::end']
}
default: {
fail($filebeat::kernel_fail_message)
}
}

anchor { 'filebeat::install::end': }
}
6 changes: 3 additions & 3 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pcfens-filebeat",
"version": "0.5.1",
"version": "0.5.2",
"author": "pcfens",
"license": "Apache-2.0",
"summary": "A module to install and manage the filebeat log shipper",
Expand Down Expand Up @@ -83,11 +83,11 @@
"requirements": [
{
"name": "pe",
"version_requirement": ">= 3.5.0 < 2015.4.0"
"version_requirement": ">= 3.0.0 < 2015.4.0"
},
{
"name": "puppet",
"version_requirement": ">= 3.5.0 < 5.0.0"
"version_requirement": ">= 3.0.0 < 5.0.0"
}
]
}