Skip to content

Commit b201ca6

Browse files
author
Todd Campbell
authored
Merge pull request #51 from sreejita-biswas/master
Bonsai integration for sensu-plugins-ssl
2 parents fdda58d + b77fac8 commit b201ca6

File tree

5 files changed

+83
-10
lines changed

5 files changed

+83
-10
lines changed

.bonsai.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
description: "#{repo}"
3+
builds:
4+
- platform: "alpine"
5+
arch: "amd64"
6+
asset_filename: "#{repo}_#{version}_alpine_linux_amd64.tar.gz"
7+
sha_filename: "#{repo}_#{version}_sha512-checksums.txt"
8+
filter:
9+
- "entity.system.os == 'linux'"
10+
- "entity.system.arch == 'amd64'"
11+
- "entity.system.platform == 'alpine'"
12+
- "entity.system.platform_version.split('.')[0] == '3'"
13+
- platform: "alpine3.8"
14+
arch: "amd64"
15+
asset_filename: "#{repo}_#{version}_alpine3.8_linux_amd64.tar.gz"
16+
sha_filename: "#{repo}_#{version}_sha512-checksums.txt"
17+
filter:
18+
- "entity.system.os == 'linux'"
19+
- "entity.system.arch == 'amd64'"
20+
- "entity.system.platform == 'alpine'"
21+
- platform: "centos"
22+
arch: "amd64"
23+
asset_filename: "#{repo}_#{version}_centos_linux_amd64.tar.gz"
24+
sha_filename: "#{repo}_#{version}_sha512-checksums.txt"
25+
filter:
26+
- "entity.system.os == 'linux'"
27+
- "entity.system.arch == 'amd64'"
28+
- "entity.system.platform_family == 'rhel'"
29+
- platform: "centos6"
30+
arch: "amd64"
31+
asset_filename: "#{repo}_#{version}_centos6_linux_amd64.tar.gz"
32+
sha_filename: "#{repo}_#{version}_sha512-checksums.txt"
33+
filter:
34+
- "entity.system.os == 'linux'"
35+
- "entity.system.arch == 'amd64'"
36+
- "entity.system.platform_family == 'rhel'"
37+
- "entity.system.platform_version.split('.')[0] == '6'"
38+
- platform: "centos7"
39+
arch: "amd64"
40+
asset_filename: "#{repo}_#{version}_centos7_linux_amd64.tar.gz"
41+
sha_filename: "#{repo}_#{version}_sha512-checksums.txt"
42+
filter:
43+
- "entity.system.os == 'linux'"
44+
- "entity.system.arch == 'amd64'"
45+
- "entity.system.platform_family == 'rhel'"
46+
- "entity.system.platform_version.split('.')[0] == '7'"
47+
- platform: "debian"
48+
arch: "amd64"
49+
asset_filename: "#{repo}_#{version}_debian_linux_amd64.tar.gz"
50+
sha_filename: "#{repo}_#{version}_sha512-checksums.txt"
51+
filter:
52+
- "entity.system.os == 'linux'"
53+
- "entity.system.arch == 'amd64'"
54+
- "entity.system.platform_family == 'debian'"
55+
- platform: "debian9"
56+
arch: "amd64"
57+
asset_filename: "#{repo}_#{version}_debian9_linux_amd64.tar.gz"
58+
sha_filename: "#{repo}_#{version}_sha512-checksums.txt"
59+
filter:
60+
- "entity.system.os == 'linux'"
61+
- "entity.system.arch == 'amd64'"

.travis.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,35 @@ cache:
44
install:
55
- bundle install
66
rvm:
7-
- 2.0
8-
- 2.1
9-
- 2.2
107
- 2.3.0
118
- 2.4.1
129
notifications:
1310
email:
1411
recipients:
15-
- sensu-plugin@sensu-plugins.io
12+
- sensu-plugin@sensu-plugins.io
1613
on_success: change
1714
on_failure: always
1815
script:
1916
- bundle exec rake default
2017
- gem build sensu-plugins-ssl.gemspec
2118
- gem install sensu-plugins-ssl-*.gem
19+
before_deploy:
20+
- bash -c "[ ! -d bonsai/ ] && git clone https://github.com/sensu/sensu-go-bonsai-asset.git bonsai || echo 'bonsai/ exists, skipping git clone'"
2221
deploy:
23-
provider: rubygems
22+
- provider: rubygems
2423
api_key:
2524
secure: Kr0fckXoukenIVyWMFVYAi+llLNNKRtfnZatnGDgqQON+vRXuuLGnta2TyBEhmPdiRU8nax5VL3K5uNSkxWmPi7Vtzizz453KShtnFGXuq73H37WIvcJ4bLcvz5K/1RWNEcXMN7/6hgSeDBUzcliFyph4p00WhdhqgFttf0UI/Y=
2625
gem: sensu-plugins-ssl
2726
on:
2827
tags: true
2928
all_branches: true
30-
rvm: 2.0
31-
rvm: 2.1
32-
rvm: 2.2
3329
rvm: 2.3.0
3430
rvm: 2.4.1
3531
repo: sensu-plugins/sensu-plugins-ssl
32+
- provider: script
33+
script: bonsai/ruby-runtime/travis-build-bonsai-assets.sh sensu-plugins-ssl
34+
skip_cleanup: true
35+
on:
36+
tags: true
37+
all_branches: true
38+
rvm: 2.4.1

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).
44
This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins/community/blob/master/HOW_WE_CHANGELOG.md).
55

66
## [Unreleased]
7+
### Breaking Changes
8+
- Bump `sensu-plugin` dependency from `~> 1.2` to `~> 4.0` you can read the changelog entries for [4.0](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#400---2018-02-17), [3.0](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#300---2018-12-04), and [2.0](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#v200---2017-03-29)
9+
10+
### Added
11+
- Travis build automation to generate Sensu Asset tarballs that can be used n conjunction with Sensu provided ruby runtime assets and the Bonsai Asset Index
12+
- Require latest sensu-plugin for [Sensu Go support](https://github.com/sensu-plugins/sensu-plugin#sensu-go-enablement)
713

814
## [2.0.1] - 2018-05-30
915
### Fixed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-ssl/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-ssl)
66
[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-ssl/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-ssl)
77
[![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-ssl.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-ssl)
8+
[![Sensu Bonsai Asset](https://img.shields.io/badge/Bonsai-Download%20Me-brightgreen.svg?colorB=89C967&logo=sensu)](https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-ssl)
89

10+
## Sensu Asset
11+
The Sensu assets packaged from this repository are built against the Sensu Ruby runtime environment. When using these assets as part of a Sensu Go resource (check, mutator or handler), make sure you include the corresponding Sensu Ruby runtime asset in the list of assets needed by the resource. The current ruby-runtime assets can be found [here](https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime) in the [Bonsai Asset Index](bonsai.sensu.io).
912
## Functionality
1013

1114
## Files

sensu-plugins-ssl.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ Gem::Specification.new do |s|
2525
s.platform = Gem::Platform::RUBY
2626
s.post_install_message = 'You can use the embedded Ruby by setting EMBEDDED_RUBY=true in /etc/default/sensu'
2727
s.require_paths = ['lib']
28-
s.required_ruby_version = '>= 2.0.0'
28+
s.required_ruby_version = '>= 2.1.0'
2929

3030
s.summary = 'Sensu plugins for SSL'
3131
s.test_files = s.files.grep(%r{^(test|spec|features)/})
3232
s.version = SensuPluginsSSL::Version::VER_STRING
3333

34-
s.add_runtime_dependency 'sensu-plugin', '~> 1.2'
34+
s.add_runtime_dependency 'sensu-plugin', '~> 4.0'
3535

3636
s.add_development_dependency 'bundler', '~> 1.7'
3737
s.add_development_dependency 'codeclimate-test-reporter', '~> 0.4'

0 commit comments

Comments
 (0)