ruby-puppetdb 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e8e0df9d18cfc59ffb962a25c10b132868509775
4
- data.tar.gz: cf3c238caddc048a136ed564b4399d9403df5bce
3
+ metadata.gz: dec863ab919696114a9da121aaec40fd31a90e05
4
+ data.tar.gz: 0dd5e7af4d6e2cc1111cd29692d63aafd6d8e2e9
5
5
  SHA512:
6
- metadata.gz: 8b2d859b33fbb6f85f18d7bd0c7f5348c444747c9eaa1e49982e4178b7c6d2b0d0ac9b51de7189495173dd1f9f2ccce81f0bf6f309a1aca5f0af0e1667bc737d
7
- data.tar.gz: 001af2581e7ceeb512a27d156f630ff23441eb6294ae137a71cd172d3d99668bcb498f4820313c374a5f07d5cc5836857111259fec33c56b10199cd72354397f
6
+ metadata.gz: 02a0770ac9e9428807f2a4142d4d9adbf9ea934b89219176f5ddf7749105a1316fba9a554f297619d9a14c34ffe737f20a4a8980e84448872c3998fc44fe0207
7
+ data.tar.gz: 8c5f1a6c02450204db7604007c5250c6a46701dc7d97c97dd60588cefdcb60d76b62df385b89d9e7142279a055b415512fa51ef2955134c01b4bc8ee2fb52e61
data/Modulefile CHANGED
@@ -1,5 +1,5 @@
1
1
  name 'dalen-puppetdbquery'
2
- version '1.0.0-pre5'
2
+ version '1.0.1'
3
3
  author 'Erik Dalén <erik.gustav.dalen@gmail.com>'
4
4
  license 'Apache License V2'
5
5
  summary 'Query functions for the PuppetDB API'
@@ -30,12 +30,12 @@ $rabbit_password = $rabbit_params['password']
30
30
  notice("rabbit password: ${rabbit_password}")
31
31
 
32
32
  # return the fqdn of the host that has applied
33
- $vnc_proxy_host = unique(query_nodes('Class[Nova::Vncproxy]', 'fqdn'))
33
+ $vnc_proxy_host = unique(query_nodes('Class[Nova::Vncproxy]', 'fqdn'))
34
34
  notice("vnc proxy host ${vnc_proxy_host}")
35
35
  # check the size of this thing and make some decisions
36
36
 
37
37
  # figure out sql connection
38
- $nova_db_host = unique(query_nodes('Class[Nova::Db::Mysql]', 'fqdn'))
38
+ $nova_db_host = unique(query_nodes('Class[Nova::Db::Mysql]', 'fqdn'))
39
39
  $nova_db_resources = query_resource('Class[Nova::Db::Mysql]', 'architecture=amd64')
40
40
  $nova_db_class = $nova_db_resources['Class[Nova::Db::Mysql]']
41
41
  $nova_db_params = $nova_db_class['parameters']
@@ -19,7 +19,7 @@ EOT
19
19
  puppetdb = PuppetDB::Connection.new(Puppet::Util::Puppetdb.server, Puppet::Util::Puppetdb.port)
20
20
  if fact then
21
21
  query = puppetdb.parse_query query, :facts if query.is_a? String
22
- puppetdb.facts([fact], query).each_value.to_a
22
+ puppetdb.facts([fact], query).each_value.collect { |facts| facts[fact] }
23
23
  else
24
24
  query = puppetdb.parse_query query, :nodes if query.is_a? String
25
25
  puppetdb.query(:nodes, query).collect { |n| n['name'] }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-puppetdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Bode
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-09 00:00:00.000000000 Z
12
+ date: 2013-04-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json