Skip to content

Commit cd76324

Browse files
author
Sreejita Biswas
committed
bonsai integration
1 parent fdda58d commit cd76324

File tree

5 files changed

+81
-2
lines changed

5 files changed

+81
-2
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: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ script:
1919
- bundle exec rake default
2020
- gem build sensu-plugins-ssl.gemspec
2121
- gem install sensu-plugins-ssl-*.gem
22+
before_deploy:
23+
- bash -c "[ ! -d bonsai/ ] && git clone https://github.com/sensu/sensu-go-bonsai-asset.git bonsai || echo 'bonsai/ exists, skipping git clone'"
2224
deploy:
23-
provider: rubygems
25+
- provider: rubygems
2426
api_key:
2527
secure: Kr0fckXoukenIVyWMFVYAi+llLNNKRtfnZatnGDgqQON+vRXuuLGnta2TyBEhmPdiRU8nax5VL3K5uNSkxWmPi7Vtzizz453KShtnFGXuq73H37WIvcJ4bLcvz5K/1RWNEcXMN7/6hgSeDBUzcliFyph4p00WhdhqgFttf0UI/Y=
2628
gem: sensu-plugins-ssl
@@ -33,3 +35,10 @@ deploy:
3335
rvm: 2.3.0
3436
rvm: 2.4.1
3537
repo: sensu-plugins/sensu-plugins-ssl
38+
- provider: script
39+
script: bonsai/ruby-runtime/travis-build-bonsai-assets.sh sensu-plugins-disk-checks
40+
skip_cleanup: true
41+
on:
42+
tags: true
43+
all_branches: true
44+
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
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)