sensu-plugins-chef 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a486ea4f53c21f3917d576a572141c04fa04a238
4
- data.tar.gz: 4f9628c54bdd8af1e832b386a48709cc4b7bdbec
3
+ metadata.gz: 970636aa11cf639d50da079c3cc89c2982be795f
4
+ data.tar.gz: 7f2dbace296a812ccec4683cc6be0f6a3c295b2a
5
5
  SHA512:
6
- metadata.gz: c969d583915d8de4c099baa5508715b43ad03c48fab4ee46f1c1ef5de8661b8c649ddbac64db8853a161ee84cd6f7c5e63d88171c1d0041ad7fc19705c7b688f
7
- data.tar.gz: 477e5254863d46cb3e542d2803d1f5197aed75b0b1723e5de55a59a8706db7da6703c2a0eb0fa4ed7d695706317584be47031782c4304700c2fec7f576d9dd25
6
+ metadata.gz: 1ad64fc69cbd3d2b43e33980890b60c31fa7439d5bcf15ec521f0588c1923133ddb41d75254f0bbff518485ce262050b242e8bfbafd93a789b2203ca6385c2cc
7
+ data.tar.gz: cb51f39050e428ed96cd7812f37f9978ff9d1850d64a8115d17734bf20e1f5aeb086f7b78b6499002f884da3f43ba932391f05631d539362d40d13e70da93dc2
checksums.yaml.gz.sig CHANGED
@@ -1,4 +1 @@
1
- u��z_F �տ����� �\�J�l���e@MTx�����ut���|�,���]Md}�~���j4Sta����%rEݾ
2
- N�t�E�$���8� ��o��8x���V�O��g��P���Y_���<{Re9���v�{N�
3
- ��h�Mg�3�L��(�� Ꜧ���ןA��(PP��g����Xz= ]׫Ǡte��[0\L�KD�9�C���W��& �%�-��
4
- ��HA Z��ڇ4�� �nFw�!u��E`E>�{s
1
+ *���)H����*.��x��5L}2#M��:�7A������h���Ĵ ^iHs$*��ğ���7X͌��Cb״��M� ��Jʕ��7�x�)䜧!�T>!L7H�-��v���� ۑ�ፇ63��O@ڗ(H�y�Ok"�G%���%n��hɝ'������Kj�)S0(���xS}B��N`��GYFv4E���V��}}� ������Cfy�)�D�l�f-
data.tar.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -3,7 +3,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).
3
3
 
4
4
  This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
5
5
 
6
- ## Unreleased][unreleased]
6
+ ## Unreleased
7
+
8
+ ## [0.0.4] - 2015-09-03
9
+ ### Changed
10
+ - bumped chef gem to version chef-11.18.12
7
11
 
8
12
  ## [0.0.3] - 2015-07-14
9
13
  ### Changed
@@ -20,4 +24,4 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
20
24
  - added binstubs
21
25
 
22
26
  ### Changed
23
- - removed cruft from /lib
27
+ - removed cruft from /lib
data/README.md CHANGED
@@ -18,6 +18,6 @@
18
18
 
19
19
  ## Installation
20
20
 
21
- [Installation and Setup](https://github.com/sensu-plugins/documentation/blob/master/user_docs/installation_instructions.md)
21
+ [Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)
22
22
 
23
23
  ## Notes
@@ -62,7 +62,7 @@ class ChefNodesStatusChecker < Sensu::Plugin::Check::CLI
62
62
  @connection ||= chef_api_connection
63
63
  end
64
64
 
65
- def nodes_last_seen # rubocop:disable all
65
+ def nodes_last_seen
66
66
  nodes = connection.get_rest('/nodes')
67
67
  nodes.keys.map do |node_name|
68
68
  node = connection.get_rest("/nodes/#{node_name}")
@@ -36,7 +36,7 @@ require 'sensu-plugin/check/cli'
36
36
  # Check Chef Server
37
37
  #
38
38
  class CheckChefServer < Sensu::Plugin::Check::CLI
39
- def run # rubocop:disable all
39
+ def run
40
40
  # chef-server-ctl must be run with elevated privs. fail if we're not uid 0
41
41
  if Process.uid != 0
42
42
  unknown('check-chef-server must be run with elevated privileges so that chef-server-ctl can be executed')
@@ -47,7 +47,7 @@ require 'ridley'
47
47
  # Chef Node
48
48
  #
49
49
  class ChefNode < Sensu::Handler
50
- def chef_node_exists? # rubocop:disable all
50
+ def chef_node_exists?
51
51
  retried = 0
52
52
  begin
53
53
  Ridley.open(
@@ -86,8 +86,7 @@ class ChefNode < Sensu::Handler
86
86
  def filter; end
87
87
 
88
88
  def handle
89
- # #YELLOW
90
- unless chef_node_exists? # rubocop:disable GuardClause, IfUnlessModifier
89
+ unless chef_node_exists? # rubocop:disable GuardClause
91
90
  delete_sensu_client!
92
91
  end
93
92
  end
@@ -2,7 +2,7 @@ module SensuPluginsChef
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- PATCH = 3
5
+ PATCH = 4
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-chef
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu Plugins and contributors
@@ -30,7 +30,7 @@ cert_chain:
30
30
  8sHuVruarogxxKPBzlL2is4EUb6oN/RdpGx2l4254+nyR+abg//Ed27Ym0PkB4lk
31
31
  HP0m8WSjZmFr109pE/sVsM5jtOCvogyujQOjNVGN4gz1wwPr
32
32
  -----END CERTIFICATE-----
33
- date: 2015-07-14 00:00:00.000000000 Z
33
+ date: 2015-09-04 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: chef
@@ -38,14 +38,14 @@ dependencies:
38
38
  requirements:
39
39
  - - '='
40
40
  - !ruby/object:Gem::Version
41
- version: 11.10.4
41
+ version: 11.18.12
42
42
  type: :runtime
43
43
  prerelease: false
44
44
  version_requirements: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - '='
47
47
  - !ruby/object:Gem::Version
48
- version: 11.10.4
48
+ version: 11.18.12
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: ridley
51
51
  requirement: !ruby/object:Gem::Requirement
@@ -94,14 +94,14 @@ dependencies:
94
94
  requirements:
95
95
  - - '='
96
96
  - !ruby/object:Gem::Version
97
- version: '0.30'
97
+ version: 0.32.1
98
98
  type: :development
99
99
  prerelease: false
100
100
  version_requirements: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - '='
103
103
  - !ruby/object:Gem::Version
104
- version: '0.30'
104
+ version: 0.32.1
105
105
  - !ruby/object:Gem::Dependency
106
106
  name: rspec
107
107
  requirement: !ruby/object:Gem::Requirement
@@ -200,7 +200,11 @@ dependencies:
200
200
  - - "~>"
201
201
  - !ruby/object:Gem::Version
202
202
  version: '0.10'
203
- description: Sensu plugins for chef
203
+ description: |-
204
+ This plugin provides native Chef instrumentation
205
+ for monitoring, including: report stale nodes,
206
+ service health, as well as a handler to remove
207
+ stale Sensu clients
204
208
  email: "<sensu-users@googlegroups.com>"
205
209
  executables:
206
210
  - handler-chef-node.rb
@@ -243,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
243
247
  version: '0'
244
248
  requirements: []
245
249
  rubyforge_project:
246
- rubygems_version: 2.4.6
250
+ rubygems_version: 2.4.8
247
251
  signing_key:
248
252
  specification_version: 4
249
253
  summary: Sensu plugins for chef
metadata.gz.sig CHANGED
Binary file