sensu-plugins-openstack 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: a87b4c75965f1cd8c8fccf7506144b3647ef5a42
4
- data.tar.gz: 01aabba4a69a2d69a27a326d73f61f8d8bab2fba
3
+ metadata.gz: 137dfeab64f07ff389040c465e3a148e75b8fe41
4
+ data.tar.gz: 4a2d3ab84755442d516a1c39e1635207b0576726
5
5
  SHA512:
6
- metadata.gz: c22f8b3d4890e2348a0a04cc03a0193b3de13be11e654ea5a519f557069097407140bf3f858bdc097b416710062a6fe6622b7db8465419b07a6504f14b3cde21
7
- data.tar.gz: b9cb07e255582ec1b474e589fd4b001881b59a8ab8c3f797ddf310c8e8bc7c3cab39c5b7ae0f75fd7a63d36f78931807037b80d985e6ab0a946d8b63526642f9
6
+ metadata.gz: 254ccc0f4b574632a83a4240db2be1d984b890eb1c6c60ca726f7fa78b1aa76f6221a6a6ba91a908461abdaabec78f65df838d81b297bc04055337036b6413ee
7
+ data.tar.gz: 01b92e9b59870315a90bee2b3a062a4da1842519e721bcd3f60f661efe88dcce5ee7f879f5e26520248b7b0beffff2ad7804022ece11b7466b322922e01c98a8
checksums.yaml.gz.sig CHANGED
Binary file
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-29
9
+ ### Changed
10
+ - nova: optionally get auth from ENV
7
11
 
8
12
  ## [0.0.3] - 2015-07-14
9
13
  ### Changed
data/README.md CHANGED
@@ -25,7 +25,7 @@
25
25
 
26
26
  ## Installation
27
27
 
28
- [Installation and Setup](https://github.com/sensu-plugins/documentation/blob/master/user_docs/installation_instructions.md)
28
+ [Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)
29
29
 
30
30
  ## Notes
31
31
 
@@ -79,13 +79,13 @@ class KeystoneTokenCounts < Sensu::Plugin::Metric::CLI::Graphite
79
79
  end
80
80
  metrics = %w(active expired total)
81
81
  sql = <<-eosql
82
- SELECT #{ 'user.name,' if config[:by_user] }
82
+ SELECT #{'user.name,' if config[:by_user]}
83
83
  SUM(IF(NOW() <= expires,1,0)) AS active,
84
84
  SUM(IF(NOW() > expires,1,0)) AS expired,
85
85
  COUNT(*) AS total FROM token
86
86
  eosql
87
87
  sql.concat <<-eosql if config[:by_user]
88
- LEFT JOIN user ON token.user_id = user.id #{ where }
88
+ LEFT JOIN user ON token.user_id = user.id #{where}
89
89
  GROUP BY user.name
90
90
  eosql
91
91
  begin
@@ -7,6 +7,7 @@
7
7
 
8
8
  # #RED
9
9
  from argparse import ArgumentParser
10
+ from os import getenv
10
11
  import socket
11
12
  import time
12
13
 
@@ -31,10 +32,10 @@ def output_metric(name, value):
31
32
 
32
33
  def main():
33
34
  parser = ArgumentParser()
34
- parser.add_argument('-u', '--user', default='admin')
35
- parser.add_argument('-p', '--password', default='admin')
36
- parser.add_argument('-t', '--tenant', default='admin')
37
- parser.add_argument('-a', '--auth-url', default='http://localhost:5000/v2.0')
35
+ parser.add_argument('-u', '--user', default=getenv('OS_USERNAME', 'admin'))
36
+ parser.add_argument('-p', '--password', default=getenv('OS_PASSWORD', 'admin'))
37
+ parser.add_argument('-t', '--tenant', default=getenv('OS_TENANT_NAME', 'admin'))
38
+ parser.add_argument('-a', '--auth-url', default=getenv('OS_AUTH_URL', 'http://localhost:5000/v2.0'))
38
39
  parser.add_argument('-S', '--service-type', default='compute')
39
40
  parser.add_argument('-H', '--host')
40
41
  parser.add_argument('-s', '--scheme', default=DEFAULT_SCHEME)
@@ -2,6 +2,7 @@
2
2
 
3
3
  # #RED
4
4
  from argparse import ArgumentParser
5
+ from os import getenv
5
6
  import socket
6
7
  import time
7
8
 
@@ -14,10 +15,10 @@ def output_metric(name, value):
14
15
 
15
16
  def main():
16
17
  parser = ArgumentParser()
17
- parser.add_argument('-u', '--user', default='admin')
18
- parser.add_argument('-p', '--password', default='admin')
19
- parser.add_argument('-t', '--tenant', default='admin')
20
- parser.add_argument('-a', '--auth-url', default='http://localhost:5000/v2.0')
18
+ parser.add_argument('-u', '--user', default=getenv('OS_USERNAME', 'admin'))
19
+ parser.add_argument('-p', '--password', default=getenv('OS_PASSWORD', 'admin'))
20
+ parser.add_argument('-t', '--tenant', default=getenv('OS_TENANT_NAME', 'admin'))
21
+ parser.add_argument('-a', '--auth-url', default=getenv('OS_AUTH_URL', 'http://localhost:5000/v2.0'))
21
22
  parser.add_argument('-S', '--service-type', default='compute')
22
23
  parser.add_argument('-s', '--scheme', default=DEFAULT_SCHEME)
23
24
  args = parser.parse_args()
@@ -2,7 +2,7 @@ module SensuPluginsOpenstack
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-openstack
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-29 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: sensu-plugin
@@ -66,14 +66,14 @@ dependencies:
66
66
  requirements:
67
67
  - - '='
68
68
  - !ruby/object:Gem::Version
69
- version: '0.30'
69
+ version: 0.32.1
70
70
  type: :development
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - '='
75
75
  - !ruby/object:Gem::Version
76
- version: '0.30'
76
+ version: 0.32.1
77
77
  - !ruby/object:Gem::Dependency
78
78
  name: rspec
79
79
  requirement: !ruby/object:Gem::Requirement
@@ -219,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
219
219
  version: '0'
220
220
  requirements: []
221
221
  rubyforge_project:
222
- rubygems_version: 2.4.6
222
+ rubygems_version: 2.4.8
223
223
  signing_key:
224
224
  specification_version: 4
225
225
  summary: Sensu plugins for openstack
metadata.gz.sig CHANGED
Binary file