zcollective 0.0.11 → 0.0.12
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 +13 -5
- data/bin/zcollective +30 -0
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
|
|
2
|
+
!binary "U0hBMQ==":
|
|
3
|
+
metadata.gz: !binary |-
|
|
4
|
+
NjM2YzRlNzJiMzJjOWJjMWVlNzk2MmVhZjU4OGNkMWEzMjNhYmJkMg==
|
|
5
|
+
data.tar.gz: !binary |-
|
|
6
|
+
ZjUyY2I3NGVjZDdkYTdmZjI5ZjFkZDE2MmRjZTViYjFlNmQ0ZTE0ZQ==
|
|
5
7
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
|
|
8
|
+
metadata.gz: !binary |-
|
|
9
|
+
YjQyOTY5MTRkMTJlZjU4ZTkwNDlkMzY0OGQxNWNjNTE0OGNkN2UxNTkxZTY4
|
|
10
|
+
ZDdhYmMxZDM0NDA0ZDM0ZTk0YTAzNTU0NTdmYjA4NGJlOTVkZjAzZmNkODNl
|
|
11
|
+
MGVkY2RiNGQ0YzMwNTZmNjVlOTU1NzQ5YTc0OWI5ZTk2ODEwZTg=
|
|
12
|
+
data.tar.gz: !binary |-
|
|
13
|
+
OTQ4MmYyMWJmZWJmNWEzZTcwZGVkOThhYjUyNmIyZjNhODdmMzU5ZDZiODY0
|
|
14
|
+
MTcyMTU5ZWFmYmQ5ZTE0Y2YyZDc1NmM1NjgzNzBiMGU1Y2RmMjVmMjk2ZmVk
|
|
15
|
+
ZTA5NTZlZjIzNWQ2OTUyZjU0ZmU2NmRjMzUzYzMxZmZiZTEzMzc=
|
data/bin/zcollective
CHANGED
|
@@ -99,6 +99,12 @@ optparse = OptionParser.new do |opts|
|
|
|
99
99
|
options[:template] = t
|
|
100
100
|
end
|
|
101
101
|
|
|
102
|
+
options[:ignore_classes] = []
|
|
103
|
+
opts.on('-i', '--ignore-classes classname1,classname2', Array, "Skip hosts containing given puppet classes.") do |i|
|
|
104
|
+
options[:ignore_classes] = i
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
|
|
102
108
|
end
|
|
103
109
|
|
|
104
110
|
begin
|
|
@@ -465,6 +471,30 @@ end
|
|
|
465
471
|
hosts.each do |host,data|
|
|
466
472
|
|
|
467
473
|
|
|
474
|
+
########################################
|
|
475
|
+
# Skip nodes containing ignored classes
|
|
476
|
+
#
|
|
477
|
+
|
|
478
|
+
unless options[:ignore_classes].empty?
|
|
479
|
+
|
|
480
|
+
skip = false
|
|
481
|
+
|
|
482
|
+
options[:ignore_classes].each do |classname|
|
|
483
|
+
|
|
484
|
+
if data[:mcollective][:classes].include? classname
|
|
485
|
+
|
|
486
|
+
skip = true
|
|
487
|
+
|
|
488
|
+
log.info "Skipping host #{host} containing ignored class: #{classname}"
|
|
489
|
+
|
|
490
|
+
end
|
|
491
|
+
|
|
492
|
+
end
|
|
493
|
+
|
|
494
|
+
next if skip
|
|
495
|
+
|
|
496
|
+
end
|
|
497
|
+
|
|
468
498
|
|
|
469
499
|
###### Condition 1 #############################################
|
|
470
500
|
#
|
metadata
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zcollective
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jon Topper
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2014-09-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: netaddr
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - '>='
|
|
17
|
+
- - ! '>='
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: 1.5.0
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- - '>='
|
|
24
|
+
- - ! '>='
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: 1.5.0
|
|
27
27
|
description: ZCollective is a tool used to configure Zabbix using data discovered
|
|
@@ -32,8 +32,8 @@ executables:
|
|
|
32
32
|
extensions: []
|
|
33
33
|
extra_rdoc_files: []
|
|
34
34
|
files:
|
|
35
|
-
- lib/zcollective/zabbixclient.rb
|
|
36
35
|
- bin/zcollective
|
|
36
|
+
- lib/zcollective/zabbixclient.rb
|
|
37
37
|
homepage: http://github.com/scalefactory/zcollective
|
|
38
38
|
licenses: []
|
|
39
39
|
metadata: {}
|
|
@@ -43,17 +43,17 @@ require_paths:
|
|
|
43
43
|
- lib
|
|
44
44
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
45
45
|
requirements:
|
|
46
|
-
- - '>='
|
|
46
|
+
- - ! '>='
|
|
47
47
|
- !ruby/object:Gem::Version
|
|
48
48
|
version: '0'
|
|
49
49
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
50
50
|
requirements:
|
|
51
|
-
- - '>='
|
|
51
|
+
- - ! '>='
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
53
|
version: '0'
|
|
54
54
|
requirements: []
|
|
55
55
|
rubyforge_project:
|
|
56
|
-
rubygems_version: 2.
|
|
56
|
+
rubygems_version: 2.4.1
|
|
57
57
|
signing_key:
|
|
58
58
|
specification_version: 4
|
|
59
59
|
summary: Zabbix/MCollective integration
|