mcollective-client 2.5.0 → 2.5.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of mcollective-client might be problematic. Click here for more details.
- data/spec/unit/plugins/mcollective/connector/activemq_spec.rb +4 -4
- data/spec/unit/plugins/mcollective/connector/rabbitmq_spec.rb +4 -4
- data/spec/unit/plugins/mcollective/discovery/flatfile_spec.rb +9 -3
- data/spec/unit/plugins/mcollective/packagers/rpmpackage_packager_spec.rb +3 -3
- metadata +209 -210
- data/bin/mc-call-agent +0 -54
@@ -122,10 +122,10 @@ module MCollective
|
|
122
122
|
Activemq.any_instance.stubs(:get_option).with("activemq.pool.2.port", 61613).returns(6164)
|
123
123
|
Activemq.any_instance.stubs(:get_bool_option).with("activemq.pool.2.ssl", "false").returns(true)
|
124
124
|
Activemq.any_instance.stubs(:get_bool_option).with("activemq.pool.2.ssl.fallback", "false").returns(true)
|
125
|
-
Activemq.any_instance.stubs(:get_env_or_option).with("STOMP_USER", "activemq.pool.1.user").returns("user1")
|
126
|
-
Activemq.any_instance.stubs(:get_env_or_option).with("STOMP_USER", "activemq.pool.2.user").returns("user2")
|
127
|
-
Activemq.any_instance.stubs(:get_env_or_option).with("STOMP_PASSWORD", "activemq.pool.1.password").returns("password1")
|
128
|
-
Activemq.any_instance.stubs(:get_env_or_option).with("STOMP_PASSWORD", "activemq.pool.2.password").returns("password2")
|
125
|
+
Activemq.any_instance.stubs(:get_env_or_option).with("STOMP_USER", "activemq.pool.1.user", '').returns("user1")
|
126
|
+
Activemq.any_instance.stubs(:get_env_or_option).with("STOMP_USER", "activemq.pool.2.user", '').returns("user2")
|
127
|
+
Activemq.any_instance.stubs(:get_env_or_option).with("STOMP_PASSWORD", "activemq.pool.1.password", '').returns("password1")
|
128
|
+
Activemq.any_instance.stubs(:get_env_or_option).with("STOMP_PASSWORD", "activemq.pool.2.password", '').returns("password2")
|
129
129
|
Activemq.any_instance.instance_variable_set("@subscriptions", subscription)
|
130
130
|
Activemq.any_instance.instance_variable_set("@connection", connection)
|
131
131
|
end
|
@@ -122,10 +122,10 @@ module MCollective
|
|
122
122
|
Rabbitmq.any_instance.stubs(:get_option).with("rabbitmq.pool.2.port", 61613).returns(6164)
|
123
123
|
Rabbitmq.any_instance.stubs(:get_bool_option).with("rabbitmq.pool.2.ssl", "false").returns(true)
|
124
124
|
Rabbitmq.any_instance.stubs(:get_bool_option).with("rabbitmq.pool.2.ssl.fallback", "false").returns(true)
|
125
|
-
Rabbitmq.any_instance.stubs(:get_env_or_option).with("STOMP_USER", "rabbitmq.pool.1.user").returns("user1")
|
126
|
-
Rabbitmq.any_instance.stubs(:get_env_or_option).with("STOMP_USER", "rabbitmq.pool.2.user").returns("user2")
|
127
|
-
Rabbitmq.any_instance.stubs(:get_env_or_option).with("STOMP_PASSWORD", "rabbitmq.pool.1.password").returns("password1")
|
128
|
-
Rabbitmq.any_instance.stubs(:get_env_or_option).with("STOMP_PASSWORD", "rabbitmq.pool.2.password").returns("password2")
|
125
|
+
Rabbitmq.any_instance.stubs(:get_env_or_option).with("STOMP_USER", "rabbitmq.pool.1.user", '').returns("user1")
|
126
|
+
Rabbitmq.any_instance.stubs(:get_env_or_option).with("STOMP_USER", "rabbitmq.pool.2.user", '').returns("user2")
|
127
|
+
Rabbitmq.any_instance.stubs(:get_env_or_option).with("STOMP_PASSWORD", "rabbitmq.pool.1.password", '').returns("password1")
|
128
|
+
Rabbitmq.any_instance.stubs(:get_env_or_option).with("STOMP_PASSWORD", "rabbitmq.pool.2.password", '').returns("password2")
|
129
129
|
Rabbitmq.any_instance.instance_variable_set("@subscriptions", subscription)
|
130
130
|
Rabbitmq.any_instance.instance_variable_set("@connection", connection)
|
131
131
|
end
|
@@ -44,14 +44,20 @@ module MCollective
|
|
44
44
|
end
|
45
45
|
|
46
46
|
it "should fail for invalid identities" do
|
47
|
-
["
|
47
|
+
["four four", "foo$bar", "foo/bar"].each do |host|
|
48
48
|
File.expects(:readlines).with("/nonexisting").returns([host])
|
49
49
|
|
50
50
|
expect {
|
51
|
-
Flatfile.discover(Util.empty_filter, 0, 0, @client)
|
52
|
-
}.to raise_error(
|
51
|
+
Flatfile.discover(Util.empty_filter, 0, 0, @client)
|
52
|
+
}.to raise_error(/Identities can only match/)
|
53
53
|
end
|
54
54
|
end
|
55
|
+
|
56
|
+
it "should skip empty lines and comments" do
|
57
|
+
host = ["one", "#two", "", "four"]
|
58
|
+
File.expects(:readlines).with("/nonexisting").returns(host)
|
59
|
+
Flatfile.discover(Util.empty_filter, 0, 0, @client).should == ["one", "four"]
|
60
|
+
end
|
55
61
|
end
|
56
62
|
end
|
57
63
|
end
|
@@ -161,10 +161,10 @@ module MCollective
|
|
161
161
|
|
162
162
|
describe '#move_packages' do
|
163
163
|
it 'should copy all the build artifacts to the cwd' do
|
164
|
-
File.stubs(:join).with('rspec_rpm', 'noarch', 'mcollective-rspec-*-1.0-1
|
165
|
-
File.stubs(:join).with('rspec_srpm', 'mcollective-rspec-1.0-1
|
164
|
+
File.stubs(:join).with('rspec_rpm', 'noarch', 'mcollective-rspec-*-1.0-1*.noarch.rpm').returns('rspec_rpm/noarch/mcollective-rspec-*-1.0-1.noarch.rpm')
|
165
|
+
File.stubs(:join).with('rspec_srpm', 'mcollective-rspec-1.0-1*.src.rpm').returns('rspec_srpm/mcollective-rspec-1.0-1*.src.rpm')
|
166
166
|
Dir.stubs(:glob).with('rspec_rpm/noarch/mcollective-rspec-*-1.0-1.noarch.rpm').returns(['1.rpm', '2.rpm'])
|
167
|
-
Dir.stubs(:glob).with('rspec_srpm/mcollective-rspec-1.0-1
|
167
|
+
Dir.stubs(:glob).with('rspec_srpm/mcollective-rspec-1.0-1*.src.rpm').returns(['1.src.rpm'])
|
168
168
|
FileUtils.expects(:cp).with(['1.rpm', '2.rpm', '1.src.rpm'], '.')
|
169
169
|
@packager.send(:move_packages)
|
170
170
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mcollective-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-05-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: systemu
|
@@ -67,190 +67,189 @@ extensions: []
|
|
67
67
|
extra_rdoc_files: []
|
68
68
|
files:
|
69
69
|
- lib/mcollective.rb
|
70
|
-
- lib/mcollective/facts.rb
|
71
|
-
- lib/mcollective/registration/base.rb
|
72
70
|
- lib/mcollective/aggregate.rb
|
73
|
-
- lib/mcollective/
|
74
|
-
- lib/mcollective/security/base.rb
|
75
|
-
- lib/mcollective/security.rb
|
76
|
-
- lib/mcollective/matcher.rb
|
77
|
-
- lib/mcollective/agent.rb
|
78
|
-
- lib/mcollective/vendor.rb
|
79
|
-
- lib/mcollective/log.rb
|
80
|
-
- lib/mcollective/ddl/validatorddl.rb
|
81
|
-
- lib/mcollective/ddl/discoveryddl.rb
|
82
|
-
- lib/mcollective/ddl/base.rb
|
83
|
-
- lib/mcollective/ddl/dataddl.rb
|
84
|
-
- lib/mcollective/ddl/agentddl.rb
|
71
|
+
- lib/mcollective/connector/base.rb
|
85
72
|
- lib/mcollective/validator.rb
|
86
|
-
- lib/mcollective/
|
87
|
-
- lib/mcollective/
|
88
|
-
- lib/mcollective/
|
73
|
+
- lib/mcollective/matcher.rb
|
74
|
+
- lib/mcollective/discovery.rb
|
75
|
+
- lib/mcollective/vendor/require_vendored.rb
|
76
|
+
- lib/mcollective/connector.rb
|
77
|
+
- lib/mcollective/client.rb
|
78
|
+
- lib/mcollective/registration/base.rb
|
89
79
|
- lib/mcollective/rpc/result.rb
|
90
80
|
- lib/mcollective/rpc/reply.rb
|
91
|
-
- lib/mcollective/rpc/helpers.rb
|
92
81
|
- lib/mcollective/rpc/audit.rb
|
93
82
|
- lib/mcollective/rpc/stats.rb
|
94
83
|
- lib/mcollective/rpc/client.rb
|
84
|
+
- lib/mcollective/rpc/request.rb
|
85
|
+
- lib/mcollective/rpc/helpers.rb
|
86
|
+
- lib/mcollective/rpc/progress.rb
|
87
|
+
- lib/mcollective/rpc/agent.rb
|
95
88
|
- lib/mcollective/rpc/actionrunner.rb
|
96
|
-
- lib/mcollective/
|
89
|
+
- lib/mcollective/exceptions.rb
|
90
|
+
- lib/mcollective/log.rb
|
91
|
+
- lib/mcollective/data.rb
|
92
|
+
- lib/mcollective/logger.rb
|
97
93
|
- lib/mcollective/pluginmanager.rb
|
98
|
-
- lib/mcollective/
|
99
|
-
- lib/mcollective/
|
100
|
-
- lib/mcollective/
|
94
|
+
- lib/mcollective/pluginpackager/agent_definition.rb
|
95
|
+
- lib/mcollective/pluginpackager/standard_definition.rb
|
96
|
+
- lib/mcollective/ssl.rb
|
97
|
+
- lib/mcollective/config.rb
|
98
|
+
- lib/mcollective/pluginpackager.rb
|
101
99
|
- lib/mcollective/message.rb
|
100
|
+
- lib/mcollective/monkey_patches.rb
|
102
101
|
- lib/mcollective/registration.rb
|
103
|
-
- lib/mcollective/
|
104
|
-
- lib/mcollective/
|
105
|
-
- lib/mcollective/
|
102
|
+
- lib/mcollective/vendor.rb
|
103
|
+
- lib/mcollective/aggregate/result.rb
|
104
|
+
- lib/mcollective/aggregate/result/collection_result.rb
|
105
|
+
- lib/mcollective/aggregate/result/numeric_result.rb
|
106
|
+
- lib/mcollective/aggregate/result/base.rb
|
107
|
+
- lib/mcollective/aggregate/base.rb
|
108
|
+
- lib/mcollective/facts/base.rb
|
109
|
+
- lib/mcollective/data/result.rb
|
110
|
+
- lib/mcollective/data/base.rb
|
111
|
+
- lib/mcollective/util.rb
|
112
|
+
- lib/mcollective/security.rb
|
106
113
|
- lib/mcollective/generators/agent_generator.rb
|
107
|
-
- lib/mcollective/generators/base.rb
|
108
114
|
- lib/mcollective/generators/data_generator.rb
|
115
|
+
- lib/mcollective/generators/templates/action_snippet.erb
|
116
|
+
- lib/mcollective/generators/templates/plugin.erb
|
109
117
|
- lib/mcollective/generators/templates/data_input_snippet.erb
|
110
118
|
- lib/mcollective/generators/templates/ddl.erb
|
111
|
-
- lib/mcollective/generators/
|
112
|
-
- lib/mcollective/
|
113
|
-
- lib/mcollective/
|
114
|
-
- lib/mcollective/
|
119
|
+
- lib/mcollective/generators/base.rb
|
120
|
+
- lib/mcollective/matcher/parser.rb
|
121
|
+
- lib/mcollective/matcher/scanner.rb
|
122
|
+
- lib/mcollective/cache.rb
|
123
|
+
- lib/mcollective/agent.rb
|
115
124
|
- lib/mcollective/windows_daemon.rb
|
116
|
-
- lib/mcollective/
|
125
|
+
- lib/mcollective/shell.rb
|
126
|
+
- lib/mcollective/runnerstats.rb
|
127
|
+
- lib/mcollective/rpc.rb
|
128
|
+
- lib/mcollective/ddl.rb
|
129
|
+
- lib/mcollective/application.rb
|
130
|
+
- lib/mcollective/facts.rb
|
131
|
+
- lib/mcollective/unix_daemon.rb
|
132
|
+
- lib/mcollective/security/base.rb
|
133
|
+
- lib/mcollective/generators.rb
|
117
134
|
- lib/mcollective/optionparser.rb
|
118
|
-
- lib/mcollective/util.rb
|
119
|
-
- lib/mcollective/cache.rb
|
120
135
|
- lib/mcollective/logger/console_logger.rb
|
121
136
|
- lib/mcollective/logger/file_logger.rb
|
122
137
|
- lib/mcollective/logger/base.rb
|
123
138
|
- lib/mcollective/logger/syslog_logger.rb
|
124
|
-
- lib/mcollective/
|
125
|
-
- lib/mcollective/
|
126
|
-
- lib/mcollective/
|
127
|
-
- lib/mcollective/
|
128
|
-
- lib/mcollective/
|
129
|
-
- lib/mcollective/
|
130
|
-
- lib/mcollective/
|
131
|
-
- lib/mcollective/facts/base.rb
|
132
|
-
- lib/mcollective/ddl.rb
|
133
|
-
- lib/mcollective/exceptions.rb
|
134
|
-
- lib/mcollective/ssl.rb
|
135
|
-
- lib/mcollective/pluginpackager/standard_definition.rb
|
136
|
-
- lib/mcollective/pluginpackager/agent_definition.rb
|
137
|
-
- lib/mcollective/rpc.rb
|
138
|
-
- lib/mcollective/data/result.rb
|
139
|
-
- lib/mcollective/data/base.rb
|
140
|
-
- lib/mcollective/matcher/parser.rb
|
141
|
-
- lib/mcollective/matcher/scanner.rb
|
142
|
-
- lib/mcollective/connector.rb
|
143
|
-
- lib/mcollective/config.rb
|
144
|
-
- lib/mcollective/monkey_patches.rb
|
145
|
-
- lib/mcollective/runnerstats.rb
|
146
|
-
- bin/mc-call-agent
|
139
|
+
- lib/mcollective/applications.rb
|
140
|
+
- lib/mcollective/ddl/discoveryddl.rb
|
141
|
+
- lib/mcollective/ddl/validatorddl.rb
|
142
|
+
- lib/mcollective/ddl/base.rb
|
143
|
+
- lib/mcollective/ddl/dataddl.rb
|
144
|
+
- lib/mcollective/ddl/agentddl.rb
|
145
|
+
- lib/mcollective/agents.rb
|
147
146
|
- bin/mco
|
148
|
-
- spec/
|
149
|
-
- spec/fixtures/
|
150
|
-
- spec/fixtures/util/4.in
|
151
|
-
- spec/fixtures/util/4.out
|
152
|
-
- spec/fixtures/util/1.out
|
153
|
-
- spec/fixtures/util/3.out
|
147
|
+
- spec/fixtures/test-public.pem
|
148
|
+
- spec/fixtures/test-private.pem
|
154
149
|
- spec/fixtures/util/2.out
|
155
150
|
- spec/fixtures/util/3.in
|
151
|
+
- spec/fixtures/util/3.out
|
152
|
+
- spec/fixtures/util/1.in
|
156
153
|
- spec/fixtures/util/2.in
|
157
|
-
- spec/fixtures/
|
158
|
-
- spec/fixtures/
|
154
|
+
- spec/fixtures/util/1.out
|
155
|
+
- spec/fixtures/util/4.out
|
156
|
+
- spec/fixtures/util/4.in
|
159
157
|
- spec/fixtures/test-cert.pem
|
160
|
-
- spec/fixtures/test
|
158
|
+
- spec/fixtures/application/test.rb
|
161
159
|
- spec/monkey_patches/instance_variable_defined.rb
|
162
|
-
- spec/spec.opts
|
163
160
|
- spec/Rakefile
|
161
|
+
- spec/unit/unix_daemon_spec.rb
|
162
|
+
- spec/unit/string_spec.rb
|
163
|
+
- spec/unit/log_spec.rb
|
164
|
+
- spec/unit/shell_spec.rb
|
165
|
+
- spec/unit/matcher_spec.rb
|
166
|
+
- spec/unit/windows_daemon_spec.rb
|
167
|
+
- spec/unit/runner_spec.rb
|
168
|
+
- spec/unit/ssl_spec.rb
|
164
169
|
- spec/unit/registration/base_spec.rb
|
165
|
-
- spec/unit/
|
166
|
-
- spec/unit/
|
170
|
+
- spec/unit/client_spec.rb
|
171
|
+
- spec/unit/data_spec.rb
|
172
|
+
- spec/unit/rpc/stats_spec.rb
|
173
|
+
- spec/unit/rpc/agent_spec.rb
|
174
|
+
- spec/unit/rpc/client_spec.rb
|
175
|
+
- spec/unit/rpc/helpers_spec.rb
|
176
|
+
- spec/unit/rpc/actionrunner_spec.rb
|
177
|
+
- spec/unit/rpc/reply_spec.rb
|
178
|
+
- spec/unit/rpc/result_spec.rb
|
179
|
+
- spec/unit/rpc/request_spec.rb
|
180
|
+
- spec/unit/plugins/mcollective/connector/rabbitmq_spec.rb
|
181
|
+
- spec/unit/plugins/mcollective/connector/activemq_spec.rb
|
167
182
|
- spec/unit/plugins/mcollective/discovery/flatfile_spec.rb
|
183
|
+
- spec/unit/plugins/mcollective/discovery/stdin_spec.rb
|
168
184
|
- spec/unit/plugins/mcollective/discovery/mc_spec.rb
|
169
|
-
- spec/unit/plugins/mcollective/security/psk_spec.rb
|
170
|
-
- spec/unit/plugins/mcollective/application/plugin_spec.rb
|
171
|
-
- spec/unit/plugins/mcollective/agent/rpcutil_spec.rb
|
172
|
-
- spec/unit/plugins/mcollective/validator/typecheck_validator_spec.rb
|
173
185
|
- spec/unit/plugins/mcollective/validator/shellsafe_validator_spec.rb
|
174
|
-
- spec/unit/plugins/mcollective/validator/ipv6address_validator_spec.rb
|
175
|
-
- spec/unit/plugins/mcollective/validator/ipv4address_validator_spec.rb
|
176
|
-
- spec/unit/plugins/mcollective/validator/length_validator_spec.rb
|
177
186
|
- spec/unit/plugins/mcollective/validator/array_validator_spec.rb
|
187
|
+
- spec/unit/plugins/mcollective/validator/ipv4address_validator_spec.rb
|
178
188
|
- spec/unit/plugins/mcollective/validator/regex_validator_spec.rb
|
179
|
-
- spec/unit/plugins/mcollective/
|
189
|
+
- spec/unit/plugins/mcollective/validator/typecheck_validator_spec.rb
|
190
|
+
- spec/unit/plugins/mcollective/validator/ipv6address_validator_spec.rb
|
191
|
+
- spec/unit/plugins/mcollective/validator/length_validator_spec.rb
|
192
|
+
- spec/unit/plugins/mcollective/audit/logfile_spec.rb
|
180
193
|
- spec/unit/plugins/mcollective/packagers/ospackage_spec.rb
|
181
|
-
- spec/unit/plugins/mcollective/packagers/debpackage_packager_spec.rb
|
182
194
|
- spec/unit/plugins/mcollective/packagers/modulepackage_packager_spec.rb
|
183
|
-
- spec/unit/plugins/mcollective/
|
184
|
-
- spec/unit/plugins/mcollective/
|
185
|
-
- spec/unit/plugins/mcollective/aggregate/summary_spec.rb
|
195
|
+
- spec/unit/plugins/mcollective/packagers/rpmpackage_packager_spec.rb
|
196
|
+
- spec/unit/plugins/mcollective/packagers/debpackage_packager_spec.rb
|
186
197
|
- spec/unit/plugins/mcollective/aggregate/average_spec.rb
|
187
198
|
- spec/unit/plugins/mcollective/aggregate/sum_spec.rb
|
199
|
+
- spec/unit/plugins/mcollective/aggregate/summary_spec.rb
|
188
200
|
- spec/unit/plugins/mcollective/facts/yaml_facts_spec.rb
|
189
|
-
- spec/unit/plugins/mcollective/data/fstat_data_spec.rb
|
190
201
|
- spec/unit/plugins/mcollective/data/agent_data_spec.rb
|
191
|
-
- spec/unit/plugins/mcollective/
|
192
|
-
- spec/unit/
|
193
|
-
- spec/unit/
|
194
|
-
- spec/unit/
|
195
|
-
- spec/unit/util_spec.rb
|
196
|
-
- spec/unit/ssl_spec.rb
|
197
|
-
- spec/unit/client_spec.rb
|
198
|
-
- spec/unit/ddl/base_spec.rb
|
199
|
-
- spec/unit/ddl/discoveryddl_spec.rb
|
200
|
-
- spec/unit/ddl/dataddl_spec.rb
|
201
|
-
- spec/unit/ddl/agentddl_spec.rb
|
202
|
-
- spec/unit/runnerstats_spec.rb
|
203
|
-
- spec/unit/rpc/client_spec.rb
|
204
|
-
- spec/unit/rpc/helpers_spec.rb
|
205
|
-
- spec/unit/rpc/reply_spec.rb
|
206
|
-
- spec/unit/rpc/result_spec.rb
|
207
|
-
- spec/unit/rpc/actionrunner_spec.rb
|
208
|
-
- spec/unit/rpc/stats_spec.rb
|
209
|
-
- spec/unit/rpc/agent_spec.rb
|
210
|
-
- spec/unit/rpc/request_spec.rb
|
211
|
-
- spec/unit/unix_daemon_spec.rb
|
212
|
-
- spec/unit/validator_spec.rb
|
202
|
+
- spec/unit/plugins/mcollective/data/fstat_data_spec.rb
|
203
|
+
- spec/unit/plugins/mcollective/application/plugin_spec.rb
|
204
|
+
- spec/unit/plugins/mcollective/agent/rpcutil_spec.rb
|
205
|
+
- spec/unit/plugins/mcollective/security/psk_spec.rb
|
213
206
|
- spec/unit/application_spec.rb
|
214
|
-
- spec/unit/
|
207
|
+
- spec/unit/pluginmanager_spec.rb
|
208
|
+
- spec/unit/pluginpackager/standard_definition_spec.rb
|
209
|
+
- spec/unit/pluginpackager/agent_definition_spec.rb
|
210
|
+
- spec/unit/validator_spec.rb
|
215
211
|
- spec/unit/facts_spec.rb
|
216
|
-
- spec/unit/
|
217
|
-
- spec/unit/
|
218
|
-
- spec/unit/
|
219
|
-
- spec/unit/
|
220
|
-
- spec/unit/generators/snippets/agent_ddl
|
221
|
-
- spec/unit/generators/data_generator_spec.rb
|
222
|
-
- spec/unit/generators/agent_generator_spec.rb
|
223
|
-
- spec/unit/message_spec.rb
|
224
|
-
- spec/unit/array_spec.rb
|
225
|
-
- spec/unit/applications_spec.rb
|
226
|
-
- spec/unit/logger/base_spec.rb
|
227
|
-
- spec/unit/logger/syslog_logger_spec.rb
|
228
|
-
- spec/unit/logger/console_logger_spec.rb
|
229
|
-
- spec/unit/log_spec.rb
|
230
|
-
- spec/unit/aggregate/base_spec.rb
|
212
|
+
- spec/unit/optionparser_spec.rb
|
213
|
+
- spec/unit/cache_spec.rb
|
214
|
+
- spec/unit/discovery_spec.rb
|
215
|
+
- spec/unit/vendor_spec.rb
|
231
216
|
- spec/unit/aggregate/result/collection_result_spec.rb
|
232
217
|
- spec/unit/aggregate/result/base_spec.rb
|
233
218
|
- spec/unit/aggregate/result/numeric_result_spec.rb
|
234
|
-
- spec/unit/
|
235
|
-
- spec/unit/aggregate_spec.rb
|
236
|
-
- spec/unit/cache_spec.rb
|
237
|
-
- spec/unit/runner_spec.rb
|
219
|
+
- spec/unit/aggregate/base_spec.rb
|
238
220
|
- spec/unit/facts/base_spec.rb
|
239
|
-
- spec/unit/matcher_spec.rb
|
240
|
-
- spec/unit/ddl_spec.rb
|
241
|
-
- spec/unit/symbol_spec.rb
|
242
|
-
- spec/unit/windows_daemon_spec.rb
|
243
|
-
- spec/unit/pluginpackager/agent_definition_spec.rb
|
244
|
-
- spec/unit/pluginpackager/standard_definition_spec.rb
|
245
221
|
- spec/unit/data/base_spec.rb
|
246
222
|
- spec/unit/data/result_spec.rb
|
247
|
-
- spec/unit/
|
223
|
+
- spec/unit/runnerstats_spec.rb
|
224
|
+
- spec/unit/generators/data_generator_spec.rb
|
225
|
+
- spec/unit/generators/base_spec.rb
|
226
|
+
- spec/unit/generators/snippets/data_ddl
|
227
|
+
- spec/unit/generators/snippets/agent_ddl
|
228
|
+
- spec/unit/generators/agent_generator_spec.rb
|
229
|
+
- spec/unit/aggregate_spec.rb
|
248
230
|
- spec/unit/matcher/parser_spec.rb
|
249
231
|
- spec/unit/matcher/scanner_spec.rb
|
250
|
-
- spec/unit/
|
232
|
+
- spec/unit/config_spec.rb
|
233
|
+
- spec/unit/ddl_spec.rb
|
234
|
+
- spec/unit/applications_spec.rb
|
251
235
|
- spec/unit/pluginpackager_spec.rb
|
252
|
-
- spec/unit/
|
236
|
+
- spec/unit/util_spec.rb
|
237
|
+
- spec/unit/message_spec.rb
|
238
|
+
- spec/unit/security/base_spec.rb
|
239
|
+
- spec/unit/symbol_spec.rb
|
240
|
+
- spec/unit/logger/syslog_logger_spec.rb
|
241
|
+
- spec/unit/logger/base_spec.rb
|
242
|
+
- spec/unit/logger/console_logger_spec.rb
|
243
|
+
- spec/unit/agents_spec.rb
|
244
|
+
- spec/unit/array_spec.rb
|
245
|
+
- spec/unit/ddl/discoveryddl_spec.rb
|
246
|
+
- spec/unit/ddl/base_spec.rb
|
247
|
+
- spec/unit/ddl/dataddl_spec.rb
|
248
|
+
- spec/unit/ddl/agentddl_spec.rb
|
249
|
+
- spec/unit/rpc_spec.rb
|
253
250
|
- spec/spec_helper.rb
|
251
|
+
- spec/spec.opts
|
252
|
+
- spec/windows_spec.opts
|
254
253
|
homepage: https://docs.puppetlabs.com/mcollective/
|
255
254
|
licenses: []
|
256
255
|
post_install_message:
|
@@ -289,109 +288,109 @@ signing_key:
|
|
289
288
|
specification_version: 3
|
290
289
|
summary: Client libraries for the Mcollective Application Server
|
291
290
|
test_files:
|
292
|
-
- spec/
|
293
|
-
- spec/fixtures/
|
294
|
-
- spec/fixtures/util/4.in
|
295
|
-
- spec/fixtures/util/4.out
|
296
|
-
- spec/fixtures/util/1.out
|
297
|
-
- spec/fixtures/util/3.out
|
291
|
+
- spec/fixtures/test-public.pem
|
292
|
+
- spec/fixtures/test-private.pem
|
298
293
|
- spec/fixtures/util/2.out
|
299
294
|
- spec/fixtures/util/3.in
|
295
|
+
- spec/fixtures/util/3.out
|
296
|
+
- spec/fixtures/util/1.in
|
300
297
|
- spec/fixtures/util/2.in
|
301
|
-
- spec/fixtures/
|
302
|
-
- spec/fixtures/
|
298
|
+
- spec/fixtures/util/1.out
|
299
|
+
- spec/fixtures/util/4.out
|
300
|
+
- spec/fixtures/util/4.in
|
303
301
|
- spec/fixtures/test-cert.pem
|
304
|
-
- spec/fixtures/test
|
302
|
+
- spec/fixtures/application/test.rb
|
305
303
|
- spec/monkey_patches/instance_variable_defined.rb
|
306
|
-
- spec/spec.opts
|
307
304
|
- spec/Rakefile
|
305
|
+
- spec/unit/unix_daemon_spec.rb
|
306
|
+
- spec/unit/string_spec.rb
|
307
|
+
- spec/unit/log_spec.rb
|
308
|
+
- spec/unit/shell_spec.rb
|
309
|
+
- spec/unit/matcher_spec.rb
|
310
|
+
- spec/unit/windows_daemon_spec.rb
|
311
|
+
- spec/unit/runner_spec.rb
|
312
|
+
- spec/unit/ssl_spec.rb
|
308
313
|
- spec/unit/registration/base_spec.rb
|
309
|
-
- spec/unit/
|
310
|
-
- spec/unit/
|
314
|
+
- spec/unit/client_spec.rb
|
315
|
+
- spec/unit/data_spec.rb
|
316
|
+
- spec/unit/rpc/stats_spec.rb
|
317
|
+
- spec/unit/rpc/agent_spec.rb
|
318
|
+
- spec/unit/rpc/client_spec.rb
|
319
|
+
- spec/unit/rpc/helpers_spec.rb
|
320
|
+
- spec/unit/rpc/actionrunner_spec.rb
|
321
|
+
- spec/unit/rpc/reply_spec.rb
|
322
|
+
- spec/unit/rpc/result_spec.rb
|
323
|
+
- spec/unit/rpc/request_spec.rb
|
324
|
+
- spec/unit/plugins/mcollective/connector/rabbitmq_spec.rb
|
325
|
+
- spec/unit/plugins/mcollective/connector/activemq_spec.rb
|
311
326
|
- spec/unit/plugins/mcollective/discovery/flatfile_spec.rb
|
327
|
+
- spec/unit/plugins/mcollective/discovery/stdin_spec.rb
|
312
328
|
- spec/unit/plugins/mcollective/discovery/mc_spec.rb
|
313
|
-
- spec/unit/plugins/mcollective/security/psk_spec.rb
|
314
|
-
- spec/unit/plugins/mcollective/application/plugin_spec.rb
|
315
|
-
- spec/unit/plugins/mcollective/agent/rpcutil_spec.rb
|
316
|
-
- spec/unit/plugins/mcollective/validator/typecheck_validator_spec.rb
|
317
329
|
- spec/unit/plugins/mcollective/validator/shellsafe_validator_spec.rb
|
318
|
-
- spec/unit/plugins/mcollective/validator/ipv6address_validator_spec.rb
|
319
|
-
- spec/unit/plugins/mcollective/validator/ipv4address_validator_spec.rb
|
320
|
-
- spec/unit/plugins/mcollective/validator/length_validator_spec.rb
|
321
330
|
- spec/unit/plugins/mcollective/validator/array_validator_spec.rb
|
331
|
+
- spec/unit/plugins/mcollective/validator/ipv4address_validator_spec.rb
|
322
332
|
- spec/unit/plugins/mcollective/validator/regex_validator_spec.rb
|
323
|
-
- spec/unit/plugins/mcollective/
|
333
|
+
- spec/unit/plugins/mcollective/validator/typecheck_validator_spec.rb
|
334
|
+
- spec/unit/plugins/mcollective/validator/ipv6address_validator_spec.rb
|
335
|
+
- spec/unit/plugins/mcollective/validator/length_validator_spec.rb
|
336
|
+
- spec/unit/plugins/mcollective/audit/logfile_spec.rb
|
324
337
|
- spec/unit/plugins/mcollective/packagers/ospackage_spec.rb
|
325
|
-
- spec/unit/plugins/mcollective/packagers/debpackage_packager_spec.rb
|
326
338
|
- spec/unit/plugins/mcollective/packagers/modulepackage_packager_spec.rb
|
327
|
-
- spec/unit/plugins/mcollective/
|
328
|
-
- spec/unit/plugins/mcollective/
|
329
|
-
- spec/unit/plugins/mcollective/aggregate/summary_spec.rb
|
339
|
+
- spec/unit/plugins/mcollective/packagers/rpmpackage_packager_spec.rb
|
340
|
+
- spec/unit/plugins/mcollective/packagers/debpackage_packager_spec.rb
|
330
341
|
- spec/unit/plugins/mcollective/aggregate/average_spec.rb
|
331
342
|
- spec/unit/plugins/mcollective/aggregate/sum_spec.rb
|
343
|
+
- spec/unit/plugins/mcollective/aggregate/summary_spec.rb
|
332
344
|
- spec/unit/plugins/mcollective/facts/yaml_facts_spec.rb
|
333
|
-
- spec/unit/plugins/mcollective/data/fstat_data_spec.rb
|
334
345
|
- spec/unit/plugins/mcollective/data/agent_data_spec.rb
|
335
|
-
- spec/unit/plugins/mcollective/
|
336
|
-
- spec/unit/
|
337
|
-
- spec/unit/
|
338
|
-
- spec/unit/
|
339
|
-
- spec/unit/util_spec.rb
|
340
|
-
- spec/unit/ssl_spec.rb
|
341
|
-
- spec/unit/client_spec.rb
|
342
|
-
- spec/unit/ddl/base_spec.rb
|
343
|
-
- spec/unit/ddl/discoveryddl_spec.rb
|
344
|
-
- spec/unit/ddl/dataddl_spec.rb
|
345
|
-
- spec/unit/ddl/agentddl_spec.rb
|
346
|
-
- spec/unit/runnerstats_spec.rb
|
347
|
-
- spec/unit/rpc/client_spec.rb
|
348
|
-
- spec/unit/rpc/helpers_spec.rb
|
349
|
-
- spec/unit/rpc/reply_spec.rb
|
350
|
-
- spec/unit/rpc/result_spec.rb
|
351
|
-
- spec/unit/rpc/actionrunner_spec.rb
|
352
|
-
- spec/unit/rpc/stats_spec.rb
|
353
|
-
- spec/unit/rpc/agent_spec.rb
|
354
|
-
- spec/unit/rpc/request_spec.rb
|
355
|
-
- spec/unit/unix_daemon_spec.rb
|
356
|
-
- spec/unit/validator_spec.rb
|
346
|
+
- spec/unit/plugins/mcollective/data/fstat_data_spec.rb
|
347
|
+
- spec/unit/plugins/mcollective/application/plugin_spec.rb
|
348
|
+
- spec/unit/plugins/mcollective/agent/rpcutil_spec.rb
|
349
|
+
- spec/unit/plugins/mcollective/security/psk_spec.rb
|
357
350
|
- spec/unit/application_spec.rb
|
358
|
-
- spec/unit/
|
351
|
+
- spec/unit/pluginmanager_spec.rb
|
352
|
+
- spec/unit/pluginpackager/standard_definition_spec.rb
|
353
|
+
- spec/unit/pluginpackager/agent_definition_spec.rb
|
354
|
+
- spec/unit/validator_spec.rb
|
359
355
|
- spec/unit/facts_spec.rb
|
360
|
-
- spec/unit/
|
361
|
-
- spec/unit/
|
362
|
-
- spec/unit/
|
363
|
-
- spec/unit/
|
364
|
-
- spec/unit/generators/snippets/agent_ddl
|
365
|
-
- spec/unit/generators/data_generator_spec.rb
|
366
|
-
- spec/unit/generators/agent_generator_spec.rb
|
367
|
-
- spec/unit/message_spec.rb
|
368
|
-
- spec/unit/array_spec.rb
|
369
|
-
- spec/unit/applications_spec.rb
|
370
|
-
- spec/unit/logger/base_spec.rb
|
371
|
-
- spec/unit/logger/syslog_logger_spec.rb
|
372
|
-
- spec/unit/logger/console_logger_spec.rb
|
373
|
-
- spec/unit/log_spec.rb
|
374
|
-
- spec/unit/aggregate/base_spec.rb
|
356
|
+
- spec/unit/optionparser_spec.rb
|
357
|
+
- spec/unit/cache_spec.rb
|
358
|
+
- spec/unit/discovery_spec.rb
|
359
|
+
- spec/unit/vendor_spec.rb
|
375
360
|
- spec/unit/aggregate/result/collection_result_spec.rb
|
376
361
|
- spec/unit/aggregate/result/base_spec.rb
|
377
362
|
- spec/unit/aggregate/result/numeric_result_spec.rb
|
378
|
-
- spec/unit/
|
379
|
-
- spec/unit/aggregate_spec.rb
|
380
|
-
- spec/unit/cache_spec.rb
|
381
|
-
- spec/unit/runner_spec.rb
|
363
|
+
- spec/unit/aggregate/base_spec.rb
|
382
364
|
- spec/unit/facts/base_spec.rb
|
383
|
-
- spec/unit/matcher_spec.rb
|
384
|
-
- spec/unit/ddl_spec.rb
|
385
|
-
- spec/unit/symbol_spec.rb
|
386
|
-
- spec/unit/windows_daemon_spec.rb
|
387
|
-
- spec/unit/pluginpackager/agent_definition_spec.rb
|
388
|
-
- spec/unit/pluginpackager/standard_definition_spec.rb
|
389
365
|
- spec/unit/data/base_spec.rb
|
390
366
|
- spec/unit/data/result_spec.rb
|
391
|
-
- spec/unit/
|
367
|
+
- spec/unit/runnerstats_spec.rb
|
368
|
+
- spec/unit/generators/data_generator_spec.rb
|
369
|
+
- spec/unit/generators/base_spec.rb
|
370
|
+
- spec/unit/generators/snippets/data_ddl
|
371
|
+
- spec/unit/generators/snippets/agent_ddl
|
372
|
+
- spec/unit/generators/agent_generator_spec.rb
|
373
|
+
- spec/unit/aggregate_spec.rb
|
392
374
|
- spec/unit/matcher/parser_spec.rb
|
393
375
|
- spec/unit/matcher/scanner_spec.rb
|
394
|
-
- spec/unit/
|
376
|
+
- spec/unit/config_spec.rb
|
377
|
+
- spec/unit/ddl_spec.rb
|
378
|
+
- spec/unit/applications_spec.rb
|
395
379
|
- spec/unit/pluginpackager_spec.rb
|
396
|
-
- spec/unit/
|
380
|
+
- spec/unit/util_spec.rb
|
381
|
+
- spec/unit/message_spec.rb
|
382
|
+
- spec/unit/security/base_spec.rb
|
383
|
+
- spec/unit/symbol_spec.rb
|
384
|
+
- spec/unit/logger/syslog_logger_spec.rb
|
385
|
+
- spec/unit/logger/base_spec.rb
|
386
|
+
- spec/unit/logger/console_logger_spec.rb
|
387
|
+
- spec/unit/agents_spec.rb
|
388
|
+
- spec/unit/array_spec.rb
|
389
|
+
- spec/unit/ddl/discoveryddl_spec.rb
|
390
|
+
- spec/unit/ddl/base_spec.rb
|
391
|
+
- spec/unit/ddl/dataddl_spec.rb
|
392
|
+
- spec/unit/ddl/agentddl_spec.rb
|
393
|
+
- spec/unit/rpc_spec.rb
|
397
394
|
- spec/spec_helper.rb
|
395
|
+
- spec/spec.opts
|
396
|
+
- spec/windows_spec.opts
|
data/bin/mc-call-agent
DELETED
@@ -1,54 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'mcollective'
|
4
|
-
require 'pp'
|
5
|
-
|
6
|
-
oparser = MCollective::Optionparser.new({:verbose => true}, "filter")
|
7
|
-
|
8
|
-
options = oparser.parse{|parser, options|
|
9
|
-
parser.define_head "Call an agent parsing an argument to it"
|
10
|
-
parser.banner = "Usage: mc-call-agent [options] --agent agent --argument arg"
|
11
|
-
|
12
|
-
parser.on('-a', '--agent AGENT', 'Agent to call') do |v|
|
13
|
-
options[:agent] = v
|
14
|
-
end
|
15
|
-
|
16
|
-
parser.on('--arg', '--argument ARGUMENT', 'Argument to pass to agent') do |v|
|
17
|
-
options[:argument] = v
|
18
|
-
end
|
19
|
-
}
|
20
|
-
|
21
|
-
if options[:agent] == nil || options[:argument] == nil
|
22
|
-
puts("Please use either --agent or --argument")
|
23
|
-
exit 1
|
24
|
-
end
|
25
|
-
|
26
|
-
begin
|
27
|
-
options[:filter]["agent"] << options[:agent]
|
28
|
-
|
29
|
-
client = MCollective::Client.new(options[:config])
|
30
|
-
client.options = options
|
31
|
-
|
32
|
-
c = 0
|
33
|
-
|
34
|
-
stats = client.discovered_req(options[:argument], options[:agent]) do |resp|
|
35
|
-
next if resp == nil
|
36
|
-
|
37
|
-
c += 1
|
38
|
-
|
39
|
-
if options[:verbose]
|
40
|
-
puts("#{resp[:senderid]}>")
|
41
|
-
pp resp[:body]
|
42
|
-
else
|
43
|
-
puts if c % 4 == 1
|
44
|
-
printf("%-30s", resp[:senderid])
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
client.disconnect
|
49
|
-
rescue Exception => e
|
50
|
-
STDERR.puts "Could not call remote agent: #{e}"
|
51
|
-
exit 1
|
52
|
-
end
|
53
|
-
|
54
|
-
client.display_stats(stats)
|