openvox 9.0.0.pre.beta1 → 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 +60 -2
- data/CODE_OF_CONDUCT.md +1 -1
- data/Gemfile +3 -3
- 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 +156 -194
- 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/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/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 +1 -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 -1
- 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/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/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 +10 -10
- 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 +3 -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 +4 -4
- 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 +18 -18
- 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 +2 -2
- 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 +3 -6
- 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
|
@@ -39,7 +39,7 @@ class Puppet::Util::Profiler::AroundProfiler
|
|
|
39
39
|
|
|
40
40
|
# Profile a block of code and log the time it took to execute.
|
|
41
41
|
#
|
|
42
|
-
# This outputs
|
|
42
|
+
# This outputs log entries to the OpenVox server's logging destination
|
|
43
43
|
# providing the time it took, a message describing the profiled code
|
|
44
44
|
# and a leaf location marking where the profile method was called
|
|
45
45
|
# in the profiled hierarchy.
|
data/lib/puppet/util/profiler.rb
CHANGED
|
@@ -40,7 +40,7 @@ module Puppet::Util::Profiler
|
|
|
40
40
|
|
|
41
41
|
# Profile a block of code and log the time it took to execute.
|
|
42
42
|
#
|
|
43
|
-
# This outputs
|
|
43
|
+
# This outputs log entries to the OpenVox server's logging destination
|
|
44
44
|
# providing the time it took, a message describing the profiled code
|
|
45
45
|
# and a leaf location marking where the profile method was called
|
|
46
46
|
# in the profiled hierarchy.
|
data/lib/puppet/util/rdoc.rb
CHANGED
|
@@ -16,9 +16,12 @@ module Puppet::Util::RDoc
|
|
|
16
16
|
|
|
17
17
|
r = RDoc::RDoc.new
|
|
18
18
|
|
|
19
|
-
#
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
# Documentation is rendered by RDoc's default generator using our custom
|
|
20
|
+
# parser. The historical custom "puppet" generator and its HTML template
|
|
21
|
+
# targeted RDoc 1.x and could not be loaded under any supported RDoc; the
|
|
22
|
+
# template also carried a CC-BY-1.0 license, which is incompatible with
|
|
23
|
+
# the Debian Free Software Guidelines. Both were removed.
|
|
24
|
+
options = ["--quiet",
|
|
22
25
|
"--exclude", "/modules/[^/]*/spec/.*$",
|
|
23
26
|
"--exclude", "/modules/[^/]*/files/.*$",
|
|
24
27
|
"--exclude", "/modules/[^/]*/tests/.*$",
|
data/lib/puppet/util/selinux.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Provides utility functions to help interface
|
|
3
|
+
# Provides utility functions to help interface OpenVox to SELinux.
|
|
4
4
|
#
|
|
5
5
|
# This requires the very new SELinux Ruby bindings. These bindings closely
|
|
6
6
|
# mirror the SELinux C library interface.
|
|
@@ -111,7 +111,7 @@ module Puppet::Util::SELinux
|
|
|
111
111
|
# This updates the actual SELinux label on the file. You can update
|
|
112
112
|
# only a single component or update the entire context.
|
|
113
113
|
# The caveat is that since setting a partial context makes no sense the
|
|
114
|
-
# file has to already exist.
|
|
114
|
+
# file has to already exist. OpenVox (via the File resource) will always
|
|
115
115
|
# just try to set components, even if all values are specified by the manifest.
|
|
116
116
|
# I believe that the OS should always provide at least a fall-through context
|
|
117
117
|
# though on any well-running system.
|
|
@@ -123,7 +123,7 @@ module Puppet::Util::SELinux
|
|
|
123
123
|
context = Selinux.lgetfilecon(file)[1]
|
|
124
124
|
if context == -1
|
|
125
125
|
# We can't set partial context components when no context exists
|
|
126
|
-
# unless/until we can find a way to make
|
|
126
|
+
# unless/until we can find a way to make OpenVox call this method
|
|
127
127
|
# once for all selinux file label attributes.
|
|
128
128
|
Puppet.warning _("Can't set SELinux context on file unless the file already has some kind of context")
|
|
129
129
|
return nil
|
|
@@ -157,7 +157,7 @@ module Puppet::Util::SELinux
|
|
|
157
157
|
|
|
158
158
|
# Since this call relies on get_selinux_default_context it also needs a
|
|
159
159
|
# full non-relative path to the file. Fortunately, that seems to be all
|
|
160
|
-
#
|
|
160
|
+
# OpenVox uses. This will set the file's SELinux context to the policy's
|
|
161
161
|
# default context (if any) if it differs from the context currently on
|
|
162
162
|
# the file.
|
|
163
163
|
def set_selinux_default_context(file, resource_ensure = nil)
|
|
@@ -178,7 +178,7 @@ module Puppet::Util::SELinux
|
|
|
178
178
|
# potential issues when mcstransd is not functional.
|
|
179
179
|
#
|
|
180
180
|
# It is not marked private because it is needed by File's
|
|
181
|
-
# selcontext.rb, but it is not intended for use outside of
|
|
181
|
+
# selcontext.rb, but it is not intended for use outside of OpenVox's
|
|
182
182
|
# code.
|
|
183
183
|
#
|
|
184
184
|
# @param category [String] An selinux category, such as "s0" or "SystemLow"
|
data/lib/puppet/util/tag_set.rb
CHANGED
|
@@ -288,7 +288,7 @@ module Puppet::Util::Windows::ADSI
|
|
|
288
288
|
rescue WIN32OLERuntimeError => e
|
|
289
289
|
# ERROR_BAD_USERNAME 2202L from winerror.h
|
|
290
290
|
if e.message =~ /8007089A/m
|
|
291
|
-
raise Puppet::Error, _("
|
|
291
|
+
raise Puppet::Error, _("OpenVox is not able to create/delete domain %{object_class} objects with the %{object_class} resource.") % { object_class: object_class }
|
|
292
292
|
end
|
|
293
293
|
|
|
294
294
|
raise Puppet::Error.new(_("%{object_class} update failed: %{error}") % { object_class: object_class.capitalize, error: e }, e)
|
|
@@ -129,7 +129,7 @@ module Puppet::Util::Windows::COM
|
|
|
129
129
|
module Instance
|
|
130
130
|
def self.[](iface)
|
|
131
131
|
Class.new(iface) do
|
|
132
|
-
|
|
132
|
+
include Helpers
|
|
133
133
|
|
|
134
134
|
def initialize(pointer)
|
|
135
135
|
self.pointer = pointer
|
|
@@ -158,7 +158,7 @@ module Puppet::Util::Windows::COM
|
|
|
158
158
|
module Factory
|
|
159
159
|
def self.[](iface, clsid)
|
|
160
160
|
Class.new(iface) do
|
|
161
|
-
|
|
161
|
+
include Helpers
|
|
162
162
|
|
|
163
163
|
const_set(:CLSID, clsid)
|
|
164
164
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
require 'ffi'
|
|
4
4
|
|
|
5
5
|
# Puppet::Util::Windows::EventLog needs to be requirable without having loaded
|
|
6
|
-
# any other parts of
|
|
7
|
-
# that runs
|
|
6
|
+
# any other parts of OpenVox so it can be leveraged independently by the code
|
|
7
|
+
# that runs OpenVox as a service on Windows.
|
|
8
8
|
#
|
|
9
9
|
# For this reason we:
|
|
10
10
|
# - Define Puppet::Util::Windows
|
|
@@ -21,7 +21,7 @@ class Puppet::Util::Windows::EventLog
|
|
|
21
21
|
EVENTLOG_INFORMATION_TYPE = 0x0004
|
|
22
22
|
|
|
23
23
|
# These are duplicate definitions from Puppet::Util::Windows::ApiTypes,
|
|
24
|
-
# established here so this class can be standalone from
|
|
24
|
+
# established here so this class can be standalone from OpenVox, and public so
|
|
25
25
|
# we can reference them in tests.
|
|
26
26
|
NULL_HANDLE = 0
|
|
27
27
|
WIN32_FALSE = 0
|
|
@@ -88,7 +88,7 @@ class Puppet::Util::Windows::EventLog
|
|
|
88
88
|
|
|
89
89
|
# Query event identifier info for a given log level
|
|
90
90
|
# @param level [Symbol] an event log level
|
|
91
|
-
# @return [Array] Win API Event ID,
|
|
91
|
+
# @return [Array] Win API Event ID, OpenVox Event ID
|
|
92
92
|
# @api public
|
|
93
93
|
def to_native(level)
|
|
94
94
|
case level
|
|
@@ -107,9 +107,9 @@ class Puppet::Util::Windows::EventLog
|
|
|
107
107
|
private
|
|
108
108
|
|
|
109
109
|
# For the purposes of allowing this class to be standalone, the following are
|
|
110
|
-
# duplicate definitions from elsewhere in
|
|
110
|
+
# duplicate definitions from elsewhere in OpenVox:
|
|
111
111
|
|
|
112
|
-
# If we're loaded via
|
|
112
|
+
# If we're loaded via OpenVox we should keep the previous behavior of raising
|
|
113
113
|
# Puppet::Util::Windows::Error on errors. If we aren't, at least concatenate
|
|
114
114
|
# the error code to the exception message to pass this information on to the
|
|
115
115
|
# user
|
|
@@ -213,7 +213,7 @@ module Puppet::Util::Windows::File
|
|
|
213
213
|
module_function :reparse_point?
|
|
214
214
|
|
|
215
215
|
def symlink?(file_name)
|
|
216
|
-
#
|
|
216
|
+
# OpenVox currently only handles mount point and symlink reparse points, ignores others
|
|
217
217
|
reparse_point?(file_name) && symlink_reparse_point?(file_name)
|
|
218
218
|
end
|
|
219
219
|
module_function :symlink?
|
|
@@ -340,7 +340,7 @@ module Puppet::Util::Windows::File
|
|
|
340
340
|
end
|
|
341
341
|
private_class_method :resolve_symlink
|
|
342
342
|
|
|
343
|
-
# these reparse point types are the only ones
|
|
343
|
+
# these reparse point types are the only ones OpenVox currently understands
|
|
344
344
|
# so rather than raising an exception in readlink, prefer to not consider
|
|
345
345
|
# the path a symlink when stat'ing later
|
|
346
346
|
def self.symlink_reparse_point?(path)
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
#
|
|
6
6
|
# The primary goal of this mapping is to ensure that owner, group, and
|
|
7
7
|
# modes can be round-tripped in a consistent and deterministic
|
|
8
|
-
# way. Otherwise,
|
|
8
|
+
# way. Otherwise, OpenVox might think file resources are out-of-sync
|
|
9
9
|
# every time it runs. A secondary goal is to provide equivalent
|
|
10
10
|
# permissions for common use-cases. For example, setting the owner to
|
|
11
11
|
# "Administrators", group to "Users", and mode to 750 (which also
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
# be mapped into the 3 class POSIX model. The get_mode method will
|
|
53
53
|
# set the S_IEXTRA bit flag indicating that an access control entry
|
|
54
54
|
# was found whose SID is neither the owner, group, or other. This
|
|
55
|
-
# enables
|
|
56
|
-
# especially those that
|
|
55
|
+
# enables OpenVox to detect when file/dirs are out-of-sync,
|
|
56
|
+
# especially those that OpenVox did not create, but is attempting
|
|
57
57
|
# to manage.
|
|
58
58
|
# * A special case of this is S_ISYSTEM_MISSING, which is set when the
|
|
59
59
|
# SYSTEM permissions are *not* present on the DACL.
|
data/lib/puppet/util.rb
CHANGED
|
@@ -262,7 +262,7 @@ module Util
|
|
|
262
262
|
end
|
|
263
263
|
|
|
264
264
|
# Ruby only sets File::ALT_SEPARATOR on Windows and the Ruby standard
|
|
265
|
-
# library uses that to test what platform it's on. Normally in
|
|
265
|
+
# library uses that to test what platform it's on. Normally in OpenVox we
|
|
266
266
|
# would use Puppet.features.microsoft_windows?, but this method needs to
|
|
267
267
|
# be called during the initialization of features so it can't depend on
|
|
268
268
|
# that.
|
|
@@ -744,7 +744,7 @@ module Util
|
|
|
744
744
|
module_function :deterministic_rand_int
|
|
745
745
|
|
|
746
746
|
# Executes a block of code, wrapped around Facter.load_external(false) and
|
|
747
|
-
# Facter.load_external(true) which will cause
|
|
747
|
+
# Facter.load_external(true) which will cause OpenFact to not evaluate external facts.
|
|
748
748
|
def skip_external_facts
|
|
749
749
|
return yield unless Puppet.runtime[:facter].load_external?
|
|
750
750
|
|
data/lib/puppet/version.rb
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
# The version method and constant are isolated in puppet/version.rb so that a
|
|
4
4
|
# simple `require 'puppet/version'` allows a rubygems gemspec or bundler
|
|
5
|
-
# Gemfile to get the
|
|
5
|
+
# Gemfile to get the OpenVox version of the gem install.
|
|
6
6
|
#
|
|
7
7
|
# The version can be set programmatically because we want to allow the
|
|
8
8
|
# Raketasks and such to set the version based on the output of `git describe`
|
|
9
9
|
|
|
10
10
|
module Puppet
|
|
11
|
-
PUPPETVERSION = '9.0.0-
|
|
11
|
+
PUPPETVERSION = '9.0.0-beta2'
|
|
12
12
|
IMPLEMENTATION = 'openvox'
|
|
13
13
|
|
|
14
14
|
##
|
|
15
15
|
# version is a public API method intended to always provide a fast and
|
|
16
|
-
# lightweight way to determine the version of
|
|
16
|
+
# lightweight way to determine the version of OpenVox.
|
|
17
17
|
#
|
|
18
|
-
# The intent is that software external to
|
|
19
|
-
#
|
|
18
|
+
# The intent is that software external to OpenVox be able to determine the
|
|
19
|
+
# OpenVox version with no side-effects. The expected use is:
|
|
20
20
|
#
|
|
21
21
|
# require 'puppet/version'
|
|
22
22
|
# version = Puppet.version
|
|
@@ -40,7 +40,7 @@ module Puppet
|
|
|
40
40
|
#
|
|
41
41
|
# By design the version identifier is _not_ intended to vary during the life
|
|
42
42
|
# a process. There is no guarantee provided that writing to the VERSION file
|
|
43
|
-
# while
|
|
43
|
+
# while an OpenVox process is running will cause the version string to be
|
|
44
44
|
# updated. On the contrary, the contents of the VERSION are cached to reduce
|
|
45
45
|
# filesystem accesses.
|
|
46
46
|
#
|
|
@@ -60,7 +60,7 @@ module Puppet
|
|
|
60
60
|
#
|
|
61
61
|
# @api public
|
|
62
62
|
#
|
|
63
|
-
# @return [String] containing the
|
|
63
|
+
# @return [String] containing the OpenVox version, e.g. "3.0.1"
|
|
64
64
|
def self.version
|
|
65
65
|
version_file = File.join(File.dirname(__FILE__), 'VERSION')
|
|
66
66
|
return @puppet_version if @puppet_version
|
|
@@ -68,7 +68,7 @@ module Puppet
|
|
|
68
68
|
@puppet_version = read_version_file(version_file) || PUPPETVERSION
|
|
69
69
|
end
|
|
70
70
|
|
|
71
|
-
# @return [String] containing the
|
|
71
|
+
# @return [String] containing the OpenVox version to minor specificity, e.g. "3.0"
|
|
72
72
|
def self.minor_version
|
|
73
73
|
version.split('.')[0..1].join('.')
|
|
74
74
|
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
require_relative '../../puppet/x509'
|
|
4
4
|
|
|
5
5
|
# Class for loading and saving cert related objects. By default the provider
|
|
6
|
-
# loads and saves based on
|
|
6
|
+
# loads and saves based on OpenVox's default settings, such as `Puppet[:localcacert]`.
|
|
7
7
|
# The providers sets the permissions on files it saves, such as the private key.
|
|
8
8
|
# All of the `load_*` methods take an optional `required` parameter. If an object
|
|
9
9
|
# doesn't exist, then by default the provider returns `nil`. However, if the
|
data/lib/puppet.rb
CHANGED
|
@@ -23,16 +23,16 @@ require_relative 'puppet/util/run_mode'
|
|
|
23
23
|
require_relative 'puppet/gettext/config'
|
|
24
24
|
require_relative 'puppet/defaults'
|
|
25
25
|
|
|
26
|
-
# Defines the `Puppet` module. There are different entry points into
|
|
26
|
+
# Defines the `Puppet` module. There are different entry points into OpenVox
|
|
27
27
|
# depending on your use case.
|
|
28
28
|
#
|
|
29
|
-
# To use
|
|
29
|
+
# To use OpenVox as a library, see {Puppet::Pal}.
|
|
30
30
|
#
|
|
31
31
|
# To create a new application, see {Puppet::Application}.
|
|
32
32
|
#
|
|
33
33
|
# To create a new function, see {Puppet::Functions}.
|
|
34
34
|
#
|
|
35
|
-
# To access
|
|
35
|
+
# To access OpenVox's REST APIs, see https://docs.openvoxproject.org/openvox/latest/http_api/http_api_index.html.
|
|
36
36
|
#
|
|
37
37
|
# @api public
|
|
38
38
|
module Puppet
|
|
@@ -129,7 +129,7 @@ module Puppet
|
|
|
129
129
|
# deprecation warnings. Warn if we're on a deprecated ruby version.
|
|
130
130
|
# Update JRuby version constraints in PUP-11716
|
|
131
131
|
if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new(Puppet::OLDEST_RECOMMENDED_RUBY_VERSION)
|
|
132
|
-
Puppet.deprecation_warning(_("Support for ruby version %{version} is deprecated and will be removed in a future release. See https://
|
|
132
|
+
Puppet.deprecation_warning(_("Support for ruby version %{version} is deprecated and will be removed in a future release. See https://docs.openvoxproject.org/openvox/latest/system_requirements.html for a list of supported ruby versions.") % { version: RUBY_VERSION })
|
|
133
133
|
end
|
|
134
134
|
|
|
135
135
|
# Initialize puppet's settings. This is intended only for use by external tools that are not
|
|
@@ -139,7 +139,7 @@ module Puppet
|
|
|
139
139
|
#
|
|
140
140
|
# @api public
|
|
141
141
|
# @param args [Array<String>] the command line arguments to use for initialization
|
|
142
|
-
# @param require_config [Boolean] controls loading of
|
|
142
|
+
# @param require_config [Boolean] controls loading of OpenVox configuration files
|
|
143
143
|
# @param global_settings [Boolean] controls push to global context after settings object initialization
|
|
144
144
|
# @param runtime_implementations [Hash<Symbol, Object>] runtime implementations to register
|
|
145
145
|
# @return [void]
|
data/locales/config.yaml
CHANGED
|
@@ -8,13 +8,13 @@ gettext:
|
|
|
8
8
|
# This is used in comments in the .pot and .po files to indicate what
|
|
9
9
|
# project the files belong to and should be a little more descriptive than
|
|
10
10
|
# <project_name>
|
|
11
|
-
package_name:
|
|
11
|
+
package_name: OpenVox automation framework
|
|
12
12
|
# The locale that the default messages in the .pot file are in
|
|
13
13
|
default_locale: en
|
|
14
14
|
# The address for sending bug reports.
|
|
15
|
-
bugs_address: https://
|
|
15
|
+
bugs_address: https://github.com/OpenVoxProject/openvox/issues
|
|
16
16
|
# The holder of the copyright.
|
|
17
|
-
copyright_holder: Puppet, Inc.
|
|
17
|
+
copyright_holder: Vox Pupuli; portions Copyright (C) 2024 Puppet, Inc.
|
|
18
18
|
# Patterns for +Dir.glob+ used to find all files that might contain
|
|
19
19
|
# translatable content, relative to the project root directory
|
|
20
20
|
source_files:
|