sensu-plugins-minio 1.0.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +1 -4
- data/.ruby-version +1 -1
- data/Gemfile.lock +3 -3
- data/README.md +17 -4
- data/bin/check-minio-update.rb +2 -2
- data/bin/setup +2 -1
- data/lib/sensu/plugins/minio/version.rb +1 -1
- data/lib/sensu/plugins/minio.rb +3 -0
- data/sensu-plugins-minio.gemspec +2 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3da02c21a9ca9083e888f91591fd486c705a111fcfeead7b58090334a11249b5
|
4
|
+
data.tar.gz: 0b5e8501d1cf7e2208acb6fdf29c3694224a9188a2ef1039f1e16c95f94c4ad6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ffbcd6be6fb63b83243a74eae4c261810d9612481eccdd2a88d29a315a568dfc3ac9bd102ade8fd132527c5d2739a7fdd7be609ace075c08a01269fed4e6e35
|
7
|
+
data.tar.gz: cfc58251802761e266d202492c549da316b90d9431eb599717f3a1e3bdfef9a779b70797666271696ce9a45b164631ea5e98f2bd4067e284fe54e38f0088ecb3
|
data/.github/workflows/main.yml
CHANGED
@@ -13,16 +13,13 @@ jobs:
|
|
13
13
|
test:
|
14
14
|
|
15
15
|
runs-on: ubuntu-latest
|
16
|
-
strategy:
|
17
|
-
matrix:
|
18
|
-
ruby-version: ['2.3.3', '2.5.1', '2.7.0']
|
19
16
|
|
20
17
|
steps:
|
21
18
|
- uses: actions/checkout@v3
|
22
19
|
- name: Set up Ruby
|
23
20
|
uses: ruby/setup-ruby@v1
|
24
21
|
with:
|
25
|
-
ruby-version:
|
22
|
+
ruby-version: '2.7.0'
|
26
23
|
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
27
24
|
- name: Lint
|
28
25
|
run: bundle exec rubocop
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.7.
|
1
|
+
2.7.5
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
sensu-plugins-minio (1.
|
4
|
+
sensu-plugins-minio (1.1.1)
|
5
5
|
sensu-plugin (~> 2.1)
|
6
6
|
|
7
7
|
GEM
|
@@ -14,8 +14,8 @@ GEM
|
|
14
14
|
rexml
|
15
15
|
diff-lcs (1.5.0)
|
16
16
|
hashdiff (1.0.1)
|
17
|
-
jaro_winkler (1.
|
18
|
-
json (2.
|
17
|
+
jaro_winkler (1.6.0)
|
18
|
+
json (2.7.1)
|
19
19
|
mixlib-cli (1.7.0)
|
20
20
|
parallel (1.19.2)
|
21
21
|
parser (3.1.2.0)
|
data/README.md
CHANGED
@@ -24,9 +24,9 @@ Check if a the local minio version is in the most recent version
|
|
24
24
|
|
25
25
|
### Optional parameters
|
26
26
|
|
27
|
-
Checks will check the default URL https://dl.min.io/server/minio/release
|
28
|
-
and the default Platform linux-amd64 for updates. Adjust these optional
|
29
|
-
parameters if you want to check a different platform or for whatever
|
27
|
+
Checks will check the default URL https://dl.min.io/server/minio/release
|
28
|
+
and the default Platform linux-amd64 for updates. Adjust these optional
|
29
|
+
parameters if you want to check a different platform or for whatever
|
30
30
|
reason need to check a different URL.
|
31
31
|
|
32
32
|
| Parameter | Description |
|
@@ -42,7 +42,20 @@ reason need to check a different URL.
|
|
42
42
|
|
43
43
|
## Development
|
44
44
|
|
45
|
-
|
45
|
+
Install rbenv and ruby-build to get a ruby 2.7.x on your system (running on ubuntu 20.04).
|
46
|
+
|
47
|
+
yay -S rbenv ruby-build
|
48
|
+
|
49
|
+
Add the rbenv shell extension (`eval "$(rbenv init -)"`) to your shell config (e.g. `~/.zshrc`) and install ruby 2.7.0
|
50
|
+
|
51
|
+
rbenv install 2.7.0
|
52
|
+
|
53
|
+
After checking out the repo verify, that your system is using the 2.7.0 ruby:
|
54
|
+
|
55
|
+
# rbenv version
|
56
|
+
2.7.0 (set by ..../sensu-plugins-minio/.ruby-version)
|
57
|
+
|
58
|
+
Run `bin/setup` to install dependencies. You can
|
46
59
|
also run `bin/console` for an interactive prompt that will allow you to
|
47
60
|
experiment.
|
48
61
|
|
data/bin/check-minio-update.rb
CHANGED
@@ -58,7 +58,7 @@ class CheckMinioUpdate < Sensu::Plugin::Check::CLI
|
|
58
58
|
|
59
59
|
def latest_version
|
60
60
|
@latest_version ||= begin
|
61
|
-
uri = URI.parse("#{config[:checkurl]}/#{config[:platform]}/minio.
|
61
|
+
uri = URI.parse("#{config[:checkurl]}/#{config[:platform]}/minio.sha256sum") # rubocop:disable Layout/LineLength
|
62
62
|
response = Net::HTTP.get_response(uri)
|
63
63
|
|
64
64
|
unless response.is_a?(Net::HTTPSuccess)
|
@@ -72,7 +72,7 @@ class CheckMinioUpdate < Sensu::Plugin::Check::CLI
|
|
72
72
|
def local_version
|
73
73
|
@local_version ||= begin
|
74
74
|
stdout, stderr, status = Open3.capture3(
|
75
|
-
{ 'PATH' => ENV['PATH'] }, 'minio
|
75
|
+
{ 'PATH' => ENV['PATH'] }, 'journalctl --boot --unit minio | grep "Version: RELEASE" | tail -n 1', unsetenv_others: true # rubocop:disable Layout/LineLength
|
76
76
|
)
|
77
77
|
|
78
78
|
unless status.success?
|
data/bin/setup
CHANGED
data/sensu-plugins-minio.gemspec
CHANGED
@@ -8,7 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.name = 'sensu-plugins-minio'
|
9
9
|
spec.version = Sensu::Plugins::Minio::VERSION
|
10
10
|
spec.licenses = ['MIT']
|
11
|
-
spec.authors = ['Hauke Altmann', 'Jonathan Schlue'
|
11
|
+
spec.authors = ['Hauke Altmann', 'Jonathan Schlue',
|
12
|
+
'Benjamin Meichsner']
|
12
13
|
spec.email = ['info@aboutsource.net']
|
13
14
|
|
14
15
|
spec.summary = 'Check if there are updates for the local '\
|
metadata
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-minio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hauke Altmann
|
8
8
|
- Jonathan Schlue
|
9
|
+
- Benjamin Meichsner
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date:
|
13
|
+
date: 2024-08-26 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: sensu-plugin
|
@@ -121,6 +122,7 @@ files:
|
|
121
122
|
- bin/check-minio-update.rb
|
122
123
|
- bin/console
|
123
124
|
- bin/setup
|
125
|
+
- lib/sensu/plugins/minio.rb
|
124
126
|
- lib/sensu/plugins/minio/version.rb
|
125
127
|
- sensu-plugins-minio.gemspec
|
126
128
|
homepage: https://github.com/aboutsource/sensu-plugins-minio
|
@@ -142,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
144
|
- !ruby/object:Gem::Version
|
143
145
|
version: '0'
|
144
146
|
requirements: []
|
145
|
-
rubygems_version: 3.
|
147
|
+
rubygems_version: 3.1.6
|
146
148
|
signing_key:
|
147
149
|
specification_version: 4
|
148
150
|
summary: Check if there are updates for the local minio server instance
|