openvox 9.0.0.pre.alpha2 → 9.0.0.pre.beta2
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 +4 -4
- data/CHANGELOG.md +114 -1
- data/CODE_OF_CONDUCT.md +1 -1
- data/Gemfile +5 -5
- data/README.md +6 -6
- data/Rakefile +3 -3
- data/conf/environment.conf +2 -2
- data/conf/fileserver.conf +3 -3
- data/conf/puppet.conf +4 -4
- data/examples/enc/regexp_nodes/regexp_nodes.rb +2 -2
- data/examples/hiera/README.md +1 -1
- data/examples/nagios/check_puppet.rb +1 -1
- data/ext/README.md +3 -3
- data/ext/hiera/hiera.yaml +1 -1
- data/ext/project_data.yaml +1 -1
- data/ext/redhat/client.sysconfig +1 -0
- data/ext/solaris/smf/puppet.xml +2 -2
- data/ext/windows/puppet_interactive.bat +1 -1
- data/ext/windows/service/daemon.rb +5 -5
- data/lib/hiera/puppet_function.rb +1 -2
- data/lib/hiera_puppet.rb +1 -1
- data/lib/puppet/agent/disabler.rb +3 -3
- data/lib/puppet/agent/locker.rb +1 -1
- data/lib/puppet/agent.rb +2 -2
- data/lib/puppet/application/agent.rb +33 -35
- data/lib/puppet/application/apply.rb +7 -7
- data/lib/puppet/application/describe.rb +3 -3
- data/lib/puppet/application/device.rb +1 -1
- data/lib/puppet/application/doc.rb +5 -7
- data/lib/puppet/application/facts.rb +1 -1
- data/lib/puppet/application/filebucket.rb +5 -5
- data/lib/puppet/application/lookup.rb +8 -8
- data/lib/puppet/application/resource.rb +5 -5
- data/lib/puppet/application/script.rb +3 -3
- data/lib/puppet/application/ssl.rb +4 -4
- data/lib/puppet/application_support.rb +2 -2
- data/lib/puppet/configurer.rb +13 -7
- data/lib/puppet/confine/variable.rb +2 -2
- data/lib/puppet/context.rb +1 -1
- data/lib/puppet/data_binding.rb +1 -1
- data/lib/puppet/defaults.rb +157 -226
- data/lib/puppet/error.rb +1 -1
- data/lib/puppet/etc.rb +4 -4
- data/lib/puppet/face/catalog/select.rb +3 -3
- data/lib/puppet/face/catalog.rb +4 -4
- data/lib/puppet/face/config.rb +6 -6
- data/lib/puppet/face/facts.rb +6 -6
- data/lib/puppet/face/help/man.erb +3 -3
- data/lib/puppet/face/node/clean.rb +3 -3
- data/lib/puppet/face/node.rb +2 -2
- data/lib/puppet/face/plugin.rb +4 -4
- data/lib/puppet/functions/all.rb +4 -4
- data/lib/puppet/functions/any.rb +4 -4
- data/lib/puppet/functions/assert_type.rb +5 -5
- data/lib/puppet/functions/defined.rb +1 -1
- data/lib/puppet/functions/each.rb +11 -11
- data/lib/puppet/functions/epp.rb +5 -5
- data/lib/puppet/functions/eyaml_lookup_key.rb +1 -1
- data/lib/puppet/functions/filter.rb +5 -5
- data/lib/puppet/functions/find_file.rb +1 -1
- data/lib/puppet/functions/hiera.rb +4 -4
- data/lib/puppet/functions/hiera_array.rb +5 -5
- data/lib/puppet/functions/hiera_hash.rb +5 -5
- data/lib/puppet/functions/hiera_include.rb +6 -6
- data/lib/puppet/functions/hocon_data.rb +1 -1
- data/lib/puppet/functions/include.rb +1 -1
- data/lib/puppet/functions/index.rb +3 -3
- data/lib/puppet/functions/inline_epp.rb +6 -6
- data/lib/puppet/functions/json_data.rb +1 -1
- data/lib/puppet/functions/lest.rb +1 -1
- data/lib/puppet/functions/lookup.rb +14 -14
- data/lib/puppet/functions/map.rb +5 -5
- data/lib/puppet/functions/reduce.rb +6 -6
- data/lib/puppet/functions/regsubst.rb +1 -13
- data/lib/puppet/functions/reverse_each.rb +5 -5
- data/lib/puppet/functions/scanf.rb +1 -1
- data/lib/puppet/functions/step.rb +5 -5
- data/lib/puppet/functions/then.rb +1 -1
- data/lib/puppet/functions/tree_each.rb +3 -3
- data/lib/puppet/functions/versioncmp.rb +1 -1
- data/lib/puppet/functions/with.rb +2 -2
- data/lib/puppet/functions/yaml_data.rb +1 -1
- data/lib/puppet/generate/type.rb +5 -1
- data/lib/puppet/gettext/config.rb +5 -5
- data/lib/puppet/gettext/module_translations.rb +1 -1
- data/lib/puppet/graph/simple_graph.rb +0 -1
- data/lib/puppet/http/client.rb +5 -5
- data/lib/puppet/http/factory.rb +1 -1
- data/lib/puppet/http/resolver/server_list.rb +2 -2
- data/lib/puppet/http/service/compiler.rb +3 -3
- data/lib/puppet/http/service/file_server.rb +1 -1
- data/lib/puppet/http/service.rb +19 -1
- data/lib/puppet/http/session.rb +1 -1
- data/lib/puppet/http.rb +1 -1
- data/lib/puppet/indirector/catalog/compiler.rb +2 -2
- data/lib/puppet/indirector/data_binding/hiera.rb +93 -2
- data/lib/puppet/indirector/face.rb +4 -4
- data/lib/puppet/indirector/facts/facter.rb +7 -7
- data/lib/puppet/indirector/file_bucket_file/file.rb +2 -2
- data/lib/puppet/indirector/file_bucket_file/rest.rb +7 -3
- data/lib/puppet/indirector/file_content/file_server.rb +1 -1
- data/lib/puppet/indirector/file_metadata/file_server.rb +1 -1
- data/lib/puppet/indirector/node/exec.rb +1 -1
- data/lib/puppet/indirector/node/rest.rb +1 -1
- data/lib/puppet/indirector/report/processor.rb +1 -1
- data/lib/puppet/indirector.rb +1 -1
- data/lib/puppet/interface/documentation.rb +1 -1
- data/lib/puppet/interface/face_collection.rb +1 -1
- data/lib/puppet/interface/option.rb +2 -2
- data/lib/puppet/module/task.rb +1 -1
- data/lib/puppet/module_tool/applications/application.rb +1 -1
- data/lib/puppet/module_tool/metadata.rb +1 -2
- data/lib/puppet/module_tool.rb +1 -1
- data/lib/puppet/network/authorization.rb +1 -1
- data/lib/puppet/network/http/api.rb +2 -2
- data/lib/puppet/network/http/connection.rb +2 -2
- data/lib/puppet/node/environment.rb +6 -6
- data/lib/puppet/node.rb +2 -2
- data/lib/puppet/pal/catalog_compiler.rb +1 -1
- data/lib/puppet/pal/pal_impl.rb +1 -25
- data/lib/puppet/parser/compiler.rb +1 -1
- data/lib/puppet/parser/functions/assert_type.rb +5 -5
- data/lib/puppet/parser/functions/create_resources.rb +1 -1
- data/lib/puppet/parser/functions/defined.rb +1 -1
- data/lib/puppet/parser/functions/digest.rb +1 -1
- data/lib/puppet/parser/functions/each.rb +11 -11
- data/lib/puppet/parser/functions/epp.rb +5 -5
- data/lib/puppet/parser/functions/filter.rb +5 -5
- data/lib/puppet/parser/functions/generate.rb +1 -1
- data/lib/puppet/parser/functions/hiera.rb +3 -3
- data/lib/puppet/parser/functions/hiera_array.rb +4 -4
- data/lib/puppet/parser/functions/hiera_hash.rb +4 -4
- data/lib/puppet/parser/functions/hiera_include.rb +5 -5
- data/lib/puppet/parser/functions/include.rb +1 -1
- data/lib/puppet/parser/functions/inline_epp.rb +6 -6
- data/lib/puppet/parser/functions/inline_template.rb +1 -1
- data/lib/puppet/parser/functions/lest.rb +1 -1
- data/lib/puppet/parser/functions/lookup.rb +14 -14
- data/lib/puppet/parser/functions/map.rb +5 -5
- data/lib/puppet/parser/functions/reduce.rb +7 -7
- data/lib/puppet/parser/functions/reverse_each.rb +5 -5
- data/lib/puppet/parser/functions/scanf.rb +1 -1
- data/lib/puppet/parser/functions/step.rb +5 -5
- data/lib/puppet/parser/functions/then.rb +1 -1
- data/lib/puppet/parser/functions/versioncmp.rb +1 -1
- data/lib/puppet/parser/functions/with.rb +1 -1
- data/lib/puppet/parser/functions.rb +3 -3
- data/lib/puppet/parser/scope.rb +1 -1
- data/lib/puppet/plugins/syntax_checkers.rb +2 -2
- data/lib/puppet/plugins.rb +1 -1
- data/lib/puppet/pops/evaluator/collectors/exported_collector.rb +1 -1
- data/lib/puppet/pops/evaluator/deferred_resolver.rb +4 -1
- data/lib/puppet/pops/issues.rb +3 -3
- data/lib/puppet/pops/loader/module_loaders.rb +4 -4
- data/lib/puppet/pops/loader/ruby_legacy_function_instantiator.rb +1 -1
- data/lib/puppet/pops/loaders.rb +4 -4
- data/lib/puppet/pops/lookup/lookup_adapter.rb +7 -66
- data/lib/puppet/pops/model/factory.rb +5 -5
- data/lib/puppet/pops/resource/resource_type_impl.rb +1 -1
- data/lib/puppet/pops/serialization/to_data_converter.rb +1 -1
- data/lib/puppet/pops/types/iterable.rb +1 -1
- data/lib/puppet/property/keyvalue.rb +3 -3
- data/lib/puppet/provider/group/aix.rb +2 -2
- data/lib/puppet/provider/nameservice/directoryservice.rb +2 -2
- data/lib/puppet/provider/package/aix.rb +1 -1
- data/lib/puppet/provider/package/apt.rb +2 -2
- data/lib/puppet/provider/package/aptitude.rb +0 -1
- data/lib/puppet/provider/package/dnfmodule.rb +1 -1
- data/lib/puppet/provider/package/nim.rb +1 -1
- data/lib/puppet/provider/package/pacman.rb +1 -2
- data/lib/puppet/provider/package/pip.rb +1 -1
- data/lib/puppet/provider/package/pip2.rb +1 -1
- data/lib/puppet/provider/package/pip3.rb +1 -1
- data/lib/puppet/provider/package/pkgdmg.rb +2 -2
- data/lib/puppet/provider/package/puppet_gem.rb +2 -2
- data/lib/puppet/provider/package/puppetserver_gem.rb +1 -1
- data/lib/puppet/provider/package/windows.rb +1 -1
- data/lib/puppet/provider/service/freebsd.rb +1 -1
- data/lib/puppet/provider/service/init.rb +5 -5
- data/lib/puppet/provider/service/launchd.rb +2 -2
- data/lib/puppet/provider/service/smf.rb +1 -1
- data/lib/puppet/provider/service/upstart.rb +2 -2
- data/lib/puppet/provider/user/aix.rb +3 -3
- data/lib/puppet/provider/user/directoryservice.rb +9 -9
- data/lib/puppet/provider/user/pw.rb +3 -3
- data/lib/puppet/provider.rb +1 -1
- data/lib/puppet/reference/configuration.rb +6 -13
- data/lib/puppet/reference/function.rb +4 -4
- data/lib/puppet/reference/indirection.rb +2 -2
- data/lib/puppet/reference/metaparameter.rb +3 -3
- data/lib/puppet/reference/providers.rb +3 -3
- data/lib/puppet/reference/report.rb +4 -4
- data/lib/puppet/reference/type.rb +2 -2
- data/lib/puppet/relationship.rb +1 -1
- data/lib/puppet/reports/http.rb +4 -4
- data/lib/puppet/reports.rb +1 -1
- data/lib/puppet/resource/catalog.rb +4 -4
- data/lib/puppet/resource/type.rb +8 -8
- data/lib/puppet/settings/base_setting.rb +2 -3
- data/lib/puppet/settings/config_file.rb +3 -3
- data/lib/puppet/settings/environment_conf.rb +3 -11
- data/lib/puppet/settings.rb +11 -51
- data/lib/puppet/ssl/certificate.rb +4 -0
- data/lib/puppet/ssl/certificate_request.rb +1 -1
- data/lib/puppet/ssl/oids.rb +1 -1
- data/lib/puppet/ssl/openssl_loader.rb +1 -1
- data/lib/puppet/ssl/ssl_provider.rb +5 -5
- data/lib/puppet/ssl/state_machine.rb +9 -3
- data/lib/puppet/syntax_checkers.rb +1 -1
- data/lib/puppet/transaction/report.rb +3 -3
- data/lib/puppet/transaction.rb +0 -1
- data/lib/puppet/type/exec.rb +20 -20
- data/lib/puppet/type/file/content.rb +10 -37
- data/lib/puppet/type/file/ensure.rb +18 -9
- data/lib/puppet/type/file/mode.rb +4 -4
- data/lib/puppet/type/file/selcontext.rb +2 -2
- data/lib/puppet/type/file/source.rb +19 -25
- data/lib/puppet/type/file.rb +22 -15
- data/lib/puppet/type/filebucket.rb +22 -8
- data/lib/puppet/type/group.rb +5 -5
- data/lib/puppet/type/notify.rb +1 -1
- data/lib/puppet/type/package.rb +4 -4
- data/lib/puppet/type/schedule.rb +11 -11
- data/lib/puppet/type/service.rb +8 -8
- data/lib/puppet/type/stage.rb +1 -1
- data/lib/puppet/type/user.rb +19 -21
- data/lib/puppet/type/whit.rb +2 -2
- data/lib/puppet/type.rb +27 -27
- data/lib/puppet/util/character_encoding.rb +3 -3
- data/lib/puppet/util/command_line.rb +1 -1
- data/lib/puppet/util/execution.rb +1 -1
- data/lib/puppet/util/filetype.rb +6 -6
- data/lib/puppet/util/log.rb +2 -2
- data/lib/puppet/util/logging.rb +3 -3
- data/lib/puppet/util/plist.rb +1 -1
- data/lib/puppet/util/profiler/around_profiler.rb +1 -1
- data/lib/puppet/util/profiler.rb +1 -1
- data/lib/puppet/util/rdoc.rb +6 -3
- data/lib/puppet/util/selinux.rb +5 -5
- data/lib/puppet/util/tag_set.rb +0 -1
- data/lib/puppet/util/windows/adsi.rb +1 -1
- data/lib/puppet/util/windows/com.rb +2 -2
- data/lib/puppet/util/windows/eventlog.rb +6 -6
- data/lib/puppet/util/windows/file.rb +2 -2
- data/lib/puppet/util/windows/security.rb +3 -3
- data/lib/puppet/util.rb +8 -3
- data/lib/puppet/version.rb +8 -8
- data/lib/puppet/x509/cert_provider.rb +1 -1
- data/lib/puppet.rb +5 -5
- data/locales/config.yaml +3 -3
- data/locales/puppet.pot +462 -464
- data/man/man5/puppet.conf.5 +122 -146
- data/man/man8/puppet-agent.8 +25 -25
- data/man/man8/puppet-apply.8 +6 -6
- data/man/man8/puppet-catalog.8 +11 -11
- data/man/man8/puppet-config.8 +7 -7
- data/man/man8/puppet-describe.8 +3 -3
- data/man/man8/puppet-device.8 +2 -2
- data/man/man8/puppet-doc.8 +5 -5
- data/man/man8/puppet-epp.8 +3 -3
- data/man/man8/puppet-facts.8 +11 -11
- data/man/man8/puppet-filebucket.8 +5 -5
- data/man/man8/puppet-generate.8 +3 -3
- data/man/man8/puppet-help.8 +3 -3
- data/man/man8/puppet-lookup.8 +8 -8
- data/man/man8/puppet-module.8 +7 -7
- data/man/man8/puppet-node.8 +11 -45
- data/man/man8/puppet-parser.8 +3 -3
- data/man/man8/puppet-plugin.8 +7 -7
- data/man/man8/puppet-report.8 +6 -6
- data/man/man8/puppet-resource.8 +5 -5
- data/man/man8/puppet-script.8 +3 -3
- data/man/man8/puppet-ssl.8 +21 -23
- data/man/man8/puppet.8 +2 -2
- metadata +5 -8
- data/lib/puppet/indirector/hiera.rb +0 -101
- data/lib/puppet/util/rdoc/generators/puppet_generator.rb +0 -902
- data/lib/puppet/util/rdoc/generators/template/puppet/puppet.rb +0 -1068
|
@@ -110,12 +110,12 @@ class Puppet::Application::Agent < Puppet::Application
|
|
|
110
110
|
|
|
111
111
|
DESCRIPTION
|
|
112
112
|
-----------
|
|
113
|
-
This is the main
|
|
113
|
+
This is the main OpenVox client. Its job is to retrieve the local
|
|
114
114
|
machine's configuration from a remote server and apply it. In order to
|
|
115
115
|
successfully communicate with the remote server, the client must have a
|
|
116
116
|
certificate signed by a certificate authority that the server trusts;
|
|
117
117
|
the recommended method for this, at the moment, is to run a certificate
|
|
118
|
-
authority as part of the
|
|
118
|
+
authority as part of the OpenVox server (which is the default). The
|
|
119
119
|
client will connect and request a signed certificate, and will continue
|
|
120
120
|
connecting until it receives one.
|
|
121
121
|
|
|
@@ -146,7 +146,7 @@ class Puppet::Application::Agent < Puppet::Application
|
|
|
146
146
|
* 6: The run succeeded, and included both changes and failures.
|
|
147
147
|
|
|
148
148
|
'--tags' allows you to specify what portions of a configuration you want
|
|
149
|
-
to apply.
|
|
149
|
+
to apply. OpenVox elements are tagged with all of the class or definition
|
|
150
150
|
names that contain them, and you can use the 'tags' flag to specify one
|
|
151
151
|
of these names, causing only configuration elements contained within
|
|
152
152
|
that class or definition to be applied. This is very useful when you are
|
|
@@ -161,7 +161,7 @@ class Puppet::Application::Agent < Puppet::Application
|
|
|
161
161
|
(or certificate request) fingerprint. Providing the '--digest' option
|
|
162
162
|
allows you to use a different digest algorithm to generate the fingerprint.
|
|
163
163
|
The main use is to verify that before signing a certificate request on
|
|
164
|
-
the
|
|
164
|
+
the server, the certificate request the server received is the same as
|
|
165
165
|
the one the client sent (to prevent against man-in-the-middle attacks
|
|
166
166
|
when signing certificates).
|
|
167
167
|
|
|
@@ -173,33 +173,33 @@ class Puppet::Application::Agent < Puppet::Application
|
|
|
173
173
|
OPTIONS
|
|
174
174
|
-------
|
|
175
175
|
|
|
176
|
-
Note that any
|
|
176
|
+
Note that any OpenVox setting that's valid in the configuration file is also a
|
|
177
177
|
valid long argument. For example, 'server' is a valid setting, so you can
|
|
178
178
|
specify '--server <servername>' as an argument. Boolean settings accept a '--no-'
|
|
179
179
|
prefix to turn off a behavior, translating into '--setting' and '--no-setting'
|
|
180
180
|
pairs, such as `--daemonize` and `--no-daemonize`.
|
|
181
181
|
|
|
182
182
|
See the configuration file documentation at
|
|
183
|
-
https://
|
|
183
|
+
https://docs.openvoxproject.org/openvox/latest/configuration.html for the
|
|
184
184
|
full list of acceptable settings. A commented list of all settings can also be
|
|
185
185
|
generated by running puppet agent with '--genconfig'.
|
|
186
186
|
|
|
187
187
|
* --certname:
|
|
188
|
-
Set the certname (unique ID) of the client. The
|
|
188
|
+
Set the certname (unique ID) of the client. The server reads this
|
|
189
189
|
unique identifying string, which is usually set to the node's
|
|
190
190
|
fully-qualified domain name, to determine which configurations the
|
|
191
191
|
node will receive. Use this option to debug setup problems or
|
|
192
192
|
implement unusual node identification schemes.
|
|
193
|
-
(This is
|
|
193
|
+
(This is an OpenVox setting, and can go in puppet.conf.)
|
|
194
194
|
|
|
195
195
|
* --daemonize:
|
|
196
196
|
Send the process into the background. This is the default.
|
|
197
|
-
(This is
|
|
197
|
+
(This is an OpenVox setting, and can go in puppet.conf. Note the special 'no-'
|
|
198
198
|
prefix for boolean settings on the command line.)
|
|
199
199
|
|
|
200
200
|
* --no-daemonize:
|
|
201
201
|
Do not send the process into the background.
|
|
202
|
-
(This is
|
|
202
|
+
(This is an OpenVox setting, and can go in puppet.conf. Note the special 'no-'
|
|
203
203
|
prefix for boolean settings on the command line.)
|
|
204
204
|
|
|
205
205
|
* --debug:
|
|
@@ -251,7 +251,7 @@ class Puppet::Application::Agent < Puppet::Application
|
|
|
251
251
|
|
|
252
252
|
* --evaltrace:
|
|
253
253
|
Logs each resource as it is being evaluated. This allows you to interactively
|
|
254
|
-
see exactly what is being done. (This is
|
|
254
|
+
see exactly what is being done. (This is an OpenVox setting, and can go in
|
|
255
255
|
puppet.conf. Note the special 'no-' prefix for boolean settings on the command line.)
|
|
256
256
|
|
|
257
257
|
* --fingerprint:
|
|
@@ -264,9 +264,7 @@ class Puppet::Application::Agent < Puppet::Application
|
|
|
264
264
|
|
|
265
265
|
* --job-id:
|
|
266
266
|
Attach the specified job id to the catalog request and the report used for
|
|
267
|
-
this agent run. This option only works when '--onetime' is used.
|
|
268
|
-
Puppet Enterprise this flag should not be used as the orchestrator sets the
|
|
269
|
-
job-id for you and it must be unique.
|
|
267
|
+
this agent run. This option only works when '--onetime' is used.
|
|
270
268
|
|
|
271
269
|
* --logdest:
|
|
272
270
|
Where to send log messages. Choose between 'syslog' (the POSIX syslog
|
|
@@ -285,31 +283,31 @@ class Puppet::Application::Agent < Puppet::Application
|
|
|
285
283
|
format.
|
|
286
284
|
|
|
287
285
|
* --masterport:
|
|
288
|
-
The port on which to contact the
|
|
289
|
-
(This is
|
|
286
|
+
The port on which to contact the OpenVox Server.
|
|
287
|
+
(This is an OpenVox setting, and can go in puppet.conf.
|
|
290
288
|
Deprecated in favor of the 'serverport' setting.)
|
|
291
289
|
|
|
292
290
|
* --noop:
|
|
293
291
|
Use 'noop' mode where the daemon runs in a no-op or dry-run mode. This
|
|
294
|
-
is useful for seeing what changes
|
|
292
|
+
is useful for seeing what changes OpenVox would make without actually
|
|
295
293
|
executing the changes.
|
|
296
|
-
(This is
|
|
294
|
+
(This is an OpenVox setting, and can go in puppet.conf. Note the special 'no-'
|
|
297
295
|
prefix for boolean settings on the command line.)
|
|
298
296
|
|
|
299
297
|
* --onetime:
|
|
300
|
-
Run the configuration once. Runs a single (normally daemonized)
|
|
298
|
+
Run the configuration once. Runs a single (normally daemonized) OpenVox
|
|
301
299
|
run. Useful for interactively running puppet agent when used in
|
|
302
300
|
conjunction with the --no-daemonize option.
|
|
303
|
-
(This is
|
|
301
|
+
(This is an OpenVox setting, and can go in puppet.conf. Note the special 'no-'
|
|
304
302
|
prefix for boolean settings on the command line.)
|
|
305
303
|
|
|
306
304
|
* --serverport:
|
|
307
|
-
The port on which to contact the
|
|
308
|
-
(This is
|
|
305
|
+
The port on which to contact the OpenVox Server.
|
|
306
|
+
(This is an OpenVox setting, and can go in puppet.conf.)
|
|
309
307
|
|
|
310
308
|
* --sourceaddress:
|
|
311
309
|
Set the source IP address for transactions. This defaults to automatically selected.
|
|
312
|
-
(This is
|
|
310
|
+
(This is an OpenVox setting, and can go in puppet.conf.)
|
|
313
311
|
|
|
314
312
|
* --test:
|
|
315
313
|
Enable the most common options used for testing. These are 'onetime',
|
|
@@ -317,28 +315,28 @@ class Puppet::Application::Agent < Puppet::Application
|
|
|
317
315
|
'no-splay', and 'show_diff'.
|
|
318
316
|
|
|
319
317
|
* --trace
|
|
320
|
-
Prints stack traces on some errors. (This is
|
|
318
|
+
Prints stack traces on some errors. (This is an OpenVox setting, and can go in
|
|
321
319
|
puppet.conf. Note the special 'no-' prefix for boolean settings on the command line.)
|
|
322
320
|
|
|
323
321
|
* --verbose:
|
|
324
322
|
Turn on verbose reporting.
|
|
325
323
|
|
|
326
324
|
* --version:
|
|
327
|
-
Print the
|
|
325
|
+
Print the OpenVox agent version number and exit.
|
|
328
326
|
|
|
329
327
|
* --waitforcert:
|
|
330
328
|
This option only matters for daemons that do not yet have certificates
|
|
331
329
|
and it is enabled by default, with a value of 120 (seconds). This
|
|
332
330
|
causes 'puppet agent' to connect to the server every 2 minutes and ask
|
|
333
331
|
it to sign a certificate request. This is useful for the initial setup
|
|
334
|
-
of
|
|
332
|
+
of an OpenVox client. You can turn off waiting for certificates by
|
|
335
333
|
specifying a time of 0.
|
|
336
|
-
(This is
|
|
334
|
+
(This is an OpenVox setting, and can go in puppet.conf.)
|
|
337
335
|
|
|
338
336
|
* --write_catalog_summary
|
|
339
337
|
After compiling the catalog saves the resource list and classes list to the node
|
|
340
338
|
in the state directory named classes.txt and resources.txt
|
|
341
|
-
(This is
|
|
339
|
+
(This is an OpenVox setting, and can go in puppet.conf.)
|
|
342
340
|
|
|
343
341
|
EXAMPLE
|
|
344
342
|
-------
|
|
@@ -348,14 +346,14 @@ class Puppet::Application::Agent < Puppet::Application
|
|
|
348
346
|
DIAGNOSTICS
|
|
349
347
|
-----------
|
|
350
348
|
|
|
351
|
-
|
|
349
|
+
OpenVox agent accepts the following signals:
|
|
352
350
|
|
|
353
351
|
* SIGHUP:
|
|
354
|
-
Restart the
|
|
352
|
+
Restart the OpenVox agent daemon.
|
|
355
353
|
* SIGINT and SIGTERM:
|
|
356
|
-
Shut down the
|
|
354
|
+
Shut down the OpenVox agent daemon.
|
|
357
355
|
* SIGUSR1:
|
|
358
|
-
Immediately retrieve and apply configurations from the
|
|
356
|
+
Immediately retrieve and apply configurations from the OpenVox server.
|
|
359
357
|
* SIGUSR2:
|
|
360
358
|
Close file descriptors for log files and reopen them. Used with logrotate.
|
|
361
359
|
|
|
@@ -366,8 +364,8 @@ class Puppet::Application::Agent < Puppet::Application
|
|
|
366
364
|
|
|
367
365
|
COPYRIGHT
|
|
368
366
|
---------
|
|
369
|
-
Copyright (c) 2011 Puppet Inc
|
|
370
|
-
Copyright (c) 2024 Vox Pupuli
|
|
367
|
+
Copyright (c) 2011 Puppet Inc.;
|
|
368
|
+
Copyright (c) 2024 Vox Pupuli.
|
|
371
369
|
Licensed under the Apache 2.0 License
|
|
372
370
|
|
|
373
371
|
HELP
|
|
@@ -451,7 +449,7 @@ class Puppet::Application::Agent < Puppet::Application
|
|
|
451
449
|
end
|
|
452
450
|
|
|
453
451
|
def main(daemon)
|
|
454
|
-
Puppet.notice _("Starting
|
|
452
|
+
Puppet.notice _("Starting OpenVox client version %{version}") % { version: Puppet.version }
|
|
455
453
|
daemon.start
|
|
456
454
|
end
|
|
457
455
|
|
|
@@ -69,7 +69,7 @@ class Puppet::Application::Apply < Puppet::Application
|
|
|
69
69
|
differences. When combined with scheduling and an automated system for
|
|
70
70
|
pushing manifests, this can be used to implement a serverless site.
|
|
71
71
|
|
|
72
|
-
Most users should use 'puppet agent'
|
|
72
|
+
Most users should use 'puppet agent' with an OpenVox server for site-wide
|
|
73
73
|
manifests.
|
|
74
74
|
|
|
75
75
|
|
|
@@ -81,7 +81,7 @@ class Puppet::Application::Apply < Puppet::Application
|
|
|
81
81
|
as an argument.
|
|
82
82
|
|
|
83
83
|
See the configuration file documentation at
|
|
84
|
-
https://
|
|
84
|
+
https://docs.openvoxproject.org/openvox/latest/configuration.html for the
|
|
85
85
|
full list of acceptable parameters. You can generate a commented list of all
|
|
86
86
|
configuration options by running puppet with
|
|
87
87
|
'--genconfig'.
|
|
@@ -128,8 +128,8 @@ class Puppet::Application::Apply < Puppet::Application
|
|
|
128
128
|
format.
|
|
129
129
|
|
|
130
130
|
* --noop:
|
|
131
|
-
Use 'noop' mode where
|
|
132
|
-
is useful for seeing what changes
|
|
131
|
+
Use 'noop' mode where OpenVox runs in a no-op or dry-run mode. This
|
|
132
|
+
is useful for seeing what changes OpenVox will make without actually
|
|
133
133
|
executing the changes.
|
|
134
134
|
|
|
135
135
|
* --execute:
|
|
@@ -143,7 +143,7 @@ class Puppet::Application::Apply < Puppet::Application
|
|
|
143
143
|
Print extra information.
|
|
144
144
|
|
|
145
145
|
* --catalog:
|
|
146
|
-
Apply a JSON catalog (such as one generated with 'puppet
|
|
146
|
+
Apply a JSON catalog (such as one generated with 'puppet catalog compile'). You can
|
|
147
147
|
either specify a JSON file or pipe in JSON from standard input.
|
|
148
148
|
|
|
149
149
|
* --write-catalog-summary
|
|
@@ -165,8 +165,8 @@ class Puppet::Application::Apply < Puppet::Application
|
|
|
165
165
|
|
|
166
166
|
COPYRIGHT
|
|
167
167
|
---------
|
|
168
|
-
Copyright (c) 2011 Puppet Inc
|
|
169
|
-
Copyright (c) 2024 Vox Pupuli
|
|
168
|
+
Copyright (c) 2011 Puppet Inc.;
|
|
169
|
+
Copyright (c) 2024 Vox Pupuli.
|
|
170
170
|
Licensed under the Apache 2.0 License
|
|
171
171
|
|
|
172
172
|
HELP
|
|
@@ -185,7 +185,7 @@ class Puppet::Application::Describe < Puppet::Application
|
|
|
185
185
|
|
|
186
186
|
SYNOPSIS
|
|
187
187
|
--------
|
|
188
|
-
Prints help about
|
|
188
|
+
Prints help about resource types, providers, and metaparameters
|
|
189
189
|
installed on an OpenVox node.
|
|
190
190
|
|
|
191
191
|
|
|
@@ -226,8 +226,8 @@ class Puppet::Application::Describe < Puppet::Application
|
|
|
226
226
|
|
|
227
227
|
COPYRIGHT
|
|
228
228
|
---------
|
|
229
|
-
Copyright (c) 2011 Puppet Inc
|
|
230
|
-
Copyright (c) 2024 Vox Pupuli
|
|
229
|
+
Copyright (c) 2011 Puppet Inc.;
|
|
230
|
+
Copyright (c) 2024 Vox Pupuli.
|
|
231
231
|
Licensed under the Apache 2.0 License
|
|
232
232
|
|
|
233
233
|
HELP
|
|
@@ -134,7 +134,7 @@ class Puppet::Application::Device < Puppet::Application
|
|
|
134
134
|
The optional debug property specifies transport-level debugging,
|
|
135
135
|
and is limited to telnet and ssh transports.
|
|
136
136
|
|
|
137
|
-
See https://
|
|
137
|
+
See https://docs.openvoxproject.org/openvox/latest/config_file_device.html for details.
|
|
138
138
|
|
|
139
139
|
|
|
140
140
|
OPTIONS
|
|
@@ -63,7 +63,7 @@ class Puppet::Application::Doc < Puppet::Application
|
|
|
63
63
|
|
|
64
64
|
SYNOPSIS
|
|
65
65
|
--------
|
|
66
|
-
Generates a reference for all
|
|
66
|
+
Generates a reference for all resource types. Largely meant for internal use. (Deprecated)
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
USAGE
|
|
@@ -75,7 +75,7 @@ class Puppet::Application::Doc < Puppet::Application
|
|
|
75
75
|
DESCRIPTION
|
|
76
76
|
-----------
|
|
77
77
|
This deprecated command generates a Markdown document to stdout
|
|
78
|
-
describing all installed
|
|
78
|
+
describing all installed resource types or all allowable arguments to
|
|
79
79
|
puppet executables. It is largely meant for internal use and is used to
|
|
80
80
|
generate the reference documents which can be posted to a website.
|
|
81
81
|
|
|
@@ -83,9 +83,7 @@ class Puppet::Application::Doc < Puppet::Application
|
|
|
83
83
|
has been superseded by the "puppet-strings"
|
|
84
84
|
module - see https://github.com/puppetlabs/puppetlabs-strings for more information.
|
|
85
85
|
|
|
86
|
-
This command (puppet-doc) will be removed
|
|
87
|
-
puppetlabs internal documentation processing pipeline is completely based
|
|
88
|
-
on puppet-strings.
|
|
86
|
+
This command (puppet-doc) will be removed in a future release.
|
|
89
87
|
|
|
90
88
|
OPTIONS
|
|
91
89
|
-------
|
|
@@ -110,8 +108,8 @@ class Puppet::Application::Doc < Puppet::Application
|
|
|
110
108
|
|
|
111
109
|
COPYRIGHT
|
|
112
110
|
---------
|
|
113
|
-
Copyright (c) 2011 Puppet Inc
|
|
114
|
-
Copyright (c) 2024 Vox Pupuli
|
|
111
|
+
Copyright (c) 2011 Puppet Inc.;
|
|
112
|
+
Copyright (c) 2024 Vox Pupuli.
|
|
115
113
|
Licensed under the Apache 2.0 License
|
|
116
114
|
|
|
117
115
|
HELP
|
|
@@ -5,7 +5,7 @@ require_relative '../../puppet/application/indirection_base'
|
|
|
5
5
|
class Puppet::Application::Facts < Puppet::Application::IndirectionBase
|
|
6
6
|
# Allows `puppet facts` actions to be run against environments that
|
|
7
7
|
# don't exist locally, such as using the `--environment` flag to make a REST
|
|
8
|
-
# request to a specific environment on a
|
|
8
|
+
# request to a specific environment on a server. There is no way to set this
|
|
9
9
|
# behavior per-action, so it must be set for the face as a whole.
|
|
10
10
|
environment_mode :not_required
|
|
11
11
|
end
|
|
@@ -72,7 +72,7 @@ class Puppet::Application::Filebucket < Puppet::Application
|
|
|
72
72
|
|
|
73
73
|
Note that 'filebucket' defaults to using a network-based filebucket
|
|
74
74
|
available on the server named 'puppet'. To use this, you'll have to be
|
|
75
|
-
running as a user with valid
|
|
75
|
+
running as a user with valid OpenVox certificates. Alternatively, you can
|
|
76
76
|
use your local file bucket by specifying '--local', or by specifying
|
|
77
77
|
'--bucket' with a local path.
|
|
78
78
|
|
|
@@ -99,7 +99,7 @@ class Puppet::Application::Filebucket < Puppet::Application
|
|
|
99
99
|
argument.
|
|
100
100
|
|
|
101
101
|
See the configuration file documentation at
|
|
102
|
-
https://
|
|
102
|
+
https://docs.openvoxproject.org/openvox/latest/configuration.html for the
|
|
103
103
|
full list of acceptable parameters. A commented list of all
|
|
104
104
|
configuration options can also be generated by running puppet with
|
|
105
105
|
'--genconfig'.
|
|
@@ -194,7 +194,7 @@ class Puppet::Application::Filebucket < Puppet::Application
|
|
|
194
194
|
$ puppet filebucket -b /tmp/TestBucket list
|
|
195
195
|
d41d8cd98f00b204e9800998ecf8427e 2015-05-11 09:33:22 /tmp/TestFile2
|
|
196
196
|
|
|
197
|
-
## From
|
|
197
|
+
## From an OpenVox Server, list files in the server bucketdir
|
|
198
198
|
$ puppet filebucket -b $(puppet config print bucketdir --section server) list
|
|
199
199
|
d43a6ecaa892a1962398ac9170ea9bf2 2015-05-11 09:27:56 /tmp/TestFile
|
|
200
200
|
7ae322f5791217e031dc60188f4521ef 2015-05-11 09:52:15 /tmp/TestFile
|
|
@@ -206,8 +206,8 @@ class Puppet::Application::Filebucket < Puppet::Application
|
|
|
206
206
|
|
|
207
207
|
COPYRIGHT
|
|
208
208
|
---------
|
|
209
|
-
Copyright (c) 2011 Puppet Inc
|
|
210
|
-
Copyright (c) 2024 Vox Pupuli
|
|
209
|
+
Copyright (c) 2011 Puppet Inc.;
|
|
210
|
+
Copyright (c) 2024 Vox Pupuli.
|
|
211
211
|
Licensed under the Apache 2.0 License
|
|
212
212
|
|
|
213
213
|
HELP
|
|
@@ -133,7 +133,7 @@ class Puppet::Application::Lookup < Puppet::Application
|
|
|
133
133
|
|
|
134
134
|
DESCRIPTION
|
|
135
135
|
-----------
|
|
136
|
-
The lookup command is a CLI for
|
|
136
|
+
The lookup command is a CLI for OpenVox's 'lookup()' function. It searches your
|
|
137
137
|
Hiera data and returns a value for the requested lookup key, so you can test and
|
|
138
138
|
explore your data. It is a modern replacement for the 'hiera' command.
|
|
139
139
|
Lookup uses the setting for global hiera.yaml from puppet's config,
|
|
@@ -143,7 +143,7 @@ class Puppet::Application::Lookup < Puppet::Application
|
|
|
143
143
|
default, 'puppet lookup' uses facts from the node you run the command on, but
|
|
144
144
|
you can get data for any other node with the '--node <NAME>' option. If
|
|
145
145
|
possible, the lookup command will use the requested node's real stored facts
|
|
146
|
-
from
|
|
146
|
+
from OpenVoxDB; if OpenVoxDB isn't configured or you want to provide arbitrary
|
|
147
147
|
fact values, you can pass alternate facts as a JSON or YAML file with '--facts
|
|
148
148
|
<FILE>'.
|
|
149
149
|
|
|
@@ -158,7 +158,7 @@ class Puppet::Application::Lookup < Puppet::Application
|
|
|
158
158
|
value for the first found key, omitting the rest.
|
|
159
159
|
|
|
160
160
|
For more details about how Hiera works, see the Hiera documentation:
|
|
161
|
-
https://
|
|
161
|
+
https://docs.openvoxproject.org/openvox/latest/hiera_intro.html
|
|
162
162
|
|
|
163
163
|
OPTIONS
|
|
164
164
|
-------
|
|
@@ -175,7 +175,7 @@ class Puppet::Application::Lookup < Puppet::Application
|
|
|
175
175
|
is run. Since Hiera's purpose is to provide different values for different
|
|
176
176
|
nodes (usually based on their facts), you'll usually want to use some specific
|
|
177
177
|
node's facts to explore your data. If the node where you're running this
|
|
178
|
-
command is configured to talk to
|
|
178
|
+
command is configured to talk to OpenVoxDB, the command will use the requested
|
|
179
179
|
node's most recent facts. Otherwise, you can override facts with the '--facts'
|
|
180
180
|
option.
|
|
181
181
|
|
|
@@ -185,7 +185,7 @@ class Puppet::Application::Lookup < Puppet::Application
|
|
|
185
185
|
original value.
|
|
186
186
|
|
|
187
187
|
* --environment <ENV>
|
|
188
|
-
Like with most
|
|
188
|
+
Like with most OpenVox commands, you can specify an environment on the command
|
|
189
189
|
line. This is important for lookup because different environments can have
|
|
190
190
|
different Hiera data. This environment will be always be the one used regardless
|
|
191
191
|
of any other factors.
|
|
@@ -236,14 +236,14 @@ class Puppet::Application::Lookup < Puppet::Application
|
|
|
236
236
|
|
|
237
237
|
EXAMPLE
|
|
238
238
|
-------
|
|
239
|
-
To look up 'key_name' using the
|
|
239
|
+
To look up 'key_name' using the OpenVox Server node's facts:
|
|
240
240
|
$ puppet lookup key_name
|
|
241
241
|
|
|
242
|
-
To look up 'key_name' using the
|
|
242
|
+
To look up 'key_name' using the OpenVox Server node's arbitrary variables from a manifest, and
|
|
243
243
|
classify the node if applicable:
|
|
244
244
|
$ puppet lookup key_name --compile
|
|
245
245
|
|
|
246
|
-
To look up 'key_name' using the
|
|
246
|
+
To look up 'key_name' using the OpenVox Server node's facts, overridden by facts given in a file:
|
|
247
247
|
$ puppet lookup key_name --facts fact_file.yaml
|
|
248
248
|
|
|
249
249
|
To look up 'key_name' with agent.local's facts:
|
|
@@ -60,7 +60,7 @@ class Puppet::Application::Resource < Puppet::Application
|
|
|
60
60
|
-----------
|
|
61
61
|
This command provides simple facilities for converting current system
|
|
62
62
|
state into Puppet code, along with some ability to modify the current
|
|
63
|
-
state using
|
|
63
|
+
state using the OpenVox RAL.
|
|
64
64
|
|
|
65
65
|
By default, you must at least provide a type to list, in which case
|
|
66
66
|
puppet resource will tell you everything it knows about all resources of
|
|
@@ -71,7 +71,7 @@ class Puppet::Application::Resource < Puppet::Application
|
|
|
71
71
|
puppet resource will modify the state of the specified resource.
|
|
72
72
|
Alternately, if given a type, a name, and the '--edit' flag, puppet
|
|
73
73
|
resource will write its output to a file, open that file in an editor,
|
|
74
|
-
and then apply the saved file as
|
|
74
|
+
and then apply the saved file as an OpenVox transaction.
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
OPTIONS
|
|
@@ -82,7 +82,7 @@ class Puppet::Application::Resource < Puppet::Application
|
|
|
82
82
|
argument.
|
|
83
83
|
|
|
84
84
|
See the configuration file documentation at
|
|
85
|
-
https://
|
|
85
|
+
https://docs.openvoxproject.org/openvox/latest/configuration.html for the
|
|
86
86
|
full list of acceptable parameters. A commented list of all
|
|
87
87
|
configuration options can also be generated by running puppet with
|
|
88
88
|
'--genconfig'.
|
|
@@ -137,8 +137,8 @@ class Puppet::Application::Resource < Puppet::Application
|
|
|
137
137
|
|
|
138
138
|
COPYRIGHT
|
|
139
139
|
---------
|
|
140
|
-
Copyright (c) 2011 Puppet Inc
|
|
141
|
-
Copyright (c) 2024 Vox Pupuli
|
|
140
|
+
Copyright (c) 2011 Puppet Inc.;
|
|
141
|
+
Copyright (c) 2024 Vox Pupuli.
|
|
142
142
|
Licensed under the Apache 2.0 License
|
|
143
143
|
|
|
144
144
|
HELP
|
|
@@ -56,7 +56,7 @@ class Puppet::Application::Script < Puppet::Application
|
|
|
56
56
|
as an argument.
|
|
57
57
|
|
|
58
58
|
See the configuration file documentation at
|
|
59
|
-
https://
|
|
59
|
+
https://docs.openvoxproject.org/openvox/latest/configuration.html for the
|
|
60
60
|
full list of acceptable parameters. A commented list of all
|
|
61
61
|
configuration options can also be generated by running puppet with
|
|
62
62
|
'--genconfig'.
|
|
@@ -84,8 +84,8 @@ class Puppet::Application::Script < Puppet::Application
|
|
|
84
84
|
format.
|
|
85
85
|
|
|
86
86
|
* --noop:
|
|
87
|
-
Use 'noop' mode where
|
|
88
|
-
is useful for seeing what changes
|
|
87
|
+
Use 'noop' mode where OpenVox runs in a no-op or dry-run mode. This
|
|
88
|
+
is useful for seeing what changes OpenVox will make without actually
|
|
89
89
|
executing the changes. Applies to tasks only.
|
|
90
90
|
|
|
91
91
|
* --execute:
|
|
@@ -55,8 +55,8 @@ class Puppet::Application::Ssl < Puppet::Application
|
|
|
55
55
|
Perform all of the steps necessary to request and download a client
|
|
56
56
|
certificate. If autosigning is disabled, then puppet will wait every
|
|
57
57
|
`waitforcert` seconds for its certificate to be signed. To only attempt
|
|
58
|
-
once and never wait, specify a time of 0. Since `waitforcert` is
|
|
59
|
-
|
|
58
|
+
once and never wait, specify a time of 0. Since `waitforcert` is an
|
|
59
|
+
OpenVox setting, it can be specified as a time interval, such as 30s,
|
|
60
60
|
5m, 1h.
|
|
61
61
|
|
|
62
62
|
* submit_request:
|
|
@@ -96,8 +96,8 @@ class Puppet::Application::Ssl < Puppet::Application
|
|
|
96
96
|
|
|
97
97
|
COPYRIGHT
|
|
98
98
|
---------
|
|
99
|
-
Copyright (c) 2011 Puppet Inc
|
|
100
|
-
Copyright (c) 2024 Vox Pupuli
|
|
99
|
+
Copyright (c) 2011 Puppet Inc.;
|
|
100
|
+
Copyright (c) 2024 Vox Pupuli.
|
|
101
101
|
Licensed under the Apache 2.0 License
|
|
102
102
|
HELP
|
|
103
103
|
end
|
|
@@ -10,7 +10,7 @@ require_relative '../puppet/indirector'
|
|
|
10
10
|
module Puppet
|
|
11
11
|
module ApplicationSupport
|
|
12
12
|
# Pushes a Puppet Context configured with a remote environment for an agent
|
|
13
|
-
# (one that exists at the
|
|
13
|
+
# (one that exists at the server end), and a regular environment for other
|
|
14
14
|
# modes. The configuration is overridden with options from the command line
|
|
15
15
|
# before being set in a pushed Puppet Context.
|
|
16
16
|
#
|
|
@@ -44,7 +44,7 @@ module Puppet
|
|
|
44
44
|
# Reads the routes YAML settings from the file specified by Puppet[:route_file]
|
|
45
45
|
# and resets indirector termini for the current application class if listed.
|
|
46
46
|
#
|
|
47
|
-
# For instance,
|
|
47
|
+
# For instance, this can be used to set the server facts terminus
|
|
48
48
|
# to 'puppetdb' and its cache terminus to 'yaml'.
|
|
49
49
|
#
|
|
50
50
|
# @param application_name [String] The name of the current application.
|
data/lib/puppet/configurer.rb
CHANGED
|
@@ -20,7 +20,7 @@ class Puppet::Configurer
|
|
|
20
20
|
|
|
21
21
|
# Provide more helpful strings to the logging that the Agent does
|
|
22
22
|
def self.to_s
|
|
23
|
-
_("
|
|
23
|
+
_("OpenVox configuration client")
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
def self.should_pluginsync?
|
|
@@ -253,7 +253,8 @@ class Puppet::Configurer
|
|
|
253
253
|
|
|
254
254
|
def prepare_and_retrieve_catalog(cached_catalog, facts, options, query_options)
|
|
255
255
|
# set report host name now that we have the fact
|
|
256
|
-
|
|
256
|
+
node_name = Puppet[:node_name_value]
|
|
257
|
+
options[:report].host = node_name
|
|
257
258
|
|
|
258
259
|
query_options[:transaction_uuid] = @transaction_uuid
|
|
259
260
|
query_options[:job_id] = @job_id
|
|
@@ -270,6 +271,11 @@ class Puppet::Configurer
|
|
|
270
271
|
catalog = retrieve_catalog(facts, query_options)
|
|
271
272
|
Puppet.err _("Could not retrieve catalog; skipping run") unless catalog
|
|
272
273
|
end
|
|
274
|
+
|
|
275
|
+
if catalog.name != node_name
|
|
276
|
+
Puppet.err _("Catalog name '#{catalog.name}' does not match this node's certname '#{node_name}'")
|
|
277
|
+
end
|
|
278
|
+
|
|
273
279
|
catalog
|
|
274
280
|
end
|
|
275
281
|
|
|
@@ -318,7 +324,7 @@ class Puppet::Configurer
|
|
|
318
324
|
if options[:catalog].nil? && do_failover
|
|
319
325
|
server, port = find_functional_server
|
|
320
326
|
if server.nil?
|
|
321
|
-
detail = _("Could not select a functional
|
|
327
|
+
detail = _("Could not select a functional OpenVox server from server_list: '%{server_list}'") % { server_list: Puppet.settings.value(:server_list, Puppet[:environment].to_sym, true) }
|
|
322
328
|
if Puppet[:usecacheonfailure]
|
|
323
329
|
options[:pluginsync] = false
|
|
324
330
|
@running_failure = true
|
|
@@ -332,7 +338,7 @@ class Puppet::Configurer
|
|
|
332
338
|
end
|
|
333
339
|
else
|
|
334
340
|
# TRANSLATORS 'server_list' is the name of a setting and should not be translated
|
|
335
|
-
Puppet.debug _("Selected
|
|
341
|
+
Puppet.debug _("Selected OpenVox server from the `server_list` setting: %{server}:%{port}") % { server: server, port: port }
|
|
336
342
|
report.server_used = "#{server}:#{port}"
|
|
337
343
|
end
|
|
338
344
|
Puppet.override(server: server, serverport: port) do
|
|
@@ -557,7 +563,7 @@ class Puppet::Configurer
|
|
|
557
563
|
service = session.route_to(:puppet)
|
|
558
564
|
return [service.url.host, service.url.port]
|
|
559
565
|
rescue Puppet::HTTP::ResponseError => e
|
|
560
|
-
Puppet.debug(_("
|
|
566
|
+
Puppet.debug(_("OpenVox server %{host}:%{port} is unavailable: %{code} %{reason}") %
|
|
561
567
|
{ host: e.response.url.host, port: e.response.url.port, code: e.response.code, reason: e.response.reason })
|
|
562
568
|
rescue => detail
|
|
563
569
|
# TRANSLATORS 'server_list' is the name of a setting and should not be translated
|
|
@@ -653,10 +659,10 @@ class Puppet::Configurer
|
|
|
653
659
|
Puppet.log_exception(detail, _("Could not save last run local report: %{detail}") % { detail: detail })
|
|
654
660
|
end
|
|
655
661
|
|
|
656
|
-
# Submit updated facts to the
|
|
662
|
+
# Submit updated facts to the OpenVox Server
|
|
657
663
|
#
|
|
658
664
|
# This method will clear all current fact values, load a fresh set of
|
|
659
|
-
# fact data, and then submit it to the
|
|
665
|
+
# fact data, and then submit it to the OpenVox Server.
|
|
660
666
|
#
|
|
661
667
|
# @return [true] If fact submission succeeds.
|
|
662
668
|
# @return [false] If an exception is raised during fact generation or
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
require_relative '../../puppet/confine'
|
|
4
4
|
|
|
5
|
-
# Require a specific value for a variable, either
|
|
6
|
-
# or
|
|
5
|
+
# Require a specific value for a variable, either an OpenVox setting
|
|
6
|
+
# or an OpenFact value. This class is a bit weird because the name
|
|
7
7
|
# is set explicitly by the ConfineCollection class -- from this class,
|
|
8
8
|
# it's not obvious how the name would ever get set.
|
|
9
9
|
class Puppet::Confine::Variable < Puppet::Confine
|
data/lib/puppet/context.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
require_relative '../puppet/thread_local'
|
|
4
4
|
|
|
5
5
|
# Puppet::Context is a system for tracking services and contextual information
|
|
6
|
-
# that
|
|
6
|
+
# that OpenVox needs to be able to run. Values are "bound" in a context when it is created
|
|
7
7
|
# and cannot be changed; however a child context can be created, using
|
|
8
8
|
# {#override}, that provides a different value.
|
|
9
9
|
#
|
data/lib/puppet/data_binding.rb
CHANGED
|
@@ -7,7 +7,7 @@ class Puppet::DataBinding
|
|
|
7
7
|
# Set up indirection, so that data can be looked for in the compiler
|
|
8
8
|
extend Puppet::Indirector
|
|
9
9
|
|
|
10
|
-
indirects(:data_binding, :
|
|
10
|
+
indirects(:data_binding, :terminus_class => :hiera,
|
|
11
11
|
:doc => "Where to find external data bindings.")
|
|
12
12
|
|
|
13
13
|
class LookupError < Puppet::PreformattedError; end
|