ruby-puppetdb 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Modulefile +1 -1
- data/examples/query_resource_examples.pp +2 -2
- data/lib/puppet/parser/functions/query_nodes.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dec863ab919696114a9da121aaec40fd31a90e05
|
4
|
+
data.tar.gz: 0dd5e7af4d6e2cc1111cd29692d63aafd6d8e2e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02a0770ac9e9428807f2a4142d4d9adbf9ea934b89219176f5ddf7749105a1316fba9a554f297619d9a14c34ffe737f20a4a8980e84448872c3998fc44fe0207
|
7
|
+
data.tar.gz: 8c5f1a6c02450204db7604007c5250c6a46701dc7d97c97dd60588cefdcb60d76b62df385b89d9e7142279a055b415512fa51ef2955134c01b4bc8ee2fb52e61
|
data/Modulefile
CHANGED
@@ -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.
|
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.
|
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-
|
12
|
+
date: 2013-04-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|