Skip to content

Commit

Permalink
Merge pull request #37 from sensu-plugins/release/3.0.0
Browse files Browse the repository at this point in the history
Release/3.0.0
  • Loading branch information
Jef Spaleta authored Mar 25, 2020
2 parents 6b41507 + f9c12b7 commit 3041e72
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 13 deletions.
10 changes: 2 additions & 8 deletions .bonsai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,6 @@ builds:
- "entity.system.os == 'linux'"
- "entity.system.arch == 'amd64'"
- "entity.system.platform == 'alpine'"
- platform: "centos"
arch: "amd64"
asset_filename: "#{repo}_#{version}_centos_linux_amd64.tar.gz"
sha_filename: "#{repo}_#{version}_sha512-checksums.txt"
filter:
- "entity.system.os == 'linux'"
- "entity.system.arch == 'amd64'"
- "entity.system.platform_family == 'rhel'"
- platform: "centos6"
arch: "amd64"
asset_filename: "#{repo}_#{version}_centos6_linux_amd64.tar.gz"
Expand Down Expand Up @@ -59,4 +51,6 @@ builds:
filter:
- "entity.system.os == 'linux'"
- "entity.system.arch == 'amd64'"
- "entity.system.platform_family == 'debian'"
- "entity.system.platform_version.split('.')[0] == '9'"

6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins

## [Unreleased]

## [3.0.0] - 2020-03-24
### Breaking Change
- Removed Ruby 2.1 and 2.2
- Updated sensu-plugin to '~> 4.0'

### Added
- Bonsai asset build bits

### Changed
- Updated bundler to '~> 2.1'
- Updated rubocop to '~> 0.80.1'
- Updated sensu-plugin to '~> 4.0'
- Remediated rubocop warnings

## [2.2.0] - 2019-12-17
Expand Down Expand Up @@ -76,7 +77,8 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
### Added
- initial release

[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-puppet/compare/2.2.0...HEAD
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-puppet/compare/3.0.0...HEAD
[3.0.0]: https://github.com/sensu-plugins/sensu-plugins-puppet/compare/2.2.0...3.0.0
[2.2.0]: https://github.com/sensu-plugins/sensu-plugins-puppet/compare/2.1.1...2.2.0
[2.1.1]: https://github.com/sensu-plugins/sensu-plugins-puppet/compare/2.1.0...2.1.1
[2.1.0]: https://github.com/sensu-plugins/sensu-plugins-puppet/compare/2.0.0...2.1.0
Expand Down
42 changes: 41 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,56 @@
### check-puppet-last-run.rb
Validates Puppet last run. Alerts if last Puppet run was later than threshold or it has errors

```
Usage: ./bin/check-puppet-last-run.rb (options)
-a, --agent-disabled-file PATH Path to agent disabled lock file
-c, --crit-age SECONDS Age in seconds to be a critical
-C, --crit-age-disabled SECONDS Age in seconds to crit when agent is disabled
-d, --disabled-age-limits Consider disabled age limits, otherwise use main limits
-i, --ignore-failures Ignore Puppet failures
-r, --report-restart-failures Raise alerts if restart failures have happened
-s, --summary-file PATH Location of last_run_summary.yaml file
-w, --warn-age SECONDS Age in seconds to be a warning
-W, --warn-age-disabled SECONDS Age in seconds to warn when agent is disabled
```

### check-puppet-errors.rb
Validates only Puppet run errors regardless of the execution time

```
Usage: ./bin/check-puppet-errors.rb (options)
-a, --agent-disabled-file PATH Path to agent disabled lock file
-s, --summary-file PATH Location of last_run_summary.yaml file
```

### metrics-puppet-run.rb
Provides metrics from Puppet last run in graphite format.

```
Usage: ./bin/metrics-puppet-run.rb (options)
-s, --scheme SCHEME Metric naming scheme
-p, --summary-file PATH Location of last_run_summary.yaml file
```

## Files

* /bin/checkpuppet-last-run.rb
* /bin/metrics-puppet-run.rb
* /bin/check-puppet-errors.rb

## Installation

## Installation Options
### Asset registration

Assets are the best way to make use of this plugin in Sensu Go. If you're not using an asset, please consider doing so! If you're using sensuctl 5.13 or later, you can use the following command to add the latest version of this asset:

`sensuctl asset add sensu-plugins/sensu-plugins-puppet`

If you're using an earlier version of sensuctl, you can download the asset definition from [this project's Bonsai Asset Index page](https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-puupet).


### Gem Installation

[Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)

Expand Down
4 changes: 2 additions & 2 deletions lib/sensu-plugins-puppet/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

module SensuPluginsPuppet
module Version
MAJOR = 2
MINOR = 2
MAJOR = 3
MINOR = 0
PATCH = 0

VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
Expand Down

0 comments on commit 3041e72

Please sign in to comment.