puppet-retrospec 1.5.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.gitlab-ci.yml +8 -8
- data/.overcommit.yml +4 -4
- data/.rubocop_todo.yml +4 -4
- data/CHANGELOG.md +14 -0
- data/Gemfile +2 -1
- data/Gemfile.lock +5 -10
- data/README.md +7 -69
- data/lib/retrospec-puppet.rb +3 -1
- data/lib/retrospec/plugins/v1/plugin/generators/serializers/rspec_dumper.rb +86 -36
- data/lib/retrospec/plugins/v1/plugin/generators/task_generator.rb +17 -19
- data/lib/retrospec/plugins/v1/plugin/helpers.rb +6 -0
- data/lib/retrospec/plugins/v1/plugin/puppet.rb +86 -16
- data/lib/retrospec/plugins/v1/plugin/spec_object.rb +34 -16
- data/lib/retrospec/plugins/v1/plugin/template_helpers.rb +12 -6
- data/lib/retrospec/plugins/v1/plugin/version.rb +1 -1
- data/puppet-retrospec.gemspec +1 -1
- data/spec/fixtures/fixture_modules/one_resource_module/manifests/array_param.pp +15 -0
- data/spec/fixtures/parameters.txt +9 -9
- data/spec/integration/retrospec_spec.rb +26 -6
- data/spec/unit/generators/acceptance_generator_spec.rb +3 -2
- data/spec/unit/generators/definition_generator_spec.rb +3 -3
- data/spec/unit/generators/hostclass_generator_spec.rb +9 -1
- data/spec/unit/generators/provider_generator_spec.rb +3 -3
- data/spec/unit/generators/resource_base_generator_spec.rb +1 -0
- data/spec/unit/generators/serializers/rspec_dumper_spec.rb +2 -2
- data/spec/unit/generators/task_generator_spec.rb +46 -0
- data/vendor/pup410/lib/hiera/puppet_function.rb +81 -0
- data/vendor/pup410/lib/hiera/scope.rb +61 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/hiera_puppet.rb +0 -0
- data/vendor/pup410/lib/puppet.rb +353 -0
- data/vendor/pup410/lib/puppet/agent.rb +102 -0
- data/vendor/pup410/lib/puppet/application.rb +478 -0
- data/vendor/pup410/lib/puppet/application_support.rb +57 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/bindings.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/coercion.rb +0 -0
- data/vendor/pup410/lib/puppet/compilable_resource_type.rb +15 -0
- data/vendor/pup410/lib/puppet/configurer.rb +446 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/configurer/downloader.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/configurer/downloader_factory.rb +0 -0
- data/vendor/pup410/lib/puppet/configurer/fact_handler.rb +37 -0
- data/vendor/pup410/lib/puppet/configurer/plugin_handler.rb +25 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/confine.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/confine/any.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/confine/exists.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/confine/false.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/confine/feature.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/confine/true.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/confine/variable.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/confine_collection.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/confiner.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/context.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/context/trusted_information.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/daemon.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/data_binding.rb +0 -0
- data/vendor/pup410/lib/puppet/data_providers.rb +34 -0
- data/vendor/pup410/lib/puppet/data_providers/data_adapter.rb +37 -0
- data/vendor/pup410/lib/puppet/data_providers/data_function_support.rb +32 -0
- data/vendor/pup410/lib/puppet/data_providers/function_env_data_provider.rb +26 -0
- data/vendor/pup410/lib/puppet/data_providers/function_module_data_provider.rb +24 -0
- data/vendor/pup410/lib/puppet/data_providers/hiera_config.rb +151 -0
- data/vendor/pup410/lib/puppet/data_providers/hiera_env_data_provider.rb +25 -0
- data/vendor/pup410/lib/puppet/data_providers/hiera_interpolate.rb +21 -0
- data/vendor/pup410/lib/puppet/data_providers/hiera_module_data_provider.rb +30 -0
- data/vendor/pup410/lib/puppet/data_providers/hiera_support.rb +42 -0
- data/vendor/pup410/lib/puppet/data_providers/json_data_provider_factory.rb +38 -0
- data/vendor/pup410/lib/puppet/data_providers/yaml_data_provider_factory.rb +40 -0
- data/vendor/pup410/lib/puppet/defaults.rb +2011 -0
- data/vendor/pup410/lib/puppet/environments.rb +492 -0
- data/vendor/pup410/lib/puppet/error.rb +100 -0
- data/vendor/pup410/lib/puppet/etc.rb +161 -0
- data/vendor/pup410/lib/puppet/external/dot.rb +326 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/external/nagios.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/external/nagios/base.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/external/nagios/grammar.ry +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/external/nagios/makefile +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/external/nagios/parser.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/external/pson/common.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/external/pson/pure.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/external/pson/pure/generator.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/external/pson/pure/parser.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/external/pson/version.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/face.rb +0 -0
- data/vendor/pup410/lib/puppet/face/ca.rb +259 -0
- data/vendor/pup410/lib/puppet/face/catalog.rb +130 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/face/catalog/select.rb +0 -0
- data/vendor/pup410/lib/puppet/face/certificate.rb +165 -0
- data/vendor/pup410/lib/puppet/face/certificate_request.rb +56 -0
- data/vendor/pup410/lib/puppet/face/certificate_revocation_list.rb +56 -0
- data/vendor/pup410/lib/puppet/face/config.rb +119 -0
- data/vendor/pup410/lib/puppet/face/epp.rb +527 -0
- data/vendor/pup410/lib/puppet/face/facts.rb +38 -0
- data/vendor/pup410/lib/puppet/face/file.rb +50 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/face/file/download.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/face/file/store.rb +0 -0
- data/vendor/pup410/lib/puppet/face/generate.rb +64 -0
- data/vendor/pup410/lib/puppet/face/help.rb +201 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/face/help/action.erb +0 -0
- data/vendor/pup410/lib/puppet/face/help/face.erb +114 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/face/help/global.erb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/face/help/man.erb +0 -0
- data/vendor/pup410/lib/puppet/face/key.rb +16 -0
- data/vendor/pup410/lib/puppet/face/man.rb +101 -0
- data/vendor/pup410/lib/puppet/face/module.rb +19 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/face/module/build.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/face/module/changes.rb +0 -0
- data/vendor/pup410/lib/puppet/face/module/generate.rb +251 -0
- data/vendor/pup410/lib/puppet/face/module/install.rb +145 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/face/module/list.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/face/module/search.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/face/module/uninstall.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/face/module/upgrade.rb +0 -0
- data/vendor/pup410/lib/puppet/face/node.rb +42 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/face/node/clean.rb +0 -0
- data/vendor/pup410/lib/puppet/face/parser.rb +161 -0
- data/vendor/pup410/lib/puppet/face/plugin.rb +58 -0
- data/vendor/pup410/lib/puppet/face/report.rb +54 -0
- data/vendor/pup410/lib/puppet/face/resource.rb +53 -0
- data/vendor/pup410/lib/puppet/face/resource_type.rb +84 -0
- data/vendor/pup410/lib/puppet/face/status.rb +50 -0
- data/vendor/pup410/lib/puppet/feature/base.rb +94 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/feature/cfacter.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/feature/cfpropertylist.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/feature/eventlog.rb +0 -0
- data/vendor/pup410/lib/puppet/feature/external_facts.rb +5 -0
- data/vendor/pup410/lib/puppet/feature/hiera_eyaml.rb +3 -0
- data/vendor/pup410/lib/puppet/feature/hocon.rb +3 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/feature/libuser.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/feature/msgpack.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/feature/pe_license.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/feature/rack.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/feature/selinux.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/feature/ssh.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/feature/telnet.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/feature/zlib.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_bucket.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_bucket/dipper.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_bucket/file.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_serving.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_serving/base.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_serving/configuration.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_serving/configuration/parser.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_serving/content.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_serving/fileset.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_serving/http_metadata.rb +0 -0
- data/vendor/pup410/lib/puppet/file_serving/metadata.rb +163 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_serving/mount.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_serving/mount/file.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_serving/mount/modules.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_serving/mount/pluginfacts.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_serving/mount/plugins.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_serving/terminus_helper.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_serving/terminus_selector.rb +0 -0
- data/vendor/pup410/lib/puppet/file_system.rb +404 -0
- data/vendor/pup410/lib/puppet/file_system/file_impl.rb +154 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_system/memory_file.rb +0 -0
- data/vendor/pup410/lib/puppet/file_system/memory_impl.rb +86 -0
- data/vendor/pup410/lib/puppet/file_system/path_pattern.rb +98 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_system/posix.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/file_system/uniquefile.rb +0 -0
- data/vendor/pup410/lib/puppet/file_system/windows.rb +130 -0
- data/vendor/pup410/lib/puppet/forge.rb +228 -0
- data/vendor/pup410/lib/puppet/forge/cache.rb +60 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/forge/errors.rb +0 -0
- data/vendor/pup410/lib/puppet/forge/repository.rb +155 -0
- data/vendor/pup410/lib/puppet/functions.rb +774 -0
- data/vendor/pup410/lib/puppet/functions/alert.rb +14 -0
- data/vendor/pup410/lib/puppet/functions/assert_type.rb +93 -0
- data/vendor/pup410/lib/puppet/functions/binary_file.rb +19 -0
- data/vendor/pup410/lib/puppet/functions/break.rb +22 -0
- data/vendor/pup410/lib/puppet/functions/contain.rb +33 -0
- data/vendor/pup410/lib/puppet/functions/crit.rb +14 -0
- data/vendor/pup410/lib/puppet/functions/debug.rb +14 -0
- data/vendor/pup410/lib/puppet/functions/defined.rb +160 -0
- data/vendor/pup410/lib/puppet/functions/dig.rb +23 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/functions/each.rb +0 -0
- data/vendor/pup410/lib/puppet/functions/emerg.rb +14 -0
- data/vendor/pup410/lib/puppet/functions/epp.rb +48 -0
- data/vendor/pup410/lib/puppet/functions/err.rb +14 -0
- data/vendor/pup410/lib/puppet/functions/eyaml_lookup_key.rb +94 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/functions/filter.rb +0 -0
- data/vendor/pup410/lib/puppet/functions/find_file.rb +31 -0
- data/vendor/pup410/lib/puppet/functions/hiera.rb +88 -0
- data/vendor/pup410/lib/puppet/functions/hiera_array.rb +81 -0
- data/vendor/pup410/lib/puppet/functions/hiera_hash.rb +92 -0
- data/vendor/pup410/lib/puppet/functions/hiera_include.rb +104 -0
- data/vendor/pup410/lib/puppet/functions/hocon_data.rb +41 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/functions/import.rb +0 -0
- data/vendor/pup410/lib/puppet/functions/include.rb +21 -0
- data/vendor/pup410/lib/puppet/functions/info.rb +14 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/functions/inline_epp.rb +0 -0
- data/vendor/pup410/lib/puppet/functions/json_data.rb +33 -0
- data/vendor/pup410/lib/puppet/functions/lest.rb +17 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/functions/lookup.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/functions/map.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/functions/match.rb +0 -0
- data/vendor/pup410/lib/puppet/functions/new.rb +31 -0
- data/vendor/pup410/lib/puppet/functions/next.rb +23 -0
- data/vendor/pup410/lib/puppet/functions/notice.rb +14 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/functions/reduce.rb +0 -0
- data/vendor/pup410/lib/puppet/functions/regsubst.rb +76 -0
- data/vendor/pup410/lib/puppet/functions/require.rb +37 -0
- data/vendor/pup410/lib/puppet/functions/return.rb +22 -0
- data/vendor/pup410/lib/puppet/functions/reverse_each.rb +25 -0
- data/vendor/pup410/lib/puppet/functions/scanf.rb +44 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/functions/slice.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/functions/split.rb +0 -0
- data/vendor/pup410/lib/puppet/functions/step.rb +26 -0
- data/vendor/pup410/lib/puppet/functions/strftime.rb +35 -0
- data/vendor/pup410/lib/puppet/functions/then.rb +14 -0
- data/vendor/pup410/lib/puppet/functions/type.rb +31 -0
- data/vendor/pup410/lib/puppet/functions/unwrap.rb +40 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/functions/versioncmp.rb +0 -0
- data/vendor/pup410/lib/puppet/functions/warning.rb +14 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/functions/with.rb +0 -0
- data/vendor/pup410/lib/puppet/functions/yaml_data.rb +42 -0
- data/vendor/pup410/lib/puppet/generate/models/type/property.rb +70 -0
- data/vendor/pup410/lib/puppet/generate/models/type/type.rb +62 -0
- data/vendor/pup410/lib/puppet/generate/templates/type/pcore.erb +42 -0
- data/vendor/pup410/lib/puppet/generate/type.rb +239 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/graph.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/graph/key.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/graph/prioritizer.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/graph/random_prioritizer.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/graph/rb_tree_map.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/graph/relationship_graph.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/graph/sequential_prioritizer.rb +0 -0
- data/vendor/pup410/lib/puppet/graph/simple_graph.rb +560 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/graph/title_hash_prioritizer.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector.rb +0 -0
- data/vendor/pup410/lib/puppet/indirector/catalog/compiler.rb +370 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/catalog/json.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/catalog/msgpack.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/catalog/rest.rb +0 -0
- data/vendor/pup410/lib/puppet/indirector/catalog/static_compiler.rb +232 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/catalog/store_configs.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/catalog/yaml.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate/ca.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate/disabled_ca.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate/file.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate/rest.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate_request/ca.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate_request/disabled_ca.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate_request/file.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate_request/memory.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate_request/rest.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate_revocation_list/ca.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate_revocation_list/disabled_ca.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate_revocation_list/file.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate_revocation_list/rest.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate_status.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate_status/file.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/certificate_status/rest.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/code.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/data_binding/hiera.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/data_binding/none.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/direct_file_server.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/envelope.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/errors.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/exec.rb +0 -0
- data/vendor/pup410/lib/puppet/indirector/face.rb +153 -0
- data/vendor/pup410/lib/puppet/indirector/facts/facter.rb +90 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/facts/memory.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/facts/network_device.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/facts/store_configs.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/facts/yaml.rb +0 -0
- data/vendor/pup410/lib/puppet/indirector/file_bucket_file/file.rb +254 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/file_bucket_file/rest.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/file_bucket_file/selector.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/file_content.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/file_content/file.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/file_content/file_server.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/file_content/http.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/file_content/rest.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/file_content/selector.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/file_metadata.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/file_metadata/file.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/file_metadata/file_server.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/file_metadata/http.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/file_metadata/rest.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/file_metadata/selector.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/file_server.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/generic_http.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/hiera.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/indirection.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/json.rb +0 -0
- data/vendor/pup410/lib/puppet/indirector/key/ca.rb +16 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/key/disabled_ca.rb +0 -0
- data/vendor/pup410/lib/puppet/indirector/key/file.rb +50 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/key/memory.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/ldap.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/memory.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/msgpack.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/node/exec.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/node/ldap.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/node/memory.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/node/msgpack.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/node/plain.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/node/rest.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/node/store_configs.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/node/write_only_yaml.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/node/yaml.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/none.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/plain.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/report/msgpack.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/report/processor.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/report/rest.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/report/yaml.rb +0 -0
- data/vendor/pup410/lib/puppet/indirector/request.rb +282 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/resource/ral.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/resource/store_configs.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/resource/validator.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/resource_type.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/resource_type/parser.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/resource_type/rest.rb +0 -0
- data/vendor/pup410/lib/puppet/indirector/rest.rb +330 -0
- data/vendor/pup410/lib/puppet/indirector/ssl_file.rb +201 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/status.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/status/local.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/status/rest.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/store_configs.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/terminus.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/indirector/yaml.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/info_service.rb +0 -0
- data/vendor/pup410/lib/puppet/info_service/class_information_service.rb +111 -0
- data/vendor/pup410/lib/puppet/interface.rb +240 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/interface/action.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/interface/action_builder.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/interface/action_manager.rb +0 -0
- data/vendor/pup410/lib/puppet/interface/documentation.rb +342 -0
- data/vendor/pup410/lib/puppet/interface/face_collection.rb +125 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/interface/option.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/interface/option_builder.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/interface/option_manager.rb +0 -0
- data/vendor/pup410/lib/puppet/loaders.rb +25 -0
- data/vendor/pup410/lib/puppet/metatype/manager.rb +195 -0
- data/vendor/pup410/lib/puppet/module.rb +410 -0
- data/vendor/pup410/lib/puppet/module_tool.rb +192 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/applications.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/applications/application.rb +0 -0
- data/vendor/pup410/lib/puppet/module_tool/applications/builder.rb +149 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/applications/checksummer.rb +0 -0
- data/vendor/pup410/lib/puppet/module_tool/applications/installer.rb +351 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/applications/searcher.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/applications/uninstaller.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/applications/unpacker.rb +0 -0
- data/vendor/pup410/lib/puppet/module_tool/applications/upgrader.rb +277 -0
- data/vendor/pup410/lib/puppet/module_tool/checksums.rb +49 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/contents_description.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/dependency.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/errors.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/errors/base.rb +0 -0
- data/vendor/pup410/lib/puppet/module_tool/errors/installer.rb +95 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/errors/shared.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/errors/uninstaller.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/errors/upgrader.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/install_directory.rb +0 -0
- data/vendor/pup410/lib/puppet/module_tool/installed_modules.rb +96 -0
- data/vendor/pup410/lib/puppet/module_tool/local_tarball.rb +90 -0
- data/vendor/pup410/lib/puppet/module_tool/metadata.rb +221 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/shared_behaviors.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/skeleton/templates/generator/Gemfile +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/skeleton/templates/generator/README.md.erb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/skeleton/templates/generator/Rakefile +0 -0
- data/vendor/pup410/lib/puppet/module_tool/skeleton/templates/generator/examples/init.pp.erb +12 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/skeleton/templates/generator/manifests/init.pp.erb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/skeleton/templates/generator/metadata.json.erb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/skeleton/templates/generator/spec/classes/init_spec.rb.erb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/skeleton/templates/generator/spec/spec_helper.rb +0 -0
- data/vendor/pup410/lib/puppet/module_tool/tar.rb +17 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/tar/gnu.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/module_tool/tar/mini.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/auth_config_parser.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/authconfig.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/authorization.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/authstore.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/client_request.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/format.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/format_handler.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/format_support.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/formats.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/api.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/api/ca.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/api/ca/v1.rb +0 -0
- data/vendor/pup410/lib/puppet/network/http/api/indirected_routes.rb +239 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/api/indirection_type.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/api/master.rb +0 -0
- data/vendor/pup410/lib/puppet/network/http/api/master/v3.rb +28 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/api/master/v3/authorization.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/api/master/v3/environment.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/api/master/v3/environments.rb +0 -0
- data/vendor/pup410/lib/puppet/network/http/compression.rb +117 -0
- data/vendor/pup410/lib/puppet/network/http/connection.rb +235 -0
- data/vendor/pup410/lib/puppet/network/http/error.rb +69 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/factory.rb +0 -0
- data/vendor/pup410/lib/puppet/network/http/handler.rb +179 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/issues.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/memory_response.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/nocache_pool.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/pool.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/rack.rb +0 -0
- data/vendor/pup410/lib/puppet/network/http/rack/rest.rb +162 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/request.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/response.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/route.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/session.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/site.rb +0 -0
- data/vendor/pup410/lib/puppet/network/http/webrick.rb +125 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http/webrick/rest.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/http_pool.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/resolver.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/rest_controller.rb +0 -0
- data/vendor/pup410/lib/puppet/network/rights.rb +209 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/network/server.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/node.rb +0 -0
- data/vendor/pup410/lib/puppet/node/environment.rb +555 -0
- data/vendor/pup410/lib/puppet/node/facts.rb +133 -0
- data/vendor/pup410/lib/puppet/parameter.rb +592 -0
- data/vendor/pup410/lib/puppet/parameter/boolean.rb +15 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parameter/package_options.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parameter/path.rb +0 -0
- data/vendor/pup410/lib/puppet/parameter/value.rb +91 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parameter/value_collection.rb +0 -0
- data/vendor/pup410/lib/puppet/parser.rb +19 -0
- data/vendor/pup410/lib/puppet/parser/ast.rb +65 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/ast/block_expression.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/ast/branch.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/ast/hostclass.rb +0 -0
- data/vendor/pup410/lib/puppet/parser/ast/leaf.rb +75 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/ast/node.rb +0 -0
- data/vendor/pup410/lib/puppet/parser/ast/pops_bridge.rb +317 -0
- data/vendor/pup410/lib/puppet/parser/ast/resource.rb +66 -0
- data/vendor/pup410/lib/puppet/parser/ast/resource_instance.rb +10 -0
- data/vendor/pup410/lib/puppet/parser/ast/resourceparam.rb +31 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/ast/top_level_construct.rb +0 -0
- data/vendor/pup410/lib/puppet/parser/compiler.rb +901 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/compiler/catalog_validator.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/compiler/catalog_validator/env_relationship_validator.rb +0 -0
- data/vendor/pup410/lib/puppet/parser/compiler/catalog_validator/relationship_validator.rb +60 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/compiler/catalog_validator/site_validator.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/e4_parser_adapter.rb +0 -0
- data/vendor/pup410/lib/puppet/parser/environment_compiler.rb +201 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/files.rb +0 -0
- data/vendor/pup410/lib/puppet/parser/functions.rb +278 -0
- data/vendor/pup410/lib/puppet/parser/functions/assert_type.rb +60 -0
- data/vendor/pup410/lib/puppet/parser/functions/binary_file.rb +24 -0
- data/vendor/pup410/lib/puppet/parser/functions/break.rb +39 -0
- data/vendor/pup410/lib/puppet/parser/functions/contain.rb +30 -0
- data/vendor/pup410/lib/puppet/parser/functions/create_resources.rb +106 -0
- data/vendor/pup410/lib/puppet/parser/functions/defined.rb +107 -0
- data/vendor/pup410/lib/puppet/parser/functions/dig.rb +29 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/functions/digest.rb +0 -0
- data/vendor/pup410/lib/puppet/parser/functions/each.rb +104 -0
- data/vendor/pup410/lib/puppet/parser/functions/epp.rb +39 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/functions/fail.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/functions/file.rb +0 -0
- data/vendor/pup410/lib/puppet/parser/functions/filter.rb +78 -0
- data/vendor/pup410/lib/puppet/parser/functions/find_file.rb +28 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/functions/fqdn_rand.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/functions/generate.rb +0 -0
- data/vendor/pup410/lib/puppet/parser/functions/hiera.rb +103 -0
- data/vendor/pup410/lib/puppet/parser/functions/hiera_array.rb +92 -0
- data/vendor/pup410/lib/puppet/parser/functions/hiera_hash.rb +102 -0
- data/vendor/pup410/lib/puppet/parser/functions/hiera_include.rb +102 -0
- data/vendor/pup410/lib/puppet/parser/functions/include.rb +33 -0
- data/vendor/pup410/lib/puppet/parser/functions/inline_epp.rb +51 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/functions/inline_template.rb +0 -0
- data/vendor/pup410/lib/puppet/parser/functions/lest.rb +49 -0
- data/vendor/pup410/lib/puppet/parser/functions/lookup.rb +132 -0
- data/vendor/pup410/lib/puppet/parser/functions/map.rb +76 -0
- data/vendor/pup410/lib/puppet/parser/functions/match.rb +43 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/functions/md5.rb +0 -0
- data/vendor/pup410/lib/puppet/parser/functions/new.rb +939 -0
- data/vendor/pup410/lib/puppet/parser/functions/next.rb +38 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/functions/realize.rb +0 -0
- data/vendor/pup410/lib/puppet/parser/functions/reduce.rb +106 -0
- data/vendor/pup410/lib/puppet/parser/functions/regsubst.rb +62 -0
- data/vendor/pup410/lib/puppet/parser/functions/require.rb +40 -0
- data/vendor/pup410/lib/puppet/parser/functions/return.rb +71 -0
- data/vendor/pup410/lib/puppet/parser/functions/reverse_each.rb +83 -0
- data/vendor/pup410/lib/puppet/parser/functions/scanf.rb +38 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/functions/sha1.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/functions/shellquote.rb +0 -0
- data/vendor/pup410/lib/puppet/parser/functions/slice.rb +39 -0
- data/vendor/pup410/lib/puppet/parser/functions/split.rb +28 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/functions/sprintf.rb +0 -0
- data/vendor/pup410/lib/puppet/parser/functions/step.rb +84 -0
- data/vendor/pup410/lib/puppet/parser/functions/strftime.rb +185 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/functions/tag.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/functions/tagged.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/functions/template.rb +0 -0
- data/vendor/pup410/lib/puppet/parser/functions/then.rb +73 -0
- data/vendor/pup410/lib/puppet/parser/functions/type.rb +53 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/functions/versioncmp.rb +0 -0
- data/vendor/pup410/lib/puppet/parser/functions/with.rb +28 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/parser_factory.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/relationship.rb +0 -0
- data/vendor/pup410/lib/puppet/parser/resource.rb +388 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/resource/param.rb +0 -0
- data/vendor/pup410/lib/puppet/parser/scope.rb +1138 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/templatewrapper.rb +0 -0
- data/vendor/pup410/lib/puppet/parser/type_loader.rb +149 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/parser/yaml_trimmer.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/plugins.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/plugins/binding_schemes.rb +0 -0
- data/vendor/pup410/lib/puppet/plugins/configuration.rb +77 -0
- data/vendor/pup410/lib/puppet/plugins/data_providers.rb +45 -0
- data/vendor/pup410/lib/puppet/plugins/data_providers/data_provider.rb +406 -0
- data/vendor/pup410/lib/puppet/plugins/data_providers/registry.rb +51 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/plugins/syntax_checkers.rb +0 -0
- data/vendor/pup410/lib/puppet/pops.rb +150 -0
- data/vendor/pup410/lib/puppet/pops/adaptable.rb +201 -0
- data/vendor/pup410/lib/puppet/pops/adapters.rb +198 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/binder.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/binder_issues.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/bindings_checker.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/bindings_composer.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/bindings_factory.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/bindings_label_provider.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/bindings_loader.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/bindings_model.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/bindings_model_dumper.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/bindings_model_meta.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/bindings_validator_factory.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/config/binder_config.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/config/binder_config_checker.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/config/diagnostic_producer.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/config/issues.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/injector.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/injector_entry.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/key_factory.rb +0 -0
- data/vendor/pup410/lib/puppet/pops/binder/producers.rb +831 -0
- data/vendor/pup410/lib/puppet/pops/binder/scheme_handler/confdir_scheme.rb +34 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/scheme_handler/module_scheme.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/scheme_handler/symbolic_scheme.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/binder/system_bindings.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/containment.rb +0 -0
- data/vendor/pup410/lib/puppet/pops/evaluator/access_operator.rb +707 -0
- data/vendor/pup410/lib/puppet/pops/evaluator/callable_signature.rb +107 -0
- data/vendor/pup410/lib/puppet/pops/evaluator/closure.rb +365 -0
- data/vendor/pup410/lib/puppet/pops/evaluator/collector_transformer.rb +238 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/evaluator/collectors/abstract_collector.rb +0 -0
- data/vendor/pup410/lib/puppet/pops/evaluator/collectors/catalog_collector.rb +29 -0
- data/vendor/pup410/lib/puppet/pops/evaluator/collectors/exported_collector.rb +69 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/evaluator/collectors/fixed_set_collector.rb +0 -0
- data/vendor/pup410/lib/puppet/pops/evaluator/compare_operator.rb +252 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/evaluator/epp_evaluator.rb +0 -0
- data/vendor/pup410/lib/puppet/pops/evaluator/evaluator_impl.rb +1247 -0
- data/vendor/pup410/lib/puppet/pops/evaluator/external_syntax_support.rb +52 -0
- data/vendor/pup410/lib/puppet/pops/evaluator/json_strict_literal_evaluator.rb +84 -0
- data/vendor/pup410/lib/puppet/pops/evaluator/literal_evaluator.rb +87 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/evaluator/puppet_proc.rb +0 -0
- data/vendor/pup410/lib/puppet/pops/evaluator/relationship_operator.rb +168 -0
- data/vendor/pup410/lib/puppet/pops/evaluator/runtime3_converter.rb +184 -0
- data/vendor/pup410/lib/puppet/pops/evaluator/runtime3_resource_support.rb +117 -0
- data/vendor/pup410/lib/puppet/pops/evaluator/runtime3_support.rb +554 -0
- data/vendor/pup410/lib/puppet/pops/functions/dispatch.rb +105 -0
- data/vendor/pup410/lib/puppet/pops/functions/dispatcher.rb +71 -0
- data/vendor/pup410/lib/puppet/pops/functions/function.rb +135 -0
- data/vendor/pup410/lib/puppet/pops/issue_reporter.rb +115 -0
- data/vendor/pup410/lib/puppet/pops/issues.rb +834 -0
- data/vendor/pup410/lib/puppet/pops/label_provider.rb +90 -0
- data/vendor/pup410/lib/puppet/pops/loader/base_loader.rb +156 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/loader/dependency_loader.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/loader/gem_support.rb +0 -0
- data/vendor/pup410/lib/puppet/pops/loader/loader.rb +190 -0
- data/vendor/pup410/lib/puppet/pops/loader/loader_paths.rb +225 -0
- data/vendor/pup410/lib/puppet/pops/loader/module_loaders.rb +300 -0
- data/vendor/pup410/lib/puppet/pops/loader/null_loader.rb +60 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/loader/predefined_loader.rb +0 -0
- data/vendor/pup410/lib/puppet/pops/loader/puppet_function_instantiator.rb +84 -0
- data/vendor/pup410/lib/puppet/pops/loader/puppet_resource_type_impl_instantiator.rb +80 -0
- data/vendor/pup410/lib/puppet/pops/loader/ruby_function_instantiator.rb +46 -0
- data/vendor/pup410/lib/puppet/pops/loader/runtime3_type_loader.rb +96 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/loader/simple_environment_loader.rb +0 -0
- data/vendor/pup410/lib/puppet/pops/loader/static_loader.rb +180 -0
- data/vendor/pup410/lib/puppet/pops/loader/type_definition_instantiator.rb +93 -0
- data/vendor/pup410/lib/puppet/pops/loader/typed_name.rb +49 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/loader/uri_helper.rb +0 -0
- data/vendor/pup410/lib/puppet/pops/loaders.rb +410 -0
- data/vendor/pup410/lib/puppet/pops/lookup.rb +94 -0
- data/vendor/pup410/lib/puppet/pops/lookup/configured_data_provider.rb +93 -0
- data/vendor/pup410/lib/puppet/pops/lookup/context.rb +200 -0
- data/vendor/pup410/lib/puppet/pops/lookup/data_adapter.rb +27 -0
- data/vendor/pup410/lib/puppet/pops/lookup/data_dig_function_provider.rb +145 -0
- data/vendor/pup410/lib/puppet/pops/lookup/data_hash_function_provider.rb +126 -0
- data/vendor/pup410/lib/puppet/pops/lookup/data_provider.rb +107 -0
- data/vendor/pup410/lib/puppet/pops/lookup/environment_data_provider.rb +35 -0
- data/vendor/pup410/lib/puppet/pops/lookup/explainer.rb +594 -0
- data/vendor/pup410/lib/puppet/pops/lookup/function_provider.rb +110 -0
- data/vendor/pup410/lib/puppet/pops/lookup/global_data_provider.rb +75 -0
- data/vendor/pup410/lib/puppet/pops/lookup/hiera_config.rb +784 -0
- data/vendor/pup410/lib/puppet/pops/lookup/interpolation.rb +153 -0
- data/vendor/pup410/lib/puppet/pops/lookup/invocation.rb +261 -0
- data/vendor/pup410/lib/puppet/pops/lookup/location_resolver.rb +99 -0
- data/vendor/pup410/lib/puppet/pops/lookup/lookup_adapter.rb +515 -0
- data/vendor/pup410/lib/puppet/pops/lookup/lookup_key.rb +99 -0
- data/vendor/pup410/lib/puppet/pops/lookup/lookup_key_function_provider.rb +92 -0
- data/vendor/pup410/lib/puppet/pops/lookup/module_data_provider.rb +89 -0
- data/vendor/pup410/lib/puppet/pops/lookup/sub_lookup.rb +91 -0
- data/vendor/pup410/lib/puppet/pops/merge_strategy.rb +419 -0
- data/vendor/pup410/lib/puppet/pops/migration/migration_checker.rb +58 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/model/ast_transformer.rb +0 -0
- data/vendor/pup410/lib/puppet/pops/model/factory.rb +1151 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/model/model.rb +0 -0
- data/vendor/pup410/lib/puppet/pops/model/model_label_provider.rb +130 -0
- data/vendor/pup410/lib/puppet/pops/model/model_meta.rb +629 -0
- data/vendor/pup410/lib/puppet/pops/model/model_tree_dumper.rb +451 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/model/tree_dumper.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/parser/code_merger.rb +0 -0
- data/vendor/pup410/lib/puppet/pops/parser/egrammar.ra +876 -0
- data/vendor/pup410/lib/puppet/pops/parser/eparser.rb +3243 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/parser/epp_parser.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/parser/epp_support.rb +0 -0
- data/vendor/pup410/lib/puppet/pops/parser/evaluating_parser.rb +165 -0
- data/vendor/pup410/lib/puppet/pops/parser/heredoc_support.rb +143 -0
- data/vendor/pup410/lib/puppet/pops/parser/interpolation_support.rb +244 -0
- data/vendor/pup410/lib/puppet/pops/parser/lexer2.rb +798 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/parser/lexer_support.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/parser/locatable.rb +0 -0
- data/vendor/pup410/lib/puppet/pops/parser/locator.rb +321 -0
- data/vendor/pup410/lib/puppet/pops/parser/parser_support.rb +251 -0
- data/vendor/pup410/lib/puppet/pops/parser/slurp_support.rb +120 -0
- data/vendor/pup410/lib/puppet/pops/patterns.rb +60 -0
- data/vendor/pup410/lib/puppet/pops/pcore.rb +96 -0
- data/vendor/pup410/lib/puppet/pops/puppet_stack.rb +43 -0
- data/vendor/pup410/lib/puppet/pops/resource/param.rb +55 -0
- data/vendor/pup410/lib/puppet/pops/resource/resource_type_impl.rb +314 -0
- data/vendor/pup410/lib/puppet/pops/resource/resource_type_set.pcore +22 -0
- data/vendor/pup410/lib/puppet/pops/semantic_error.rb +29 -0
- data/vendor/pup410/lib/puppet/pops/serialization.rb +17 -0
- data/vendor/pup410/lib/puppet/pops/serialization/abstract_reader.rb +176 -0
- data/vendor/pup410/lib/puppet/pops/serialization/abstract_writer.rb +207 -0
- data/vendor/pup410/lib/puppet/pops/serialization/deserializer.rb +80 -0
- data/vendor/pup410/lib/puppet/pops/serialization/extension.rb +157 -0
- data/vendor/pup410/lib/puppet/pops/serialization/instance_reader.rb +19 -0
- data/vendor/pup410/lib/puppet/pops/serialization/instance_writer.rb +14 -0
- data/vendor/pup410/lib/puppet/pops/serialization/json.rb +297 -0
- data/vendor/pup410/lib/puppet/pops/serialization/object.rb +71 -0
- data/vendor/pup410/lib/puppet/pops/serialization/rgen.rb +152 -0
- data/vendor/pup410/lib/puppet/pops/serialization/serializer.rb +125 -0
- data/vendor/pup410/lib/puppet/pops/serialization/time_factory.rb +67 -0
- data/vendor/pup410/lib/puppet/pops/time/timespan.rb +718 -0
- data/vendor/pup410/lib/puppet/pops/time/timestamp.rb +148 -0
- data/vendor/pup410/lib/puppet/pops/types/annotatable.rb +36 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/types/class_loader.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/types/enumeration.rb +0 -0
- data/vendor/pup410/lib/puppet/pops/types/implementation_registry.rb +141 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/types/iterable.rb +0 -0
- data/vendor/pup410/lib/puppet/pops/types/p_binary_type.rb +220 -0
- data/vendor/pup410/lib/puppet/pops/types/p_meta_type.rb +83 -0
- data/vendor/pup410/lib/puppet/pops/types/p_object_type.rb +886 -0
- data/vendor/pup410/lib/puppet/pops/types/p_runtime_type.rb +115 -0
- data/vendor/pup410/lib/puppet/pops/types/p_sem_ver_range_type.rb +187 -0
- data/vendor/pup410/lib/puppet/pops/types/p_sem_ver_type.rb +141 -0
- data/vendor/pup410/lib/puppet/pops/types/p_sensitive_type.rb +73 -0
- data/vendor/pup410/lib/puppet/pops/types/p_timespan_type.rb +141 -0
- data/vendor/pup410/lib/puppet/pops/types/p_timestamp_type.rb +69 -0
- data/vendor/pup410/lib/puppet/pops/types/p_type_set_type.rb +352 -0
- data/vendor/pup410/lib/puppet/pops/types/puppet_object.rb +16 -0
- data/vendor/pup410/lib/puppet/pops/types/recursion_guard.rb +136 -0
- data/vendor/pup410/lib/puppet/pops/types/ruby_generator.rb +275 -0
- data/vendor/pup410/lib/puppet/pops/types/string_converter.rb +1022 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/types/type_acceptor.rb +0 -0
- data/vendor/pup410/lib/puppet/pops/types/type_asserter.rb +47 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/types/type_assertion_error.rb +0 -0
- data/vendor/pup410/lib/puppet/pops/types/type_calculator.rb +836 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/types/type_conversion_error.rb +0 -0
- data/vendor/pup410/lib/puppet/pops/types/type_factory.rb +538 -0
- data/vendor/pup410/lib/puppet/pops/types/type_formatter.rb +686 -0
- data/vendor/pup410/lib/puppet/pops/types/type_mismatch_describer.rb +1105 -0
- data/vendor/pup410/lib/puppet/pops/types/type_parser.rb +564 -0
- data/vendor/pup410/lib/puppet/pops/types/type_set_reference.rb +59 -0
- data/vendor/pup410/lib/puppet/pops/types/types.rb +3464 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/utils.rb +0 -0
- data/vendor/pup410/lib/puppet/pops/validation.rb +470 -0
- data/vendor/pup410/lib/puppet/pops/validation/checker4_0.rb +980 -0
- data/vendor/pup410/lib/puppet/pops/validation/validator_factory_4_0.rb +39 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/pops/visitable.rb +0 -0
- data/vendor/pup410/lib/puppet/pops/visitor.rb +95 -0
- data/vendor/pup410/lib/puppet/property.rb +597 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/property/boolean.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/property/ensure.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/property/keyvalue.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/property/list.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/property/ordered_list.rb +0 -0
- data/vendor/pup410/lib/puppet/provider.rb +601 -0
- data/vendor/pup410/lib/puppet/provider/aixobject.rb +392 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/augeas/augeas.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/cisco.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/command.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/computer/computer.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/confine.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/cron/crontab.rb +0 -0
- data/vendor/pup410/lib/puppet/provider/exec.rb +98 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/exec/posix.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/exec/shell.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/exec/windows.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/file/posix.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/file/windows.rb +0 -0
- data/vendor/pup410/lib/puppet/provider/group/aix.rb +141 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/group/directoryservice.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/group/groupadd.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/group/ldap.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/group/pw.rb +0 -0
- data/vendor/pup410/lib/puppet/provider/group/windows_adsi.rb +109 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/host/parsed.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/interface/cisco.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/ldap.rb +0 -0
- data/vendor/pup410/lib/puppet/provider/macauthorization/macauthorization.rb +298 -0
- data/vendor/pup410/lib/puppet/provider/mailalias/aliases.rb +50 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/maillist/mailman.rb +0 -0
- data/vendor/pup410/lib/puppet/provider/mcx/mcxcontent.rb +173 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/mount.rb +0 -0
- data/vendor/pup410/lib/puppet/provider/mount/parsed.rb +280 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/naginator.rb +0 -0
- data/vendor/pup410/lib/puppet/provider/nameservice.rb +317 -0
- data/vendor/pup410/lib/puppet/provider/nameservice/directoryservice.rb +507 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/nameservice/objectadd.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/nameservice/pw.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/network_device.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package.rb +0 -0
- data/vendor/pup410/lib/puppet/provider/package/aix.rb +152 -0
- data/vendor/pup410/lib/puppet/provider/package/appdmg.rb +110 -0
- data/vendor/pup410/lib/puppet/provider/package/apple.rb +47 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/apt.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/aptitude.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/aptrpm.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/blastwave.rb +0 -0
- data/vendor/pup410/lib/puppet/provider/package/dnf.rb +46 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/dpkg.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/fink.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/freebsd.rb +0 -0
- data/vendor/pup410/lib/puppet/provider/package/gem.rb +174 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/hpux.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/macports.rb +0 -0
- data/vendor/pup410/lib/puppet/provider/package/nim.rb +280 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/openbsd.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/opkg.rb +0 -0
- data/vendor/pup410/lib/puppet/provider/package/pacman.rb +267 -0
- data/vendor/pup410/lib/puppet/provider/package/pip.rb +179 -0
- data/vendor/pup410/lib/puppet/provider/package/pip3.rb +20 -0
- data/vendor/pup410/lib/puppet/provider/package/pkg.rb +249 -0
- data/vendor/pup410/lib/puppet/provider/package/pkgdmg.rb +152 -0
- data/vendor/pup410/lib/puppet/provider/package/pkgin.rb +87 -0
- data/vendor/pup410/lib/puppet/provider/package/pkgng.rb +143 -0
- data/vendor/pup410/lib/puppet/provider/package/pkgutil.rb +186 -0
- data/vendor/pup410/lib/puppet/provider/package/portage.rb +193 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/ports.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/portupgrade.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/puppet_gem.rb +0 -0
- data/vendor/pup410/lib/puppet/provider/package/rpm.rb +402 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/rug.rb +0 -0
- data/vendor/pup410/lib/puppet/provider/package/sun.rb +132 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/sunfreeware.rb +0 -0
- data/vendor/pup410/lib/puppet/provider/package/tdnf.rb +28 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/up2date.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/urpmi.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/windows.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/windows/exe_package.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/windows/msi_package.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/windows/package.rb +0 -0
- data/vendor/pup410/lib/puppet/provider/package/yum.rb +270 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/package/zypper.rb +0 -0
- data/vendor/pup410/lib/puppet/provider/parsedfile.rb +459 -0
- data/vendor/pup410/lib/puppet/provider/scheduled_task/win32_taskscheduler.rb +590 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/selboolean/getsetsebool.rb +0 -0
- data/vendor/pup410/lib/puppet/provider/selmodule/semodule.rb +138 -0
- data/vendor/pup410/lib/puppet/provider/service/base.rb +121 -0
- data/vendor/pup410/lib/puppet/provider/service/bsd.rb +51 -0
- data/vendor/pup410/lib/puppet/provider/service/daemontools.rb +194 -0
- data/vendor/pup410/lib/puppet/provider/service/debian.rb +74 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/service/freebsd.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/service/gentoo.rb +0 -0
- data/vendor/pup410/lib/puppet/provider/service/init.rb +193 -0
- data/vendor/pup410/lib/puppet/provider/service/launchd.rb +346 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/service/openbsd.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/service/openrc.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/service/openwrt.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/service/rcng.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/service/redhat.rb +0 -0
- data/vendor/pup410/lib/puppet/provider/service/runit.rb +111 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/service/service.rb +0 -0
- data/vendor/pup410/lib/puppet/provider/service/smf.rb +167 -0
- data/vendor/pup410/lib/puppet/provider/service/src.rb +147 -0
- data/vendor/pup410/lib/puppet/provider/service/systemd.rb +186 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/service/upstart.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/service/windows.rb +0 -0
- data/vendor/pup410/lib/puppet/provider/ssh_authorized_key/parsed.rb +105 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/sshkey/parsed.rb +0 -0
- data/vendor/pup410/lib/puppet/provider/user/aix.rb +375 -0
- data/vendor/pup410/lib/puppet/provider/user/directoryservice.rb +632 -0
- data/vendor/pup410/lib/puppet/provider/user/hpux.rb +95 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/user/ldap.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/user/openbsd.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/user/pw.rb +0 -0
- data/vendor/pup410/lib/puppet/provider/user/user_role_add.rb +227 -0
- data/vendor/pup410/lib/puppet/provider/user/useradd.rb +231 -0
- data/vendor/pup410/lib/puppet/provider/user/windows_adsi.rb +148 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/provider/vlan/cisco.rb +0 -0
- data/vendor/pup410/lib/puppet/provider/yumrepo/inifile.rb +304 -0
- data/vendor/pup410/lib/puppet/provider/zfs/zfs.rb +84 -0
- data/vendor/pup410/lib/puppet/provider/zone/solaris.rb +364 -0
- data/vendor/pup410/lib/puppet/provider/zpool/zpool.rb +125 -0
- data/vendor/pup410/lib/puppet/reference/configuration.rb +82 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/reference/function.rb +0 -0
- data/vendor/pup410/lib/puppet/reference/indirection.rb +71 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/reference/metaparameter.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/reference/providers.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/reference/report.rb +0 -0
- data/vendor/pup410/lib/puppet/reference/type.rb +114 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/relationship.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/reports.rb +0 -0
- data/vendor/pup410/lib/puppet/reports/http.rb +33 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/reports/log.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/reports/store.rb +0 -0
- data/vendor/pup410/lib/puppet/resource.rb +728 -0
- data/vendor/pup410/lib/puppet/resource/capability_finder.rb +128 -0
- data/vendor/pup410/lib/puppet/resource/catalog.rb +675 -0
- data/vendor/pup410/lib/puppet/resource/status.rb +232 -0
- data/vendor/pup410/lib/puppet/resource/type.rb +572 -0
- data/vendor/pup410/lib/puppet/resource/type_collection.rb +257 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/scheduler.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/scheduler/job.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/scheduler/scheduler.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/scheduler/splay_job.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/scheduler/timer.rb +0 -0
- data/vendor/pup410/lib/puppet/settings.rb +1455 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/settings/array_setting.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/settings/autosign_setting.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/settings/base_setting.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/settings/boolean_setting.rb +0 -0
- data/vendor/pup410/lib/puppet/settings/config_file.rb +143 -0
- data/vendor/pup410/lib/puppet/settings/directory_setting.rb +18 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/settings/duration_setting.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/settings/enum_setting.rb +0 -0
- data/vendor/pup410/lib/puppet/settings/environment_conf.rb +204 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/settings/errors.rb +0 -0
- data/vendor/pup410/lib/puppet/settings/file_or_directory_setting.rb +40 -0
- data/vendor/pup410/lib/puppet/settings/file_setting.rb +245 -0
- data/vendor/pup410/lib/puppet/settings/ini_file.rb +171 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/settings/path_setting.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/settings/priority_setting.rb +0 -0
- data/vendor/pup410/lib/puppet/settings/server_list_setting.rb +20 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/settings/string_setting.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/settings/symbolic_enum_setting.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/settings/terminus_setting.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/settings/ttl_setting.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/settings/value_translator.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/ssl.rb +0 -0
- data/vendor/pup410/lib/puppet/ssl/base.rb +153 -0
- data/vendor/pup410/lib/puppet/ssl/certificate.rb +95 -0
- data/vendor/pup410/lib/puppet/ssl/certificate_authority.rb +553 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/ssl/certificate_authority/autosign_command.rb +0 -0
- data/vendor/pup410/lib/puppet/ssl/certificate_authority/interface.rb +324 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/ssl/certificate_factory.rb +0 -0
- data/vendor/pup410/lib/puppet/ssl/certificate_request.rb +327 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/ssl/certificate_request_attributes.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/ssl/certificate_revocation_list.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/ssl/certificate_signer.rb +0 -0
- data/vendor/pup410/lib/puppet/ssl/configuration.rb +61 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/ssl/digest.rb +0 -0
- data/vendor/pup410/lib/puppet/ssl/host.rb +387 -0
- data/vendor/pup410/lib/puppet/ssl/inventory.rb +55 -0
- data/vendor/pup410/lib/puppet/ssl/key.rb +63 -0
- data/vendor/pup410/lib/puppet/ssl/oids.rb +187 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/ssl/validator.rb +0 -0
- data/vendor/pup410/lib/puppet/ssl/validator/default_validator.rb +174 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/ssl/validator/no_validator.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/status.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/syntax_checkers.rb +0 -0
- data/vendor/pup410/lib/puppet/syntax_checkers/base64.rb +41 -0
- data/vendor/pup410/lib/puppet/syntax_checkers/json.rb +35 -0
- data/vendor/pup410/lib/puppet/test/test_helper.rb +256 -0
- data/vendor/pup410/lib/puppet/transaction.rb +399 -0
- data/vendor/pup410/lib/puppet/transaction/additional_resource_generator.rb +219 -0
- data/vendor/pup410/lib/puppet/transaction/event.rb +133 -0
- data/vendor/pup410/lib/puppet/transaction/event_manager.rb +167 -0
- data/vendor/pup410/lib/puppet/transaction/persistence.rb +84 -0
- data/vendor/pup410/lib/puppet/transaction/report.rb +460 -0
- data/vendor/pup410/lib/puppet/transaction/resource_harness.rb +316 -0
- data/vendor/pup410/lib/puppet/type.rb +2670 -0
- data/vendor/pup410/lib/puppet/type/augeas.rb +211 -0
- data/vendor/pup410/lib/puppet/type/component.rb +88 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/computer.rb +0 -0
- data/vendor/pup410/lib/puppet/type/cron.rb +492 -0
- data/vendor/pup410/lib/puppet/type/exec.rb +622 -0
- data/vendor/pup410/lib/puppet/type/file.rb +1032 -0
- data/vendor/pup410/lib/puppet/type/file/checksum.rb +44 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/file/checksum_value.rb +0 -0
- data/vendor/pup410/lib/puppet/type/file/content.rb +160 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/file/ctime.rb +0 -0
- data/vendor/pup410/lib/puppet/type/file/data_sync.rb +92 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/file/ensure.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/file/group.rb +0 -0
- data/vendor/pup410/lib/puppet/type/file/mode.rb +177 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/file/mtime.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/file/owner.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/file/selcontext.rb +0 -0
- data/vendor/pup410/lib/puppet/type/file/source.rb +352 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/file/target.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/file/type.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/filebucket.rb +0 -0
- data/vendor/pup410/lib/puppet/type/group.rb +206 -0
- data/vendor/pup410/lib/puppet/type/host.rb +95 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/interface.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/k5login.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/macauthorization.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/mailalias.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/maillist.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/mcx.rb +0 -0
- data/vendor/pup410/lib/puppet/type/mount.rb +310 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/nagios_command.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/nagios_contact.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/nagios_contactgroup.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/nagios_host.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/nagios_hostdependency.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/nagios_hostescalation.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/nagios_hostextinfo.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/nagios_hostgroup.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/nagios_service.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/nagios_servicedependency.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/nagios_serviceescalation.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/nagios_serviceextinfo.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/nagios_servicegroup.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/nagios_timeperiod.rb +0 -0
- data/vendor/pup410/lib/puppet/type/notify.rb +44 -0
- data/vendor/pup410/lib/puppet/type/package.rb +571 -0
- data/vendor/pup410/lib/puppet/type/resources.rb +180 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/router.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/schedule.rb +0 -0
- data/vendor/pup410/lib/puppet/type/scheduled_task.rb +184 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/selboolean.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/selmodule.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/service.rb +0 -0
- data/vendor/pup410/lib/puppet/type/ssh_authorized_key.rb +159 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/sshkey.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/stage.rb +0 -0
- data/vendor/pup410/lib/puppet/type/tidy.rb +332 -0
- data/vendor/pup410/lib/puppet/type/user.rb +768 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/vlan.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/whit.rb +0 -0
- data/vendor/pup410/lib/puppet/type/yumrepo.rb +409 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/zfs.rb +0 -0
- data/vendor/pup410/lib/puppet/type/zone.rb +382 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/type/zpool.rb +0 -0
- data/vendor/pup410/lib/puppet/util.rb +701 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/autoload.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/backups.rb +0 -0
- data/vendor/pup410/lib/puppet/util/character_encoding.rb +98 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/checksums.rb +0 -0
- data/vendor/pup410/lib/puppet/util/classgen.rb +228 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/colors.rb +0 -0
- data/vendor/pup410/lib/puppet/util/command_line.rb +185 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/command_line/puppet_option_parser.rb +0 -0
- data/vendor/pup410/lib/puppet/util/command_line/trollop.rb +824 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/constant_inflector.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/diff.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/docs.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/errors.rb +0 -0
- data/vendor/pup410/lib/puppet/util/execution.rb +359 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/execution_stub.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/feature.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/file_watcher.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/fileparsing.rb +0 -0
- data/vendor/pup410/lib/puppet/util/filetype.rb +309 -0
- data/vendor/pup410/lib/puppet/util/http_proxy.rb +197 -0
- data/vendor/pup410/lib/puppet/util/inifile.rb +341 -0
- data/vendor/pup410/lib/puppet/util/instance_loader.rb +81 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/json_lockfile.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/ldap.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/ldap/connection.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/ldap/generator.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/ldap/manager.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/libuser.conf +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/libuser.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/limits.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/lockfile.rb +0 -0
- data/vendor/pup410/lib/puppet/util/log.rb +411 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/log/destination.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/log/destinations.rb +0 -0
- data/vendor/pup410/lib/puppet/util/logging.rb +311 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/metaid.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/methodhelper.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/metric.rb +0 -0
- data/vendor/pup410/lib/puppet/util/monkey_patches.rb +147 -0
- data/vendor/pup410/lib/puppet/util/multi_match.rb +51 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/nagios_maker.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/network_device.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/network_device/base.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/network_device/cisco.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/network_device/cisco/device.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/network_device/cisco/facts.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/network_device/cisco/interface.rb +0 -0
- data/vendor/pup410/lib/puppet/util/network_device/config.rb +98 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/network_device/ipcalc.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/network_device/transport.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/network_device/transport/base.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/network_device/transport/ssh.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/network_device/transport/telnet.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/package.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/pidlock.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/platform.rb +0 -0
- data/vendor/pup410/lib/puppet/util/plist.rb +151 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/posix.rb +0 -0
- data/vendor/pup410/lib/puppet/util/profiler.rb +53 -0
- data/vendor/pup410/lib/puppet/util/profiler/aggregate.rb +85 -0
- data/vendor/pup410/lib/puppet/util/profiler/around_profiler.rb +67 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/profiler/logging.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/profiler/object_counts.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/profiler/wall_clock.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/provider_features.rb +0 -0
- data/vendor/pup410/lib/puppet/util/psych_support.rb +38 -0
- data/vendor/pup410/lib/puppet/util/rdoc.rb +60 -0
- data/vendor/pup410/lib/puppet/util/reference.rb +126 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/resource_template.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/retry_action.rb +0 -0
- data/vendor/pup410/lib/puppet/util/rubygems.rb +75 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/run_mode.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/selinux.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/skip_tags.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/splayer.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/ssl.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/storage.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/suidmanager.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/symbolic_file_mode.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/tag_set.rb +0 -0
- data/vendor/pup410/lib/puppet/util/tagging.rb +118 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/terminal.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/user_attr.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/warnings.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/watched_file.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/watcher.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/watcher/change_watcher.rb +0 -0
- data/vendor/pup410/lib/puppet/util/watcher/periodic_watcher.rb +37 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/watcher/timer.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/windows.rb +0 -0
- data/vendor/pup410/lib/puppet/util/windows/access_control_entry.rb +84 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/windows/access_control_list.rb +0 -0
- data/vendor/pup410/lib/puppet/util/windows/adsi.rb +548 -0
- data/vendor/pup410/lib/puppet/util/windows/api_types.rb +282 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/windows/com.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/windows/error.rb +0 -0
- data/vendor/pup410/lib/puppet/util/windows/file.rb +488 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/windows/principal.rb +0 -0
- data/vendor/pup410/lib/puppet/util/windows/process.rb +497 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/windows/registry.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/windows/root_certs.rb +0 -0
- data/vendor/pup410/lib/puppet/util/windows/security.rb +857 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/windows/security_descriptor.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/windows/sid.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/util/windows/string.rb +0 -0
- data/vendor/pup410/lib/puppet/util/windows/taskscheduler.rb +1276 -0
- data/vendor/pup410/lib/puppet/util/windows/user.rb +309 -0
- data/vendor/pup410/lib/puppet/util/yaml.rb +36 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/deep_merge/CHANGELOG +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/deep_merge/Gemfile +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/deep_merge/LICENSE +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/deep_merge/PUPPET_README.md +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/deep_merge/README.md +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/deep_merge/Rakefile +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/deep_merge/deep_merge.gemspec +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/deep_merge/lib/deep_merge.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/deep_merge/lib/deep_merge/core.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/deep_merge/lib/deep_merge/deep_merge_hash.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/deep_merge/lib/deep_merge/rails_compat.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/load_deep_merge.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/load_pathspec.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/load_rgen.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/load_semantic.rb +0 -0
- data/vendor/pup410/lib/puppet/vendor/load_semantic_puppet.rb +1 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/pathspec/CHANGELOG.md +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/pathspec/LICENSE +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/pathspec/PUPPET_README.md +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/pathspec/README.md +0 -0
- data/vendor/pup410/lib/puppet/vendor/pathspec/lib/pathspec.rb +122 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/pathspec/lib/pathspec/gitignorespec.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/pathspec/lib/pathspec/regexspec.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/pathspec/lib/pathspec/spec.rb +0 -0
- data/vendor/pup410/lib/puppet/vendor/require_vendored.rb +6 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/CHANGELOG +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/MIT-LICENSE +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/PUPPET_README.md +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/README.rdoc +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/Rakefile +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/TODO +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/anounce.txt +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/design_rationale.txt +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/ea_support/ea_support.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/ea_support/id_store.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_generator.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_to_uml13.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/ea_support/uml13_to_uml13_ea.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/metamodels/uml13_metamodel.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/metamodels/uml13_metamodel_ext.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/mmgen/metamodel_generator.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/mmgen/mm_ext/ecore_mmgen_ext.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/mmgen/mmgen.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/mmgen/templates/annotations.tpl +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/mmgen/templates/metamodel_generator.tpl +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/array_extensions.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/ecore/ecore.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/ecore/ecore_builder_methods.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/ecore/ecore_ext.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/ecore/ecore_interface.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/ecore/ecore_to_ruby.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/ecore/ruby_to_ecore.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/environment.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/fragment/dump_file_cache.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/fragment/fragmented_model.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/fragment/model_fragment.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/instantiator/abstract_instantiator.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/instantiator/abstract_xml_instantiator.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/instantiator/default_xml_instantiator.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/instantiator/ecore_xml_instantiator.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/instantiator/json_instantiator.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/instantiator/json_parser.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/instantiator/json_parser.y +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/instantiator/nodebased_xml_instantiator.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/instantiator/qualified_name_resolver.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/instantiator/reference_resolver.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/instantiator/resolution_helper.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/instantiator/xmi11_instantiator.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/builder_extensions.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/builder_runtime.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/constant_order_helper.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/data_types.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/intermediate/annotation.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/intermediate/feature.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/mm_multiple.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/module_extension.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/model_builder.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/model_builder/builder_context.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/model_builder/model_serializer.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/model_builder/reference_resolver.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/serializer/json_serializer.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/serializer/opposite_reference_filter.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/serializer/qualified_name_provider.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/serializer/xmi11_serializer.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/serializer/xmi20_serializer.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/serializer/xml_serializer.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/template_language.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/template_language/directory_template_container.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/template_language/output_handler.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/template_language/template_container.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/template_language/template_helper.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/transformer.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/util/auto_class_creator.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/util/cached_glob.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/util/file_cache_map.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/util/file_change_detector.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/util/method_delegation.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/util/model_comparator.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/util/model_comparator_base.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/util/model_dumper.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/util/name_helper.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/rgen/util/pattern_matcher.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/transformers/ecore_to_uml13.rb +0 -0
- data/vendor/{gems/puppet-4.5.2 → pup410}/lib/puppet/vendor/rgen/lib/transformers/uml13_to_ecore.rb +0 -0
- data/vendor/pup410/lib/puppet/vendor/rgen_patch.rb +132 -0
- data/vendor/pup410/lib/puppet/vendor/semantic/lib/semantic.rb +5 -0
- data/vendor/pup410/lib/puppet/vendor/semantic_puppet/lib/semantic_puppet.rb +17 -0
- data/vendor/pup410/lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency.rb +181 -0
- data/vendor/pup410/lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/graph.rb +60 -0
- data/vendor/pup410/lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/graph_node.rb +117 -0
- data/vendor/pup410/lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/module_release.rb +58 -0
- data/vendor/pup410/lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/source.rb +25 -0
- data/vendor/pup410/lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/dependency/unsatisfiable_graph.rb +31 -0
- data/vendor/pup410/lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/gem_version.rb +3 -0
- data/vendor/pup410/lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/locales/config.yaml +21 -0
- data/vendor/pup410/lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/version.rb +195 -0
- data/vendor/pup410/lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/version_range.rb +422 -0
- data/vendor/pup410/lib/puppet/version.rb +93 -0
- data/vendor/pup410/lib/puppet_x.rb +14 -0
- data/vendor/pup410/lib/semver.rb +146 -0
- data/vendor/pup410/locales/config.yaml +29 -0
- data/vendor/pup410/locales/puppet.pot +180 -0
- data/vendor/pup410/puppet-4.10.8.gemspec +17 -0
- metadata +1161 -1321
- data/vendor/gems/puppet-4.5.2/Gemfile +0 -92
- data/vendor/gems/puppet-4.5.2/bin/extlookup2hiera +0 -56
- data/vendor/gems/puppet-4.5.2/bin/puppet +0 -9
- data/vendor/gems/puppet-4.5.2/conf/auth.conf +0 -124
- data/vendor/gems/puppet-4.5.2/conf/environment.conf +0 -18
- data/vendor/gems/puppet-4.5.2/conf/fileserver.conf +0 -42
- data/vendor/gems/puppet-4.5.2/conf/puppet.conf +0 -6
- data/vendor/gems/puppet-4.5.2/ext/README.environment +0 -8
- data/vendor/gems/puppet-4.5.2/ext/autotest/Rakefile +0 -8
- data/vendor/gems/puppet-4.5.2/ext/autotest/config +0 -43
- data/vendor/gems/puppet-4.5.2/ext/autotest/readme.rst +0 -16
- data/vendor/gems/puppet-4.5.2/ext/build_defaults.yaml +0 -20
- data/vendor/gems/puppet-4.5.2/ext/cert_inspector +0 -140
- data/vendor/gems/puppet-4.5.2/ext/dbfix.sql +0 -132
- data/vendor/gems/puppet-4.5.2/ext/debian/README.Debian +0 -8
- data/vendor/gems/puppet-4.5.2/ext/debian/README.source +0 -2
- data/vendor/gems/puppet-4.5.2/ext/debian/TODO.Debian +0 -1
- data/vendor/gems/puppet-4.5.2/ext/debian/changelog.erb +0 -1122
- data/vendor/gems/puppet-4.5.2/ext/debian/compat +0 -1
- data/vendor/gems/puppet-4.5.2/ext/debian/control +0 -146
- data/vendor/gems/puppet-4.5.2/ext/debian/copyright +0 -361
- data/vendor/gems/puppet-4.5.2/ext/debian/docs +0 -1
- data/vendor/gems/puppet-4.5.2/ext/debian/fileserver.conf +0 -41
- data/vendor/gems/puppet-4.5.2/ext/debian/puppet-common.dirs +0 -13
- data/vendor/gems/puppet-4.5.2/ext/debian/puppet-common.install +0 -4
- data/vendor/gems/puppet-4.5.2/ext/debian/puppet-common.lintian-overrides +0 -5
- data/vendor/gems/puppet-4.5.2/ext/debian/puppet-common.manpages +0 -30
- data/vendor/gems/puppet-4.5.2/ext/debian/puppet-common.postinst +0 -35
- data/vendor/gems/puppet-4.5.2/ext/debian/puppet-common.postrm +0 -33
- data/vendor/gems/puppet-4.5.2/ext/debian/puppet-el.dirs +0 -1
- data/vendor/gems/puppet-4.5.2/ext/debian/puppet-el.emacsen-install +0 -25
- data/vendor/gems/puppet-4.5.2/ext/debian/puppet-el.emacsen-remove +0 -11
- data/vendor/gems/puppet-4.5.2/ext/debian/puppet-el.emacsen-startup +0 -9
- data/vendor/gems/puppet-4.5.2/ext/debian/puppet-el.install +0 -1
- data/vendor/gems/puppet-4.5.2/ext/debian/puppet-testsuite.install +0 -2
- data/vendor/gems/puppet-4.5.2/ext/debian/puppet-testsuite.lintian-overrides +0 -4
- data/vendor/gems/puppet-4.5.2/ext/debian/puppet.default +0 -4
- data/vendor/gems/puppet-4.5.2/ext/debian/puppet.init +0 -113
- data/vendor/gems/puppet-4.5.2/ext/debian/puppet.lintian-overrides +0 -3
- data/vendor/gems/puppet-4.5.2/ext/debian/puppet.logrotate +0 -20
- data/vendor/gems/puppet-4.5.2/ext/debian/puppet.postinst +0 -20
- data/vendor/gems/puppet-4.5.2/ext/debian/puppet.postrm +0 -20
- data/vendor/gems/puppet-4.5.2/ext/debian/puppet.preinst +0 -20
- data/vendor/gems/puppet-4.5.2/ext/debian/puppetmaster-common.install +0 -2
- data/vendor/gems/puppet-4.5.2/ext/debian/puppetmaster-common.manpages +0 -2
- data/vendor/gems/puppet-4.5.2/ext/debian/puppetmaster-common.postinst +0 -6
- data/vendor/gems/puppet-4.5.2/ext/debian/puppetmaster-passenger.dirs +0 -4
- data/vendor/gems/puppet-4.5.2/ext/debian/puppetmaster-passenger.postinst +0 -162
- data/vendor/gems/puppet-4.5.2/ext/debian/puppetmaster-passenger.postrm +0 -61
- data/vendor/gems/puppet-4.5.2/ext/debian/puppetmaster.README.debian +0 -17
- data/vendor/gems/puppet-4.5.2/ext/debian/puppetmaster.default +0 -14
- data/vendor/gems/puppet-4.5.2/ext/debian/puppetmaster.init +0 -137
- data/vendor/gems/puppet-4.5.2/ext/debian/puppetmaster.lintian-overrides +0 -3
- data/vendor/gems/puppet-4.5.2/ext/debian/puppetmaster.postinst +0 -20
- data/vendor/gems/puppet-4.5.2/ext/debian/puppetmaster.postrm +0 -5
- data/vendor/gems/puppet-4.5.2/ext/debian/puppetmaster.preinst +0 -22
- data/vendor/gems/puppet-4.5.2/ext/debian/rules +0 -132
- data/vendor/gems/puppet-4.5.2/ext/debian/source/format +0 -1
- data/vendor/gems/puppet-4.5.2/ext/debian/source/options +0 -1
- data/vendor/gems/puppet-4.5.2/ext/debian/vim-puppet.README.Debian +0 -13
- data/vendor/gems/puppet-4.5.2/ext/debian/vim-puppet.dirs +0 -5
- data/vendor/gems/puppet-4.5.2/ext/debian/vim-puppet.yaml +0 -7
- data/vendor/gems/puppet-4.5.2/ext/debian/watch +0 -2
- data/vendor/gems/puppet-4.5.2/ext/emacs/puppet-mode-init.el +0 -6
- data/vendor/gems/puppet-4.5.2/ext/emacs/puppet-mode.el +0 -433
- data/vendor/gems/puppet-4.5.2/ext/envpuppet +0 -139
- data/vendor/gems/puppet-4.5.2/ext/envpuppet.bat +0 -14
- data/vendor/gems/puppet-4.5.2/ext/freebsd/puppetd +0 -26
- data/vendor/gems/puppet-4.5.2/ext/freebsd/puppetmasterd +0 -26
- data/vendor/gems/puppet-4.5.2/ext/gentoo/conf.d/puppet +0 -5
- data/vendor/gems/puppet-4.5.2/ext/gentoo/conf.d/puppetmaster +0 -12
- data/vendor/gems/puppet-4.5.2/ext/gentoo/init.d/puppet +0 -38
- data/vendor/gems/puppet-4.5.2/ext/gentoo/init.d/puppetmaster +0 -51
- data/vendor/gems/puppet-4.5.2/ext/gentoo/puppet/fileserver.conf +0 -41
- data/vendor/gems/puppet-4.5.2/ext/ips/puppet-agent +0 -44
- data/vendor/gems/puppet-4.5.2/ext/ips/puppet-master +0 -44
- data/vendor/gems/puppet-4.5.2/ext/ips/puppet.p5m.erb +0 -12
- data/vendor/gems/puppet-4.5.2/ext/ips/puppetagent.xml +0 -42
- data/vendor/gems/puppet-4.5.2/ext/ips/puppetmaster.xml +0 -42
- data/vendor/gems/puppet-4.5.2/ext/ips/rules +0 -19
- data/vendor/gems/puppet-4.5.2/ext/ips/transforms +0 -34
- data/vendor/gems/puppet-4.5.2/ext/ldap/puppet.schema +0 -24
- data/vendor/gems/puppet-4.5.2/ext/logcheck/puppet +0 -23
- data/vendor/gems/puppet-4.5.2/ext/nagios/check_puppet.rb +0 -123
- data/vendor/gems/puppet-4.5.2/ext/osx/file_mapping.yaml +0 -33
- data/vendor/gems/puppet-4.5.2/ext/osx/postflight.erb +0 -109
- data/vendor/gems/puppet-4.5.2/ext/osx/preflight.erb +0 -52
- data/vendor/gems/puppet-4.5.2/ext/osx/prototype.plist.erb +0 -38
- data/vendor/gems/puppet-4.5.2/ext/osx/puppet.plist +0 -30
- data/vendor/gems/puppet-4.5.2/ext/project_data.yaml +0 -59
- data/vendor/gems/puppet-4.5.2/ext/puppet-test +0 -500
- data/vendor/gems/puppet-4.5.2/ext/puppetlisten/puppetlisten.rb +0 -77
- data/vendor/gems/puppet-4.5.2/ext/puppetlisten/puppetrun.rb +0 -38
- data/vendor/gems/puppet-4.5.2/ext/pure_ruby_dsl/dsl_test.rb +0 -7
- data/vendor/gems/puppet-4.5.2/ext/rack/config.ru +0 -44
- data/vendor/gems/puppet-4.5.2/ext/rack/example-passenger-vhost.conf +0 -57
- data/vendor/gems/puppet-4.5.2/ext/redhat/client.init +0 -169
- data/vendor/gems/puppet-4.5.2/ext/redhat/client.sysconfig +0 -2
- data/vendor/gems/puppet-4.5.2/ext/redhat/fileserver.conf +0 -41
- data/vendor/gems/puppet-4.5.2/ext/redhat/logrotate +0 -21
- data/vendor/gems/puppet-4.5.2/ext/redhat/puppet.spec.erb +0 -849
- data/vendor/gems/puppet-4.5.2/ext/redhat/server.init +0 -128
- data/vendor/gems/puppet-4.5.2/ext/redhat/server.sysconfig +0 -13
- data/vendor/gems/puppet-4.5.2/ext/regexp_nodes/classes/databases +0 -2
- data/vendor/gems/puppet-4.5.2/ext/regexp_nodes/classes/webservers +0 -2
- data/vendor/gems/puppet-4.5.2/ext/regexp_nodes/environment/development +0 -2
- data/vendor/gems/puppet-4.5.2/ext/regexp_nodes/parameters/service/prod +0 -1
- data/vendor/gems/puppet-4.5.2/ext/regexp_nodes/parameters/service/qa +0 -3
- data/vendor/gems/puppet-4.5.2/ext/regexp_nodes/parameters/service/sandbox +0 -1
- data/vendor/gems/puppet-4.5.2/ext/regexp_nodes/regexp_nodes.rb +0 -271
- data/vendor/gems/puppet-4.5.2/ext/solaris/pkginfo +0 -6
- data/vendor/gems/puppet-4.5.2/ext/solaris/smf/puppet +0 -44
- data/vendor/gems/puppet-4.5.2/ext/solaris/smf/puppet.xml +0 -44
- data/vendor/gems/puppet-4.5.2/ext/solaris/smf/puppetd.xml +0 -77
- data/vendor/gems/puppet-4.5.2/ext/solaris/smf/puppetmasterd.xml +0 -77
- data/vendor/gems/puppet-4.5.2/ext/solaris/smf/svc-puppetd +0 -64
- data/vendor/gems/puppet-4.5.2/ext/solaris/smf/svc-puppetmasterd +0 -60
- data/vendor/gems/puppet-4.5.2/ext/suse/client.init +0 -141
- data/vendor/gems/puppet-4.5.2/ext/suse/puppet.spec +0 -310
- data/vendor/gems/puppet-4.5.2/ext/suse/server.init +0 -173
- data/vendor/gems/puppet-4.5.2/ext/systemd/puppet.service +0 -15
- data/vendor/gems/puppet-4.5.2/ext/upload_facts.rb +0 -119
- data/vendor/gems/puppet-4.5.2/ext/vim/README +0 -3
- data/vendor/gems/puppet-4.5.2/ext/vim/ftdetect/puppet.vim +0 -2
- data/vendor/gems/puppet-4.5.2/ext/vim/ftplugin/puppet.vim +0 -94
- data/vendor/gems/puppet-4.5.2/ext/vim/indent/puppet.vim +0 -76
- data/vendor/gems/puppet-4.5.2/ext/vim/syntax/puppet.vim +0 -115
- data/vendor/gems/puppet-4.5.2/ext/windows/eventlog/Rakefile +0 -32
- data/vendor/gems/puppet-4.5.2/ext/windows/eventlog/puppetres.dll +0 -0
- data/vendor/gems/puppet-4.5.2/ext/windows/eventlog/puppetres.mc +0 -18
- data/vendor/gems/puppet-4.5.2/ext/windows/puppet_interactive.bat +0 -6
- data/vendor/gems/puppet-4.5.2/ext/windows/puppet_shell.bat +0 -9
- data/vendor/gems/puppet-4.5.2/ext/windows/run_puppet_interactive.bat +0 -9
- data/vendor/gems/puppet-4.5.2/ext/windows/service/daemon.bat +0 -6
- data/vendor/gems/puppet-4.5.2/ext/windows/service/daemon.rb +0 -192
- data/vendor/gems/puppet-4.5.2/ext/yaml_nodes.rb +0 -105
- data/vendor/gems/puppet-4.5.2/install.rb +0 -477
- data/vendor/gems/puppet-4.5.2/lib/hiera/puppet_function.rb +0 -82
- data/vendor/gems/puppet-4.5.2/lib/hiera/scope.rb +0 -63
- data/vendor/gems/puppet-4.5.2/lib/puppet.rb +0 -286
- data/vendor/gems/puppet-4.5.2/lib/puppet/agent.rb +0 -102
- data/vendor/gems/puppet-4.5.2/lib/puppet/agent/disabler.rb +0 -53
- data/vendor/gems/puppet-4.5.2/lib/puppet/agent/locker.rb +0 -52
- data/vendor/gems/puppet-4.5.2/lib/puppet/application.rb +0 -462
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/agent.rb +0 -456
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/apply.rb +0 -352
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/ca.rb +0 -11
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/catalog.rb +0 -4
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/cert.rb +0 -297
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/certificate.rb +0 -17
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/certificate_request.rb +0 -7
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/certificate_revocation_list.rb +0 -7
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/config.rb +0 -4
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/describe.rb +0 -254
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/device.rb +0 -256
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/doc.rb +0 -226
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/epp.rb +0 -5
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/face_base.rb +0 -269
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/facts.rb +0 -4
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/file.rb +0 -4
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/filebucket.rb +0 -258
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/help.rb +0 -4
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/indirection_base.rb +0 -4
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/inspect.rb +0 -179
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/key.rb +0 -4
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/lookup.rb +0 -342
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/man.rb +0 -4
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/master.rb +0 -321
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/module.rb +0 -4
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/node.rb +0 -4
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/parser.rb +0 -5
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/plugin.rb +0 -3
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/report.rb +0 -4
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/resource.rb +0 -224
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/resource_type.rb +0 -7
- data/vendor/gems/puppet-4.5.2/lib/puppet/application/status.rb +0 -4
- data/vendor/gems/puppet-4.5.2/lib/puppet/application_support.rb +0 -57
- data/vendor/gems/puppet-4.5.2/lib/puppet/configurer.rb +0 -389
- data/vendor/gems/puppet-4.5.2/lib/puppet/configurer/fact_handler.rb +0 -37
- data/vendor/gems/puppet-4.5.2/lib/puppet/configurer/plugin_handler.rb +0 -27
- data/vendor/gems/puppet-4.5.2/lib/puppet/data_providers.rb +0 -30
- data/vendor/gems/puppet-4.5.2/lib/puppet/data_providers/data_adapter.rb +0 -30
- data/vendor/gems/puppet-4.5.2/lib/puppet/data_providers/data_function_support.rb +0 -24
- data/vendor/gems/puppet-4.5.2/lib/puppet/data_providers/function_env_data_provider.rb +0 -18
- data/vendor/gems/puppet-4.5.2/lib/puppet/data_providers/function_module_data_provider.rb +0 -17
- data/vendor/gems/puppet-4.5.2/lib/puppet/data_providers/hiera_config.rb +0 -129
- data/vendor/gems/puppet-4.5.2/lib/puppet/data_providers/hiera_env_data_provider.rb +0 -18
- data/vendor/gems/puppet-4.5.2/lib/puppet/data_providers/hiera_interpolate.rb +0 -19
- data/vendor/gems/puppet-4.5.2/lib/puppet/data_providers/hiera_module_data_provider.rb +0 -23
- data/vendor/gems/puppet-4.5.2/lib/puppet/data_providers/hiera_support.rb +0 -37
- data/vendor/gems/puppet-4.5.2/lib/puppet/data_providers/json_data_provider_factory.rb +0 -24
- data/vendor/gems/puppet-4.5.2/lib/puppet/data_providers/lookup_adapter.rb +0 -254
- data/vendor/gems/puppet-4.5.2/lib/puppet/data_providers/yaml_data_provider_factory.rb +0 -26
- data/vendor/gems/puppet-4.5.2/lib/puppet/defaults.rb +0 -1902
- data/vendor/gems/puppet-4.5.2/lib/puppet/environments.rb +0 -487
- data/vendor/gems/puppet-4.5.2/lib/puppet/error.rb +0 -100
- data/vendor/gems/puppet-4.5.2/lib/puppet/external/dot.rb +0 -326
- data/vendor/gems/puppet-4.5.2/lib/puppet/face/ca.rb +0 -254
- data/vendor/gems/puppet-4.5.2/lib/puppet/face/catalog.rb +0 -130
- data/vendor/gems/puppet-4.5.2/lib/puppet/face/certificate.rb +0 -159
- data/vendor/gems/puppet-4.5.2/lib/puppet/face/certificate_request.rb +0 -54
- data/vendor/gems/puppet-4.5.2/lib/puppet/face/certificate_revocation_list.rb +0 -54
- data/vendor/gems/puppet-4.5.2/lib/puppet/face/config.rb +0 -119
- data/vendor/gems/puppet-4.5.2/lib/puppet/face/epp.rb +0 -479
- data/vendor/gems/puppet-4.5.2/lib/puppet/face/facts.rb +0 -38
- data/vendor/gems/puppet-4.5.2/lib/puppet/face/file.rb +0 -47
- data/vendor/gems/puppet-4.5.2/lib/puppet/face/help.rb +0 -193
- data/vendor/gems/puppet-4.5.2/lib/puppet/face/help/face.erb +0 -111
- data/vendor/gems/puppet-4.5.2/lib/puppet/face/key.rb +0 -15
- data/vendor/gems/puppet-4.5.2/lib/puppet/face/man.rb +0 -99
- data/vendor/gems/puppet-4.5.2/lib/puppet/face/module.rb +0 -19
- data/vendor/gems/puppet-4.5.2/lib/puppet/face/module/generate.rb +0 -251
- data/vendor/gems/puppet-4.5.2/lib/puppet/face/module/install.rb +0 -145
- data/vendor/gems/puppet-4.5.2/lib/puppet/face/node.rb +0 -42
- data/vendor/gems/puppet-4.5.2/lib/puppet/face/parser.rb +0 -161
- data/vendor/gems/puppet-4.5.2/lib/puppet/face/plugin.rb +0 -58
- data/vendor/gems/puppet-4.5.2/lib/puppet/face/report.rb +0 -54
- data/vendor/gems/puppet-4.5.2/lib/puppet/face/resource.rb +0 -53
- data/vendor/gems/puppet-4.5.2/lib/puppet/face/resource_type.rb +0 -84
- data/vendor/gems/puppet-4.5.2/lib/puppet/face/status.rb +0 -48
- data/vendor/gems/puppet-4.5.2/lib/puppet/feature/base.rb +0 -87
- data/vendor/gems/puppet-4.5.2/lib/puppet/feature/external_facts.rb +0 -5
- data/vendor/gems/puppet-4.5.2/lib/puppet/file_serving/metadata.rb +0 -163
- data/vendor/gems/puppet-4.5.2/lib/puppet/file_system.rb +0 -376
- data/vendor/gems/puppet-4.5.2/lib/puppet/file_system/file_impl.rb +0 -149
- data/vendor/gems/puppet-4.5.2/lib/puppet/file_system/memory_impl.rb +0 -82
- data/vendor/gems/puppet-4.5.2/lib/puppet/file_system/path_pattern.rb +0 -97
- data/vendor/gems/puppet-4.5.2/lib/puppet/file_system/windows.rb +0 -103
- data/vendor/gems/puppet-4.5.2/lib/puppet/forge.rb +0 -226
- data/vendor/gems/puppet-4.5.2/lib/puppet/forge/cache.rb +0 -59
- data/vendor/gems/puppet-4.5.2/lib/puppet/forge/repository.rb +0 -155
- data/vendor/gems/puppet-4.5.2/lib/puppet/functions.rb +0 -732
- data/vendor/gems/puppet-4.5.2/lib/puppet/functions/assert_type.rb +0 -95
- data/vendor/gems/puppet-4.5.2/lib/puppet/functions/defined.rb +0 -161
- data/vendor/gems/puppet-4.5.2/lib/puppet/functions/dig.rb +0 -39
- data/vendor/gems/puppet-4.5.2/lib/puppet/functions/epp.rb +0 -45
- data/vendor/gems/puppet-4.5.2/lib/puppet/functions/hiera.rb +0 -81
- data/vendor/gems/puppet-4.5.2/lib/puppet/functions/hiera_array.rb +0 -74
- data/vendor/gems/puppet-4.5.2/lib/puppet/functions/hiera_hash.rb +0 -84
- data/vendor/gems/puppet-4.5.2/lib/puppet/functions/hiera_include.rb +0 -90
- data/vendor/gems/puppet-4.5.2/lib/puppet/functions/lest.rb +0 -53
- data/vendor/gems/puppet-4.5.2/lib/puppet/functions/new.rb +0 -502
- data/vendor/gems/puppet-4.5.2/lib/puppet/functions/regsubst.rb +0 -80
- data/vendor/gems/puppet-4.5.2/lib/puppet/functions/reverse_each.rb +0 -82
- data/vendor/gems/puppet-4.5.2/lib/puppet/functions/scanf.rb +0 -44
- data/vendor/gems/puppet-4.5.2/lib/puppet/functions/step.rb +0 -88
- data/vendor/gems/puppet-4.5.2/lib/puppet/functions/then.rb +0 -74
- data/vendor/gems/puppet-4.5.2/lib/puppet/functions/type.rb +0 -70
- data/vendor/gems/puppet-4.5.2/lib/puppet/graph/simple_graph.rb +0 -562
- data/vendor/gems/puppet-4.5.2/lib/puppet/indirector/catalog/compiler.rb +0 -367
- data/vendor/gems/puppet-4.5.2/lib/puppet/indirector/catalog/static_compiler.rb +0 -229
- data/vendor/gems/puppet-4.5.2/lib/puppet/indirector/face.rb +0 -148
- data/vendor/gems/puppet-4.5.2/lib/puppet/indirector/facts/facter.rb +0 -90
- data/vendor/gems/puppet-4.5.2/lib/puppet/indirector/file_bucket_file/file.rb +0 -199
- data/vendor/gems/puppet-4.5.2/lib/puppet/indirector/key/ca.rb +0 -16
- data/vendor/gems/puppet-4.5.2/lib/puppet/indirector/key/file.rb +0 -49
- data/vendor/gems/puppet-4.5.2/lib/puppet/indirector/request.rb +0 -256
- data/vendor/gems/puppet-4.5.2/lib/puppet/indirector/rest.rb +0 -260
- data/vendor/gems/puppet-4.5.2/lib/puppet/indirector/ssl_file.rb +0 -180
- data/vendor/gems/puppet-4.5.2/lib/puppet/info_service/class_information_service.rb +0 -112
- data/vendor/gems/puppet-4.5.2/lib/puppet/interface.rb +0 -228
- data/vendor/gems/puppet-4.5.2/lib/puppet/interface/documentation.rb +0 -342
- data/vendor/gems/puppet-4.5.2/lib/puppet/interface/face_collection.rb +0 -125
- data/vendor/gems/puppet-4.5.2/lib/puppet/loaders.rb +0 -23
- data/vendor/gems/puppet-4.5.2/lib/puppet/metatype/manager.rb +0 -195
- data/vendor/gems/puppet-4.5.2/lib/puppet/module.rb +0 -355
- data/vendor/gems/puppet-4.5.2/lib/puppet/module_tool.rb +0 -192
- data/vendor/gems/puppet-4.5.2/lib/puppet/module_tool/applications/builder.rb +0 -148
- data/vendor/gems/puppet-4.5.2/lib/puppet/module_tool/applications/installer.rb +0 -351
- data/vendor/gems/puppet-4.5.2/lib/puppet/module_tool/applications/upgrader.rb +0 -277
- data/vendor/gems/puppet-4.5.2/lib/puppet/module_tool/checksums.rb +0 -49
- data/vendor/gems/puppet-4.5.2/lib/puppet/module_tool/errors/installer.rb +0 -95
- data/vendor/gems/puppet-4.5.2/lib/puppet/module_tool/installed_modules.rb +0 -96
- data/vendor/gems/puppet-4.5.2/lib/puppet/module_tool/local_tarball.rb +0 -90
- data/vendor/gems/puppet-4.5.2/lib/puppet/module_tool/metadata.rb +0 -221
- data/vendor/gems/puppet-4.5.2/lib/puppet/module_tool/skeleton/templates/generator/examples/init.pp.erb +0 -12
- data/vendor/gems/puppet-4.5.2/lib/puppet/module_tool/tar.rb +0 -17
- data/vendor/gems/puppet-4.5.2/lib/puppet/network/http/api/indirected_routes.rb +0 -248
- data/vendor/gems/puppet-4.5.2/lib/puppet/network/http/api/master/v3.rb +0 -28
- data/vendor/gems/puppet-4.5.2/lib/puppet/network/http/compression.rb +0 -116
- data/vendor/gems/puppet-4.5.2/lib/puppet/network/http/connection.rb +0 -233
- data/vendor/gems/puppet-4.5.2/lib/puppet/network/http/error.rb +0 -69
- data/vendor/gems/puppet-4.5.2/lib/puppet/network/http/handler.rb +0 -178
- data/vendor/gems/puppet-4.5.2/lib/puppet/network/http/rack/rest.rb +0 -147
- data/vendor/gems/puppet-4.5.2/lib/puppet/network/http/webrick.rb +0 -124
- data/vendor/gems/puppet-4.5.2/lib/puppet/network/rights.rb +0 -219
- data/vendor/gems/puppet-4.5.2/lib/puppet/node/environment.rb +0 -540
- data/vendor/gems/puppet-4.5.2/lib/puppet/node/facts.rb +0 -133
- data/vendor/gems/puppet-4.5.2/lib/puppet/parameter.rb +0 -572
- data/vendor/gems/puppet-4.5.2/lib/puppet/parameter/boolean.rb +0 -15
- data/vendor/gems/puppet-4.5.2/lib/puppet/parameter/value.rb +0 -91
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser.rb +0 -20
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/ast.rb +0 -60
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/ast/leaf.rb +0 -75
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/ast/pops_bridge.rb +0 -304
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/ast/resource.rb +0 -61
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/ast/resource_instance.rb +0 -6
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/ast/resourceparam.rb +0 -26
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/compiler.rb +0 -895
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/compiler/catalog_validator/relationship_validator.rb +0 -60
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/environment_compiler.rb +0 -164
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions.rb +0 -272
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/assert_type.rb +0 -60
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/contain.rb +0 -38
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/create_resources.rb +0 -83
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/defined.rb +0 -131
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/each.rb +0 -104
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/epp.rb +0 -36
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/filter.rb +0 -78
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/hiera.rb +0 -89
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/hiera_array.rb +0 -78
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/hiera_hash.rb +0 -88
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/hiera_include.rb +0 -88
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/include.rb +0 -37
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/inline_epp.rb +0 -51
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/lookup.rb +0 -130
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/map.rb +0 -76
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/match.rb +0 -43
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/reduce.rb +0 -106
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/regsubst.rb +0 -60
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/require.rb +0 -63
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/scanf.rb +0 -33
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/slice.rb +0 -39
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/split.rb +0 -28
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/functions/with.rb +0 -28
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/resource.rb +0 -367
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/scope.rb +0 -1082
- data/vendor/gems/puppet-4.5.2/lib/puppet/parser/type_loader.rb +0 -149
- data/vendor/gems/puppet-4.5.2/lib/puppet/plugins/configuration.rb +0 -69
- data/vendor/gems/puppet-4.5.2/lib/puppet/plugins/data_providers.rb +0 -42
- data/vendor/gems/puppet-4.5.2/lib/puppet/plugins/data_providers/data_provider.rb +0 -336
- data/vendor/gems/puppet-4.5.2/lib/puppet/plugins/data_providers/registry.rb +0 -84
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops.rb +0 -136
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/adaptable.rb +0 -204
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/adapters.rb +0 -193
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/binder/producers.rb +0 -831
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/binder/scheme_handler/confdir_scheme.rb +0 -34
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/evaluator/access_operator.rb +0 -639
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/evaluator/callable_signature.rb +0 -100
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/evaluator/closure.rb +0 -270
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/evaluator/collector_transformer.rb +0 -229
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/evaluator/collectors/catalog_collector.rb +0 -29
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/evaluator/collectors/exported_collector.rb +0 -69
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/evaluator/compare_operator.rb +0 -229
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/evaluator/evaluator_impl.rb +0 -1218
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/evaluator/external_syntax_support.rb +0 -52
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/evaluator/json_strict_literal_evaluator.rb +0 -85
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/evaluator/literal_evaluator.rb +0 -88
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/evaluator/relationship_operator.rb +0 -169
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/evaluator/runtime3_converter.rb +0 -192
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/evaluator/runtime3_support.rb +0 -537
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/functions/dispatch.rb +0 -85
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/functions/dispatcher.rb +0 -76
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/functions/function.rb +0 -113
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/issue_reporter.rb +0 -115
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/issues.rb +0 -729
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/label_provider.rb +0 -76
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/loader/base_loader.rb +0 -143
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/loader/loader.rb +0 -204
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/loader/loader_paths.rb +0 -194
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/loader/module_loaders.rb +0 -273
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/loader/null_loader.rb +0 -44
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/loader/puppet_function_instantiator.rb +0 -83
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/loader/ruby_function_instantiator.rb +0 -47
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/loader/runtime3_type_loader.rb +0 -57
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/loader/static_loader.rb +0 -166
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/loader/type_definition_instantiator.rb +0 -77
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/loaders.rb +0 -352
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/lookup.rb +0 -79
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/lookup/explainer.rb +0 -509
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/lookup/interpolation.rb +0 -115
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/lookup/invocation.rb +0 -119
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/lookup/sub_lookup.rb +0 -86
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/merge_strategy.rb +0 -338
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/migration/migration_checker.rb +0 -54
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/model/factory.rb +0 -1139
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/model/model_label_provider.rb +0 -125
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/model/model_meta.rb +0 -627
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/model/model_tree_dumper.rb +0 -437
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/parser/egrammar.ra +0 -866
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/parser/eparser.rb +0 -3157
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/parser/evaluating_parser.rb +0 -165
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/parser/heredoc_support.rb +0 -144
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/parser/interpolation_support.rb +0 -237
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/parser/lexer2.rb +0 -768
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/parser/locator.rb +0 -292
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/parser/parser_support.rb +0 -254
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/parser/slurp_support.rb +0 -119
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/patterns.rb +0 -47
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/pcore.rb +0 -30
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/semantic_error.rb +0 -17
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/implementation_registry.rb +0 -146
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/p_object_type.rb +0 -846
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/p_runtime_type.rb +0 -102
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/p_sem_ver_range_type.rb +0 -164
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/p_sem_ver_type.rb +0 -113
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/puppet_object.rb +0 -21
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/recursion_guard.rb +0 -92
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/ruby_generator.rb +0 -258
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/string_converter.rb +0 -922
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/type_asserter.rb +0 -47
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/type_calculator.rb +0 -807
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/type_factory.rb +0 -491
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/type_formatter.rb +0 -569
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/type_mismatch_describer.rb +0 -1039
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/type_parser.rb +0 -525
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/types/types.rb +0 -2855
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/validation.rb +0 -462
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/validation/checker4_0.rb +0 -956
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/validation/validator_factory_4_0.rb +0 -37
- data/vendor/gems/puppet-4.5.2/lib/puppet/pops/visitor.rb +0 -94
- data/vendor/gems/puppet-4.5.2/lib/puppet/property.rb +0 -537
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider.rb +0 -604
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/aixobject.rb +0 -392
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/exec.rb +0 -96
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/group/aix.rb +0 -141
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/group/windows_adsi.rb +0 -106
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/macauthorization/macauthorization.rb +0 -298
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/mailalias/aliases.rb +0 -50
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/mcx/mcxcontent.rb +0 -172
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/mount/parsed.rb +0 -280
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/nameservice.rb +0 -292
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/nameservice/directoryservice.rb +0 -499
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/aix.rb +0 -152
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/appdmg.rb +0 -110
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/apple.rb +0 -47
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/dnf.rb +0 -41
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/gem.rb +0 -169
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/nim.rb +0 -280
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/pacman.rb +0 -267
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/pip.rb +0 -178
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/pip3.rb +0 -20
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/pkg.rb +0 -245
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/pkgdmg.rb +0 -152
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/pkgin.rb +0 -87
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/pkgng.rb +0 -143
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/pkgutil.rb +0 -186
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/portage.rb +0 -153
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/rpm.rb +0 -402
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/sun.rb +0 -132
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/package/yum.rb +0 -241
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/parsedfile.rb +0 -459
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/scheduled_task/win32_taskscheduler.rb +0 -583
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/selmodule/semodule.rb +0 -134
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/service/base.rb +0 -121
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/service/bsd.rb +0 -51
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/service/daemontools.rb +0 -194
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/service/debian.rb +0 -74
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/service/init.rb +0 -191
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/service/launchd.rb +0 -331
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/service/runit.rb +0 -111
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/service/smf.rb +0 -160
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/service/src.rb +0 -147
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/service/systemd.rb +0 -149
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/ssh_authorized_key/parsed.rb +0 -105
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/user/aix.rb +0 -369
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/user/directoryservice.rb +0 -630
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/user/hpux.rb +0 -95
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/user/user_role_add.rb +0 -212
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/user/useradd.rb +0 -231
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/user/windows_adsi.rb +0 -142
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/yumrepo/inifile.rb +0 -304
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/zfs/zfs.rb +0 -84
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/zone/solaris.rb +0 -361
- data/vendor/gems/puppet-4.5.2/lib/puppet/provider/zpool/zpool.rb +0 -125
- data/vendor/gems/puppet-4.5.2/lib/puppet/reference/configuration.rb +0 -80
- data/vendor/gems/puppet-4.5.2/lib/puppet/reference/indirection.rb +0 -71
- data/vendor/gems/puppet-4.5.2/lib/puppet/reference/type.rb +0 -114
- data/vendor/gems/puppet-4.5.2/lib/puppet/reports/http.rb +0 -31
- data/vendor/gems/puppet-4.5.2/lib/puppet/resource.rb +0 -623
- data/vendor/gems/puppet-4.5.2/lib/puppet/resource/capability_finder.rb +0 -102
- data/vendor/gems/puppet-4.5.2/lib/puppet/resource/catalog.rb +0 -652
- data/vendor/gems/puppet-4.5.2/lib/puppet/resource/status.rb +0 -223
- data/vendor/gems/puppet-4.5.2/lib/puppet/resource/type.rb +0 -562
- data/vendor/gems/puppet-4.5.2/lib/puppet/resource/type_collection.rb +0 -256
- data/vendor/gems/puppet-4.5.2/lib/puppet/resource/type_collection_helper.rb +0 -7
- data/vendor/gems/puppet-4.5.2/lib/puppet/settings.rb +0 -1431
- data/vendor/gems/puppet-4.5.2/lib/puppet/settings/config_file.rb +0 -142
- data/vendor/gems/puppet-4.5.2/lib/puppet/settings/directory_setting.rb +0 -12
- data/vendor/gems/puppet-4.5.2/lib/puppet/settings/environment_conf.rb +0 -192
- data/vendor/gems/puppet-4.5.2/lib/puppet/settings/file_or_directory_setting.rb +0 -34
- data/vendor/gems/puppet-4.5.2/lib/puppet/settings/file_setting.rb +0 -235
- data/vendor/gems/puppet-4.5.2/lib/puppet/settings/ini_file.rb +0 -171
- data/vendor/gems/puppet-4.5.2/lib/puppet/ssl/base.rb +0 -140
- data/vendor/gems/puppet-4.5.2/lib/puppet/ssl/certificate.rb +0 -95
- data/vendor/gems/puppet-4.5.2/lib/puppet/ssl/certificate_authority.rb +0 -517
- data/vendor/gems/puppet-4.5.2/lib/puppet/ssl/certificate_authority/interface.rb +0 -184
- data/vendor/gems/puppet-4.5.2/lib/puppet/ssl/certificate_request.rb +0 -327
- data/vendor/gems/puppet-4.5.2/lib/puppet/ssl/configuration.rb +0 -58
- data/vendor/gems/puppet-4.5.2/lib/puppet/ssl/host.rb +0 -365
- data/vendor/gems/puppet-4.5.2/lib/puppet/ssl/inventory.rb +0 -48
- data/vendor/gems/puppet-4.5.2/lib/puppet/ssl/key.rb +0 -59
- data/vendor/gems/puppet-4.5.2/lib/puppet/ssl/oids.rb +0 -177
- data/vendor/gems/puppet-4.5.2/lib/puppet/ssl/validator/default_validator.rb +0 -174
- data/vendor/gems/puppet-4.5.2/lib/puppet/syntax_checkers/json.rb +0 -37
- data/vendor/gems/puppet-4.5.2/lib/puppet/test/test_helper.rb +0 -253
- data/vendor/gems/puppet-4.5.2/lib/puppet/transaction.rb +0 -381
- data/vendor/gems/puppet-4.5.2/lib/puppet/transaction/additional_resource_generator.rb +0 -207
- data/vendor/gems/puppet-4.5.2/lib/puppet/transaction/event.rb +0 -106
- data/vendor/gems/puppet-4.5.2/lib/puppet/transaction/event_manager.rb +0 -167
- data/vendor/gems/puppet-4.5.2/lib/puppet/transaction/report.rb +0 -408
- data/vendor/gems/puppet-4.5.2/lib/puppet/transaction/resource_harness.rb +0 -236
- data/vendor/gems/puppet-4.5.2/lib/puppet/type.rb +0 -2615
- data/vendor/gems/puppet-4.5.2/lib/puppet/type/augeas.rb +0 -211
- data/vendor/gems/puppet-4.5.2/lib/puppet/type/component.rb +0 -77
- data/vendor/gems/puppet-4.5.2/lib/puppet/type/cron.rb +0 -492
- data/vendor/gems/puppet-4.5.2/lib/puppet/type/exec.rb +0 -601
- data/vendor/gems/puppet-4.5.2/lib/puppet/type/file.rb +0 -995
- data/vendor/gems/puppet-4.5.2/lib/puppet/type/file/checksum.rb +0 -43
- data/vendor/gems/puppet-4.5.2/lib/puppet/type/file/content.rb +0 -160
- data/vendor/gems/puppet-4.5.2/lib/puppet/type/file/data_sync.rb +0 -84
- data/vendor/gems/puppet-4.5.2/lib/puppet/type/file/mode.rb +0 -173
- data/vendor/gems/puppet-4.5.2/lib/puppet/type/file/source.rb +0 -346
- data/vendor/gems/puppet-4.5.2/lib/puppet/type/group.rb +0 -200
- data/vendor/gems/puppet-4.5.2/lib/puppet/type/host.rb +0 -95
- data/vendor/gems/puppet-4.5.2/lib/puppet/type/mount.rb +0 -314
- data/vendor/gems/puppet-4.5.2/lib/puppet/type/notify.rb +0 -44
- data/vendor/gems/puppet-4.5.2/lib/puppet/type/package.rb +0 -571
- data/vendor/gems/puppet-4.5.2/lib/puppet/type/resources.rb +0 -180
- data/vendor/gems/puppet-4.5.2/lib/puppet/type/scheduled_task.rb +0 -184
- data/vendor/gems/puppet-4.5.2/lib/puppet/type/ssh_authorized_key.rb +0 -153
- data/vendor/gems/puppet-4.5.2/lib/puppet/type/tidy.rb +0 -329
- data/vendor/gems/puppet-4.5.2/lib/puppet/type/user.rb +0 -747
- data/vendor/gems/puppet-4.5.2/lib/puppet/type/yumrepo.rb +0 -409
- data/vendor/gems/puppet-4.5.2/lib/puppet/type/zone.rb +0 -382
- data/vendor/gems/puppet-4.5.2/lib/puppet/util.rb +0 -579
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/classgen.rb +0 -228
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/command_line.rb +0 -181
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/command_line/trollop.rb +0 -824
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/execution.rb +0 -356
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/filetype.rb +0 -303
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/http_proxy.rb +0 -197
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/inifile.rb +0 -341
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/instance_loader.rb +0 -81
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/log.rb +0 -386
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/logging.rb +0 -310
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/monkey_patches.rb +0 -145
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/multi_match.rb +0 -51
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/network_device/config.rb +0 -98
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/plist.rb +0 -130
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/profiler.rb +0 -53
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/profiler/aggregate.rb +0 -85
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/profiler/around_profiler.rb +0 -67
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/psych_support.rb +0 -38
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/rdoc.rb +0 -60
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/reference.rb +0 -124
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/rubygems.rb +0 -75
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/tagging.rb +0 -118
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/watcher/periodic_watcher.rb +0 -37
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/windows/access_control_entry.rb +0 -84
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/windows/adsi.rb +0 -523
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/windows/api_types.rb +0 -275
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/windows/file.rb +0 -425
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/windows/process.rb +0 -479
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/windows/security.rb +0 -857
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/windows/taskscheduler.rb +0 -1220
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/windows/user.rb +0 -291
- data/vendor/gems/puppet-4.5.2/lib/puppet/util/yaml.rb +0 -24
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/deep_merge/test/test_deep_merge.rb +0 -608
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/pathspec/lib/pathspec.rb +0 -121
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/require_vendored.rb +0 -7
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/array_extensions_test.rb +0 -64
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/ea_instantiator_test.rb +0 -35
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/ea_serializer_test.rb +0 -23
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/ecore_self_test.rb +0 -54
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/environment_test.rb +0 -90
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/json_test.rb +0 -171
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/metamodel_builder_test.rb +0 -1482
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/metamodel_from_ecore_test.rb +0 -57
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/metamodel_order_test.rb +0 -131
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/metamodel_roundtrip_test.rb +0 -98
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/metamodel_roundtrip_test/TestModel.rb +0 -70
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/metamodel_roundtrip_test/houseMetamodel.ecore +0 -42
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/metamodel_roundtrip_test/houseMetamodel_from_ecore.rb +0 -44
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/metamodel_roundtrip_test/using_builtin_types.ecore +0 -9
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/method_delegation_test.rb +0 -178
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/model_builder/builder_context_test.rb +0 -59
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/model_builder/builder_test.rb +0 -242
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/model_builder/ecore_original.rb +0 -163
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/model_builder/ecore_original_regenerated.rb +0 -163
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/model_builder/reference_resolver_test.rb +0 -156
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/model_builder/serializer_test.rb +0 -94
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/model_builder/statemachine_metamodel.rb +0 -42
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/model_builder/test_model/statemachine1.rb +0 -23
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/model_builder_test.rb +0 -6
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/model_fragment_test.rb +0 -30
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/output_handler_test.rb +0 -58
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/qualified_name_provider_test.rb +0 -48
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/qualified_name_resolver_test.rb +0 -102
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/reference_resolver_test.rb +0 -117
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/rgen_test.rb +0 -26
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test.rb +0 -163
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/expected_result1.txt +0 -29
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/expected_result2.txt +0 -9
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/expected_result3.txt +0 -4
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/indentStringTestDefaultIndent.out +0 -1
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/indentStringTestTabIndent.out +0 -1
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/callback_indent_test/a.tpl +0 -12
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/callback_indent_test/b.tpl +0 -5
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/code/array.tpl +0 -11
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/content/author.tpl +0 -7
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/content/chapter.tpl +0 -5
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/define_local_test/local.tpl +0 -8
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/define_local_test/test.tpl +0 -8
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/evaluate_test/test.tpl +0 -7
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/indent_string_test.tpl +0 -12
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/index/c/cmod.tpl +0 -1
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/index/chapter.tpl +0 -3
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/no_backslash_r_test.tpl +0 -5
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/no_indent_test/no_indent.tpl +0 -3
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/no_indent_test/sub1/no_indent.tpl +0 -3
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/no_indent_test/test.tpl +0 -24
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/no_indent_test/test2.tpl +0 -13
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/no_indent_test/test3.tpl +0 -10
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/null_context_test.tpl +0 -17
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/root.tpl +0 -31
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/template_resolution_test/sub1.tpl +0 -9
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/template_resolution_test/sub1/sub1.tpl +0 -3
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/templates/template_resolution_test/test.tpl +0 -4
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/template_language_test/testout.txt +0 -29
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/testmodel/class_model_checker.rb +0 -119
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/testmodel/ea_testmodel.eap +0 -0
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/testmodel/ea_testmodel.xml +0 -1029
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/testmodel/ea_testmodel_partial.xml +0 -317
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/testmodel/ecore_model_checker.rb +0 -101
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/testmodel/manual_testmodel.xml +0 -22
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/testmodel/object_model_checker.rb +0 -67
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/transformer_test.rb +0 -254
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/util/file_cache_map_test.rb +0 -99
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/util/pattern_matcher_test.rb +0 -97
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/util_test.rb +0 -5
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/xml_instantiator_test.rb +0 -160
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/xml_instantiator_test/simple_ecore_model_checker.rb +0 -94
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/xml_instantiator_test/simple_xmi_ecore_instantiator.rb +0 -53
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/xml_instantiator_test/simple_xmi_metamodel.rb +0 -49
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen/test/xml_instantiator_test/simple_xmi_to_ecore.rb +0 -75
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/rgen_patch.rb +0 -132
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/Gemfile +0 -20
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/PUPPET_README.md +0 -6
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/Rakefile +0 -69
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/lib/semantic.rb +0 -7
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/lib/semantic/dependency.rb +0 -181
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/lib/semantic/dependency/graph.rb +0 -60
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/lib/semantic/dependency/graph_node.rb +0 -117
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/lib/semantic/dependency/module_release.rb +0 -60
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/lib/semantic/dependency/source.rb +0 -25
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/lib/semantic/dependency/unsatisfiable_graph.rb +0 -31
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/lib/semantic/version.rb +0 -168
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/lib/semantic/version_range.rb +0 -424
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/spec/spec_helper.rb +0 -24
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/spec/unit/semantic/dependency/graph_node_spec.rb +0 -141
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/spec/unit/semantic/dependency/graph_spec.rb +0 -162
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/spec/unit/semantic/dependency/module_release_spec.rb +0 -143
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/spec/unit/semantic/dependency/source_spec.rb +0 -5
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/spec/unit/semantic/dependency/unsatisfiable_graph_spec.rb +0 -44
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/spec/unit/semantic/dependency_spec.rb +0 -383
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/spec/unit/semantic/version_range_spec.rb +0 -307
- data/vendor/gems/puppet-4.5.2/lib/puppet/vendor/semantic/spec/unit/semantic/version_spec.rb +0 -608
- data/vendor/gems/puppet-4.5.2/lib/puppet/version.rb +0 -89
- data/vendor/gems/puppet-4.5.2/lib/puppet_x.rb +0 -8
- data/vendor/gems/puppet-4.5.2/lib/semver.rb +0 -139
- data/vendor/gems/puppet-4.5.2/puppet-4.5.2.gemspec +0 -104
@@ -0,0 +1,257 @@
|
|
1
|
+
require 'puppet/parser/type_loader'
|
2
|
+
require 'puppet/util/file_watcher'
|
3
|
+
require 'puppet/util/warnings'
|
4
|
+
|
5
|
+
class Puppet::Resource::TypeCollection
|
6
|
+
attr_reader :environment
|
7
|
+
attr_accessor :parse_failed
|
8
|
+
|
9
|
+
include Puppet::Util::Warnings
|
10
|
+
|
11
|
+
def clear
|
12
|
+
@hostclasses.clear
|
13
|
+
@definitions.clear
|
14
|
+
@applications.clear
|
15
|
+
@nodes.clear
|
16
|
+
@notfound.clear
|
17
|
+
@capability_mappings.clear
|
18
|
+
@sites.clear
|
19
|
+
end
|
20
|
+
|
21
|
+
def initialize(env)
|
22
|
+
@environment = env
|
23
|
+
@hostclasses = {}
|
24
|
+
@definitions = {}
|
25
|
+
@capability_mappings = {}
|
26
|
+
@applications = {}
|
27
|
+
@nodes = {}
|
28
|
+
@notfound = {}
|
29
|
+
@sites = []
|
30
|
+
|
31
|
+
# So we can keep a list and match the first-defined regex
|
32
|
+
@node_list = []
|
33
|
+
end
|
34
|
+
|
35
|
+
def import_ast(ast, modname)
|
36
|
+
ast.instantiate(modname).each do |instance|
|
37
|
+
add(instance)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
def inspect
|
42
|
+
"TypeCollection" + {
|
43
|
+
:hostclasses => @hostclasses.keys,
|
44
|
+
:definitions => @definitions.keys,
|
45
|
+
:nodes => @nodes.keys,
|
46
|
+
:capability_mappings => @capability_mappings.keys,
|
47
|
+
:applications => @applications.keys,
|
48
|
+
:site => @sites[0] # todo, could be just a binary, this dumps the entire body (good while developing)
|
49
|
+
}.inspect
|
50
|
+
end
|
51
|
+
|
52
|
+
def <<(thing)
|
53
|
+
add(thing)
|
54
|
+
self
|
55
|
+
end
|
56
|
+
|
57
|
+
def add(instance)
|
58
|
+
# return a merged instance, or the given
|
59
|
+
result = catch(:merged) {
|
60
|
+
send("add_#{instance.type}", instance)
|
61
|
+
instance.resource_type_collection = self
|
62
|
+
instance
|
63
|
+
}
|
64
|
+
end
|
65
|
+
|
66
|
+
def add_hostclass(instance)
|
67
|
+
handle_hostclass_merge(instance)
|
68
|
+
dupe_check(instance, @hostclasses) { |dupe| "Class '#{instance.name}' is already defined#{dupe.error_context}; cannot redefine" }
|
69
|
+
dupe_check(instance, @definitions) { |dupe| "Definition '#{instance.name}' is already defined#{dupe.error_context}; cannot be redefined as a class" }
|
70
|
+
dupe_check(instance, @applications) { |dupe| "Application '#{instance.name}' is already defined#{dupe.error_context}; cannot be redefined as a class" }
|
71
|
+
|
72
|
+
@hostclasses[instance.name] = instance
|
73
|
+
instance
|
74
|
+
end
|
75
|
+
|
76
|
+
def handle_hostclass_merge(instance)
|
77
|
+
if instance.type == :hostclass && (other = @hostclasses[instance.name]) && other.type == :hostclass
|
78
|
+
unless instance.name == ''
|
79
|
+
case Puppet[:strict]
|
80
|
+
when :warning
|
81
|
+
Puppet.warning("Class '#{instance.name}' is already defined#{other.error_context}; cannot redefine at #{instance.file}:#{instance.line}")
|
82
|
+
when :error
|
83
|
+
# returning means a merge (with throw) is not performed, that will then trigger a duplication check with error.
|
84
|
+
return instance
|
85
|
+
end
|
86
|
+
end
|
87
|
+
other.merge(instance)
|
88
|
+
throw :merged, other
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
def hostclass(name)
|
93
|
+
@hostclasses[munge_name(name)]
|
94
|
+
end
|
95
|
+
|
96
|
+
def add_node(instance)
|
97
|
+
dupe_check(instance, @nodes) { |dupe| "Node '#{instance.name}' is already defined#{dupe.error_context}; cannot redefine" }
|
98
|
+
|
99
|
+
@node_list << instance
|
100
|
+
@nodes[instance.name] = instance
|
101
|
+
instance
|
102
|
+
end
|
103
|
+
|
104
|
+
def add_site(instance)
|
105
|
+
dupe_check_singleton(instance, @sites) { |dupe| "Site is already defined#{dupe.error_context}; cannot redefine" }
|
106
|
+
@sites << instance
|
107
|
+
instance
|
108
|
+
end
|
109
|
+
|
110
|
+
def site(_)
|
111
|
+
@sites[0]
|
112
|
+
end
|
113
|
+
|
114
|
+
def loader
|
115
|
+
@loader ||= Puppet::Parser::TypeLoader.new(environment)
|
116
|
+
end
|
117
|
+
|
118
|
+
def node(name)
|
119
|
+
name = munge_name(name)
|
120
|
+
|
121
|
+
if node = @nodes[name]
|
122
|
+
return node
|
123
|
+
end
|
124
|
+
|
125
|
+
@node_list.each do |n|
|
126
|
+
next unless n.name_is_regex?
|
127
|
+
return n if n.match(name)
|
128
|
+
end
|
129
|
+
nil
|
130
|
+
end
|
131
|
+
|
132
|
+
def node_exists?(name)
|
133
|
+
@nodes[munge_name(name)]
|
134
|
+
end
|
135
|
+
|
136
|
+
def nodes?
|
137
|
+
@nodes.length > 0
|
138
|
+
end
|
139
|
+
|
140
|
+
def add_definition(instance)
|
141
|
+
dupe_check(instance, @hostclasses) { |dupe| "'#{instance.name}' is already defined#{dupe.error_context} as a class; cannot redefine as a definition" }
|
142
|
+
dupe_check(instance, @definitions) { |dupe| "Definition '#{instance.name}' is already defined#{dupe.error_context}; cannot be redefined" }
|
143
|
+
dupe_check(instance, @applications) { |dupe| "'#{instance.name}' is already defined#{dupe.error_context} as an application; cannot be redefined" }
|
144
|
+
@definitions[instance.name] = instance
|
145
|
+
end
|
146
|
+
|
147
|
+
def add_capability_mapping(instance)
|
148
|
+
dupe_check(instance, @capability_mappings) { |dupe| "'#{instance.name}' is already defined#{dupe.error_context} as a class; cannot redefine as a mapping" }
|
149
|
+
@capability_mappings[instance.name] = instance
|
150
|
+
end
|
151
|
+
|
152
|
+
def definition(name)
|
153
|
+
@definitions[munge_name(name)]
|
154
|
+
end
|
155
|
+
|
156
|
+
def add_application(instance)
|
157
|
+
dupe_check(instance, @hostclasses) { |dupe| "'#{instance.name}' is already defined#{dupe.error_context} as a class; cannot redefine as an application" }
|
158
|
+
dupe_check(instance, @definitions) { |dupe| "'#{instance.name}' is already defined#{dupe.error_context} as a definition; cannot redefine as an application" }
|
159
|
+
dupe_check(instance, @applications) { |dupe| "'#{instance.name}' is already defined#{dupe.error_context} as an application; cannot be redefined" }
|
160
|
+
@applications[instance.name] = instance
|
161
|
+
end
|
162
|
+
|
163
|
+
def application(name)
|
164
|
+
@applications[munge_name(name)]
|
165
|
+
end
|
166
|
+
|
167
|
+
def find_node(name)
|
168
|
+
@nodes[munge_name(name)]
|
169
|
+
end
|
170
|
+
|
171
|
+
def find_site()
|
172
|
+
@sites[0]
|
173
|
+
end
|
174
|
+
|
175
|
+
def find_hostclass(name)
|
176
|
+
find_or_load(name, :hostclass)
|
177
|
+
end
|
178
|
+
|
179
|
+
def find_definition(name)
|
180
|
+
find_or_load(name, :definition)
|
181
|
+
end
|
182
|
+
|
183
|
+
def find_application(name)
|
184
|
+
find_or_load(name, :application)
|
185
|
+
end
|
186
|
+
|
187
|
+
# TODO: This implementation is wasteful as it creates a copy on each request
|
188
|
+
#
|
189
|
+
[:hostclasses, :nodes, :definitions, :capability_mappings,
|
190
|
+
:applications].each do |m|
|
191
|
+
define_method(m) do
|
192
|
+
instance_variable_get("@#{m}").dup
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
def parse_failed?
|
197
|
+
@parse_failed
|
198
|
+
end
|
199
|
+
|
200
|
+
def version
|
201
|
+
if !defined?(@version)
|
202
|
+
if environment.config_version.nil? || environment.config_version == ""
|
203
|
+
@version = Time.now.to_i
|
204
|
+
else
|
205
|
+
@version = Puppet::Util::Execution.execute([environment.config_version]).strip
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
@version
|
210
|
+
rescue Puppet::ExecutionFailure => e
|
211
|
+
raise Puppet::ParseError, "Execution of config_version command `#{environment.config_version}` failed: #{e.message}", e.backtrace
|
212
|
+
end
|
213
|
+
|
214
|
+
private
|
215
|
+
|
216
|
+
COLON_COLON = "::".freeze
|
217
|
+
|
218
|
+
# Resolve namespaces and find the given object. Autoload it if
|
219
|
+
# necessary.
|
220
|
+
def find_or_load(name, type)
|
221
|
+
# Name is always absolute, but may start with :: which must be removed
|
222
|
+
fqname = (name[0,2] == COLON_COLON ? name[2..-1] : name)
|
223
|
+
|
224
|
+
result = send(type, fqname)
|
225
|
+
unless result
|
226
|
+
if @notfound[ fqname ] && Puppet[ :ignoremissingtypes ]
|
227
|
+
# do not try to autoload if we already tried and it wasn't conclusive
|
228
|
+
# as this is a time consuming operation. Warn the user.
|
229
|
+
# Check first if debugging is on since the call to debug_once is expensive
|
230
|
+
if Puppet[:debug]
|
231
|
+
debug_once "Not attempting to load #{type} #{fqname} as this object was missing during a prior compilation"
|
232
|
+
end
|
233
|
+
else
|
234
|
+
fqname = munge_name(fqname)
|
235
|
+
result = loader.try_load_fqname(type, fqname)
|
236
|
+
@notfound[ fqname ] = result.nil?
|
237
|
+
end
|
238
|
+
end
|
239
|
+
result
|
240
|
+
end
|
241
|
+
|
242
|
+
def munge_name(name)
|
243
|
+
name.to_s.downcase
|
244
|
+
end
|
245
|
+
|
246
|
+
def dupe_check(instance, hash)
|
247
|
+
return unless dupe = hash[instance.name]
|
248
|
+
message = yield dupe
|
249
|
+
instance.fail Puppet::ParseError, message
|
250
|
+
end
|
251
|
+
|
252
|
+
def dupe_check_singleton(instance, set)
|
253
|
+
return if set.empty?
|
254
|
+
message = yield set[0]
|
255
|
+
instance.fail Puppet::ParseError, message
|
256
|
+
end
|
257
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,1455 @@
|
|
1
|
+
require 'puppet'
|
2
|
+
require 'getoptlong'
|
3
|
+
require 'puppet/util/watched_file'
|
4
|
+
require 'puppet/util/command_line/puppet_option_parser'
|
5
|
+
require 'forwardable'
|
6
|
+
require 'fileutils'
|
7
|
+
|
8
|
+
# The class for handling configuration files.
|
9
|
+
class Puppet::Settings
|
10
|
+
extend Forwardable
|
11
|
+
include Enumerable
|
12
|
+
|
13
|
+
require 'puppet/settings/errors'
|
14
|
+
require 'puppet/settings/base_setting'
|
15
|
+
require 'puppet/settings/string_setting'
|
16
|
+
require 'puppet/settings/enum_setting'
|
17
|
+
require 'puppet/settings/symbolic_enum_setting'
|
18
|
+
require 'puppet/settings/array_setting'
|
19
|
+
require 'puppet/settings/file_setting'
|
20
|
+
require 'puppet/settings/directory_setting'
|
21
|
+
require 'puppet/settings/file_or_directory_setting'
|
22
|
+
require 'puppet/settings/path_setting'
|
23
|
+
require 'puppet/settings/boolean_setting'
|
24
|
+
require 'puppet/settings/terminus_setting'
|
25
|
+
require 'puppet/settings/duration_setting'
|
26
|
+
require 'puppet/settings/ttl_setting'
|
27
|
+
require 'puppet/settings/priority_setting'
|
28
|
+
require 'puppet/settings/autosign_setting'
|
29
|
+
require 'puppet/settings/config_file'
|
30
|
+
require 'puppet/settings/value_translator'
|
31
|
+
require 'puppet/settings/environment_conf'
|
32
|
+
require 'puppet/settings/server_list_setting'
|
33
|
+
|
34
|
+
# local reference for convenience
|
35
|
+
PuppetOptionParser = Puppet::Util::CommandLine::PuppetOptionParser
|
36
|
+
|
37
|
+
attr_accessor :files
|
38
|
+
attr_reader :timer
|
39
|
+
|
40
|
+
# These are the settings that every app is required to specify; there are
|
41
|
+
# reasonable defaults defined in application.rb.
|
42
|
+
REQUIRED_APP_SETTINGS = [:logdir, :confdir, :vardir, :codedir]
|
43
|
+
|
44
|
+
# The acceptable sections of the puppet.conf configuration file.
|
45
|
+
ALLOWED_SECTION_NAMES = ['main', 'master', 'agent', 'user'].freeze
|
46
|
+
|
47
|
+
NONE = 'none'.freeze
|
48
|
+
|
49
|
+
# This method is intended for puppet internal use only; it is a convenience method that
|
50
|
+
# returns reasonable application default settings values for a given run_mode.
|
51
|
+
def self.app_defaults_for_run_mode(run_mode)
|
52
|
+
{
|
53
|
+
:name => run_mode.to_s,
|
54
|
+
:run_mode => run_mode.name,
|
55
|
+
:confdir => run_mode.conf_dir,
|
56
|
+
:codedir => run_mode.code_dir,
|
57
|
+
:vardir => run_mode.var_dir,
|
58
|
+
:rundir => run_mode.run_dir,
|
59
|
+
:logdir => run_mode.log_dir,
|
60
|
+
}
|
61
|
+
end
|
62
|
+
|
63
|
+
def self.default_certname()
|
64
|
+
hostname = hostname_fact
|
65
|
+
domain = domain_fact
|
66
|
+
if domain and domain != ""
|
67
|
+
fqdn = [hostname, domain].join(".")
|
68
|
+
else
|
69
|
+
fqdn = hostname
|
70
|
+
end
|
71
|
+
fqdn.to_s.gsub(/\.$/, '')
|
72
|
+
end
|
73
|
+
|
74
|
+
def self.hostname_fact()
|
75
|
+
Facter.value :hostname
|
76
|
+
end
|
77
|
+
|
78
|
+
def self.domain_fact()
|
79
|
+
Facter.value :domain
|
80
|
+
end
|
81
|
+
|
82
|
+
def self.default_config_file_name
|
83
|
+
"puppet.conf"
|
84
|
+
end
|
85
|
+
|
86
|
+
# Create a new collection of config settings.
|
87
|
+
def initialize
|
88
|
+
@config = {}
|
89
|
+
@shortnames = {}
|
90
|
+
|
91
|
+
@created = []
|
92
|
+
|
93
|
+
# Keep track of set values.
|
94
|
+
@value_sets = {
|
95
|
+
:cli => Values.new(:cli, @config),
|
96
|
+
:memory => Values.new(:memory, @config),
|
97
|
+
:application_defaults => Values.new(:application_defaults, @config),
|
98
|
+
:overridden_defaults => Values.new(:overridden_defaults, @config),
|
99
|
+
}
|
100
|
+
@configuration_file = nil
|
101
|
+
|
102
|
+
# And keep a per-environment cache
|
103
|
+
@cache = Hash.new { |hash, key| hash[key] = {} }
|
104
|
+
@values = Hash.new { |hash, key| hash[key] = {} }
|
105
|
+
|
106
|
+
# The list of sections we've used.
|
107
|
+
@used = []
|
108
|
+
|
109
|
+
@hooks_to_call_on_application_initialization = []
|
110
|
+
@deprecated_setting_names = []
|
111
|
+
@deprecated_settings_that_have_been_configured = []
|
112
|
+
|
113
|
+
@translate = Puppet::Settings::ValueTranslator.new
|
114
|
+
@config_file_parser = Puppet::Settings::ConfigFile.new(@translate)
|
115
|
+
end
|
116
|
+
|
117
|
+
# Retrieve a config value
|
118
|
+
# @param param [Symbol] the name of the setting
|
119
|
+
# @return [Object] the value of the setting
|
120
|
+
# @api private
|
121
|
+
def [](param)
|
122
|
+
if @deprecated_setting_names.include?(param)
|
123
|
+
issue_deprecation_warning(setting(param), "Accessing '#{param}' as a setting is deprecated.")
|
124
|
+
end
|
125
|
+
value(param)
|
126
|
+
end
|
127
|
+
|
128
|
+
# Set a config value. This doesn't set the defaults, it sets the value itself.
|
129
|
+
# @param param [Symbol] the name of the setting
|
130
|
+
# @param value [Object] the new value of the setting
|
131
|
+
# @api private
|
132
|
+
def []=(param, value)
|
133
|
+
if @deprecated_setting_names.include?(param)
|
134
|
+
issue_deprecation_warning(setting(param), "Modifying '#{param}' as a setting is deprecated.")
|
135
|
+
end
|
136
|
+
@value_sets[:memory].set(param, value)
|
137
|
+
unsafe_flush_cache
|
138
|
+
end
|
139
|
+
|
140
|
+
# Create a new default value for the given setting. The default overrides are
|
141
|
+
# higher precedence than the defaults given in defaults.rb, but lower
|
142
|
+
# precedence than any other values for the setting. This allows one setting
|
143
|
+
# `a` to change the default of setting `b`, but still allow a user to provide
|
144
|
+
# a value for setting `b`.
|
145
|
+
#
|
146
|
+
# @param param [Symbol] the name of the setting
|
147
|
+
# @param value [Object] the new default value for the setting
|
148
|
+
# @api private
|
149
|
+
def override_default(param, value)
|
150
|
+
@value_sets[:overridden_defaults].set(param, value)
|
151
|
+
unsafe_flush_cache
|
152
|
+
end
|
153
|
+
|
154
|
+
# Generate the list of valid arguments, in a format that GetoptLong can
|
155
|
+
# understand, and add them to the passed option list.
|
156
|
+
def addargs(options)
|
157
|
+
# Add all of the settings as valid options.
|
158
|
+
self.each { |name, setting|
|
159
|
+
setting.getopt_args.each { |args| options << args }
|
160
|
+
}
|
161
|
+
|
162
|
+
options
|
163
|
+
end
|
164
|
+
|
165
|
+
# Generate the list of valid arguments, in a format that OptionParser can
|
166
|
+
# understand, and add them to the passed option list.
|
167
|
+
def optparse_addargs(options)
|
168
|
+
# Add all of the settings as valid options.
|
169
|
+
self.each { |name, setting|
|
170
|
+
options << setting.optparse_args
|
171
|
+
}
|
172
|
+
|
173
|
+
options
|
174
|
+
end
|
175
|
+
|
176
|
+
# Is our setting a boolean setting?
|
177
|
+
def boolean?(param)
|
178
|
+
param = param.to_sym
|
179
|
+
@config.include?(param) and @config[param].kind_of?(BooleanSetting)
|
180
|
+
end
|
181
|
+
|
182
|
+
# Remove all set values, potentially skipping cli values.
|
183
|
+
def clear
|
184
|
+
unsafe_clear
|
185
|
+
end
|
186
|
+
|
187
|
+
# Remove all set values, potentially skipping cli values.
|
188
|
+
def unsafe_clear(clear_cli = true, clear_application_defaults = false)
|
189
|
+
if clear_application_defaults
|
190
|
+
@value_sets[:application_defaults] = Values.new(:application_defaults, @config)
|
191
|
+
@app_defaults_initialized = false
|
192
|
+
end
|
193
|
+
|
194
|
+
if clear_cli
|
195
|
+
@value_sets[:cli] = Values.new(:cli, @config)
|
196
|
+
|
197
|
+
# Only clear the 'used' values if we were explicitly asked to clear out
|
198
|
+
# :cli values; otherwise, it may be just a config file reparse,
|
199
|
+
# and we want to retain this cli values.
|
200
|
+
@used = []
|
201
|
+
end
|
202
|
+
|
203
|
+
@value_sets[:memory] = Values.new(:memory, @config)
|
204
|
+
@value_sets[:overridden_defaults] = Values.new(:overridden_defaults, @config)
|
205
|
+
|
206
|
+
@deprecated_settings_that_have_been_configured.clear
|
207
|
+
@values.clear
|
208
|
+
@cache.clear
|
209
|
+
end
|
210
|
+
private :unsafe_clear
|
211
|
+
|
212
|
+
# Clears all cached settings for a particular environment to ensure
|
213
|
+
# that changes to environment.conf are reflected in the settings if
|
214
|
+
# the environment timeout has expired.
|
215
|
+
#
|
216
|
+
# param [String, Symbol] environment the name of environment to clear settings for
|
217
|
+
#
|
218
|
+
# @api private
|
219
|
+
def clear_environment_settings(environment)
|
220
|
+
|
221
|
+
if environment.nil?
|
222
|
+
return
|
223
|
+
end
|
224
|
+
|
225
|
+
@cache[environment.to_sym].clear
|
226
|
+
@values[environment.to_sym] = {}
|
227
|
+
end
|
228
|
+
|
229
|
+
# Clear @cache, @used and the Environment.
|
230
|
+
#
|
231
|
+
# Whenever an object is returned by Settings, a copy is stored in @cache.
|
232
|
+
# As long as Setting attributes that determine the content of returned
|
233
|
+
# objects remain unchanged, Settings can keep returning objects from @cache
|
234
|
+
# without re-fetching or re-generating them.
|
235
|
+
#
|
236
|
+
# Whenever a Settings attribute changes, such as @values or @preferred_run_mode,
|
237
|
+
# this method must be called to clear out the caches so that updated
|
238
|
+
# objects will be returned.
|
239
|
+
def flush_cache
|
240
|
+
unsafe_flush_cache
|
241
|
+
end
|
242
|
+
|
243
|
+
def unsafe_flush_cache
|
244
|
+
clearused
|
245
|
+
end
|
246
|
+
private :unsafe_flush_cache
|
247
|
+
|
248
|
+
def clearused
|
249
|
+
@cache.clear
|
250
|
+
@used = []
|
251
|
+
end
|
252
|
+
|
253
|
+
def global_defaults_initialized?()
|
254
|
+
@global_defaults_initialized
|
255
|
+
end
|
256
|
+
|
257
|
+
def initialize_global_settings(args = [])
|
258
|
+
raise Puppet::DevError, "Attempting to initialize global default settings more than once!" if global_defaults_initialized?
|
259
|
+
|
260
|
+
# The first two phases of the lifecycle of a puppet application are:
|
261
|
+
# 1) Parse the command line options and handle any of them that are
|
262
|
+
# registered, defined "global" puppet settings (mostly from defaults.rb).
|
263
|
+
# 2) Parse the puppet config file(s).
|
264
|
+
|
265
|
+
parse_global_options(args)
|
266
|
+
parse_config_files
|
267
|
+
|
268
|
+
@global_defaults_initialized = true
|
269
|
+
end
|
270
|
+
|
271
|
+
# This method is called during application bootstrapping. It is responsible for parsing all of the
|
272
|
+
# command line options and initializing the settings accordingly.
|
273
|
+
#
|
274
|
+
# It will ignore options that are not defined in the global puppet settings list, because they may
|
275
|
+
# be valid options for the specific application that we are about to launch... however, at this point
|
276
|
+
# in the bootstrapping lifecycle, we don't yet know what that application is.
|
277
|
+
def parse_global_options(args)
|
278
|
+
# Create an option parser
|
279
|
+
option_parser = PuppetOptionParser.new
|
280
|
+
option_parser.ignore_invalid_options = true
|
281
|
+
|
282
|
+
# Add all global options to it.
|
283
|
+
self.optparse_addargs([]).each do |option|
|
284
|
+
option_parser.on(*option) do |arg|
|
285
|
+
opt, val = Puppet::Settings.clean_opt(option[0], arg)
|
286
|
+
handlearg(opt, val)
|
287
|
+
end
|
288
|
+
end
|
289
|
+
|
290
|
+
option_parser.on('--run_mode',
|
291
|
+
"The effective 'run mode' of the application: master, agent, or user.",
|
292
|
+
:REQUIRED) do |arg|
|
293
|
+
Puppet.settings.preferred_run_mode = arg
|
294
|
+
end
|
295
|
+
|
296
|
+
option_parser.parse(args)
|
297
|
+
|
298
|
+
# remove run_mode options from the arguments so that later parses don't think
|
299
|
+
# it is an unknown option.
|
300
|
+
while option_index = args.index('--run_mode') do
|
301
|
+
args.delete_at option_index
|
302
|
+
args.delete_at option_index
|
303
|
+
end
|
304
|
+
args.reject! { |arg| arg.start_with? '--run_mode=' }
|
305
|
+
end
|
306
|
+
private :parse_global_options
|
307
|
+
|
308
|
+
# A utility method (public, is used by application.rb and perhaps elsewhere) that munges a command-line
|
309
|
+
# option string into the format that Puppet.settings expects. (This mostly has to deal with handling the
|
310
|
+
# "no-" prefix on flag/boolean options).
|
311
|
+
#
|
312
|
+
# @param [String] opt the command line option that we are munging
|
313
|
+
# @param [String, TrueClass, FalseClass] val the value for the setting (as determined by the OptionParser)
|
314
|
+
def self.clean_opt(opt, val)
|
315
|
+
# rewrite --[no-]option to --no-option if that's what was given
|
316
|
+
if opt =~ /\[no-\]/ and !val
|
317
|
+
opt = opt.gsub(/\[no-\]/,'no-')
|
318
|
+
end
|
319
|
+
# otherwise remove the [no-] prefix to not confuse everybody
|
320
|
+
opt = opt.gsub(/\[no-\]/, '')
|
321
|
+
[opt, val]
|
322
|
+
end
|
323
|
+
|
324
|
+
|
325
|
+
def app_defaults_initialized?
|
326
|
+
@app_defaults_initialized
|
327
|
+
end
|
328
|
+
|
329
|
+
def initialize_app_defaults(app_defaults)
|
330
|
+
REQUIRED_APP_SETTINGS.each do |key|
|
331
|
+
raise SettingsError, "missing required app default setting '#{key}'" unless app_defaults.has_key?(key)
|
332
|
+
end
|
333
|
+
|
334
|
+
app_defaults.each do |key, value|
|
335
|
+
if key == :run_mode
|
336
|
+
self.preferred_run_mode = value
|
337
|
+
else
|
338
|
+
@value_sets[:application_defaults].set(key, value)
|
339
|
+
unsafe_flush_cache
|
340
|
+
end
|
341
|
+
end
|
342
|
+
apply_metadata
|
343
|
+
call_hooks_deferred_to_application_initialization
|
344
|
+
issue_deprecations
|
345
|
+
|
346
|
+
REQUIRED_APP_SETTINGS.each do |key|
|
347
|
+
create_ancestors(Puppet[key])
|
348
|
+
end
|
349
|
+
|
350
|
+
@app_defaults_initialized = true
|
351
|
+
end
|
352
|
+
|
353
|
+
# Create ancestor directories.
|
354
|
+
#
|
355
|
+
# @param dir [String] absolute path for a required application default directory
|
356
|
+
# @api private
|
357
|
+
|
358
|
+
def create_ancestors(dir)
|
359
|
+
parent_dir = File.dirname(dir)
|
360
|
+
|
361
|
+
if !File.exist?(parent_dir)
|
362
|
+
FileUtils.mkdir_p(parent_dir)
|
363
|
+
end
|
364
|
+
end
|
365
|
+
private :create_ancestors
|
366
|
+
|
367
|
+
def call_hooks_deferred_to_application_initialization(options = {})
|
368
|
+
@hooks_to_call_on_application_initialization.each do |setting|
|
369
|
+
begin
|
370
|
+
setting.handle(self.value(setting.name))
|
371
|
+
rescue InterpolationError => err
|
372
|
+
raise InterpolationError, err, err.backtrace unless options[:ignore_interpolation_dependency_errors]
|
373
|
+
#swallow. We're not concerned if we can't call hooks because dependencies don't exist yet
|
374
|
+
#we'll get another chance after application defaults are initialized
|
375
|
+
end
|
376
|
+
end
|
377
|
+
end
|
378
|
+
private :call_hooks_deferred_to_application_initialization
|
379
|
+
|
380
|
+
# Return a value's description.
|
381
|
+
def description(name)
|
382
|
+
if obj = @config[name.to_sym]
|
383
|
+
obj.desc
|
384
|
+
else
|
385
|
+
nil
|
386
|
+
end
|
387
|
+
end
|
388
|
+
|
389
|
+
def_delegators :@config, :each, :each_pair, :each_key
|
390
|
+
|
391
|
+
# Iterate over each section name.
|
392
|
+
def eachsection
|
393
|
+
yielded = []
|
394
|
+
@config.each_value do |object|
|
395
|
+
section = object.section
|
396
|
+
unless yielded.include? section
|
397
|
+
yield section
|
398
|
+
yielded << section
|
399
|
+
end
|
400
|
+
end
|
401
|
+
end
|
402
|
+
|
403
|
+
# Returns a given setting by name
|
404
|
+
# @param name [Symbol] The name of the setting to fetch
|
405
|
+
# @return [Puppet::Settings::BaseSetting] The setting object
|
406
|
+
def setting(param)
|
407
|
+
param = param.to_sym
|
408
|
+
@config[param]
|
409
|
+
end
|
410
|
+
|
411
|
+
# Handle a command-line argument.
|
412
|
+
def handlearg(opt, value = nil)
|
413
|
+
@cache.clear
|
414
|
+
|
415
|
+
if value.is_a?(FalseClass)
|
416
|
+
value = "false"
|
417
|
+
elsif value.is_a?(TrueClass)
|
418
|
+
value = "true"
|
419
|
+
end
|
420
|
+
|
421
|
+
value &&= @translate[value]
|
422
|
+
str = opt.sub(/^--/,'')
|
423
|
+
|
424
|
+
bool = true
|
425
|
+
newstr = str.sub(/^no-/, '')
|
426
|
+
if newstr != str
|
427
|
+
str = newstr
|
428
|
+
bool = false
|
429
|
+
end
|
430
|
+
str = str.intern
|
431
|
+
|
432
|
+
if @config[str].is_a?(Puppet::Settings::BooleanSetting)
|
433
|
+
if value == "" or value.nil?
|
434
|
+
value = bool
|
435
|
+
end
|
436
|
+
end
|
437
|
+
|
438
|
+
if s = @config[str]
|
439
|
+
@deprecated_settings_that_have_been_configured << s if s.completely_deprecated?
|
440
|
+
end
|
441
|
+
|
442
|
+
@value_sets[:cli].set(str, value)
|
443
|
+
unsafe_flush_cache
|
444
|
+
end
|
445
|
+
|
446
|
+
def include?(name)
|
447
|
+
name = name.intern if name.is_a? String
|
448
|
+
@config.include?(name)
|
449
|
+
end
|
450
|
+
|
451
|
+
# Prints the contents of a config file with the available config settings, or it
|
452
|
+
# prints a single value of a config setting.
|
453
|
+
def print_config_options
|
454
|
+
env = value(:environment)
|
455
|
+
val = value(:configprint)
|
456
|
+
if val == "all"
|
457
|
+
hash = {}
|
458
|
+
each do |name, obj|
|
459
|
+
val = value(name,env)
|
460
|
+
val = val.inspect if val == ""
|
461
|
+
hash[name] = val
|
462
|
+
end
|
463
|
+
hash.sort { |a,b| a[0].to_s <=> b[0].to_s }.each do |name, v|
|
464
|
+
puts "#{name} = #{v}"
|
465
|
+
end
|
466
|
+
else
|
467
|
+
val.split(/\s*,\s*/).sort.each do |v|
|
468
|
+
if include?(v)
|
469
|
+
#if there is only one value, just print it for back compatibility
|
470
|
+
if v == val
|
471
|
+
puts value(val,env)
|
472
|
+
break
|
473
|
+
end
|
474
|
+
puts "#{v} = #{value(v,env)}"
|
475
|
+
else
|
476
|
+
puts "invalid setting: #{v}"
|
477
|
+
return false
|
478
|
+
end
|
479
|
+
end
|
480
|
+
end
|
481
|
+
true
|
482
|
+
end
|
483
|
+
|
484
|
+
def generate_config
|
485
|
+
puts to_config
|
486
|
+
true
|
487
|
+
end
|
488
|
+
|
489
|
+
def generate_manifest
|
490
|
+
puts to_manifest
|
491
|
+
true
|
492
|
+
end
|
493
|
+
|
494
|
+
def print_configs
|
495
|
+
return print_config_options if value(:configprint) != ""
|
496
|
+
return generate_config if value(:genconfig)
|
497
|
+
generate_manifest if value(:genmanifest)
|
498
|
+
end
|
499
|
+
|
500
|
+
def print_configs?
|
501
|
+
(value(:configprint) != "" || value(:genconfig) || value(:genmanifest)) && true
|
502
|
+
end
|
503
|
+
|
504
|
+
# The currently configured run mode that is preferred for constructing the application configuration.
|
505
|
+
def preferred_run_mode
|
506
|
+
@preferred_run_mode_name || :user
|
507
|
+
end
|
508
|
+
|
509
|
+
# PRIVATE! This only exists because we need a hook to validate the run mode when it's being set, and
|
510
|
+
# it should never, ever, ever, ever be called from outside of this file.
|
511
|
+
# This method is also called when --run_mode MODE is used on the command line to set the default
|
512
|
+
#
|
513
|
+
# @param mode [String|Symbol] the name of the mode to have in effect
|
514
|
+
# @api private
|
515
|
+
def preferred_run_mode=(mode)
|
516
|
+
mode = mode.to_s.downcase.intern
|
517
|
+
raise ValidationError, "Invalid run mode '#{mode}'" unless [:master, :agent, :user].include?(mode)
|
518
|
+
@preferred_run_mode_name = mode
|
519
|
+
# Changing the run mode has far-reaching consequences. Flush any cached
|
520
|
+
# settings so they will be re-generated.
|
521
|
+
flush_cache
|
522
|
+
mode
|
523
|
+
end
|
524
|
+
|
525
|
+
def parse_config(text, file = "text")
|
526
|
+
begin
|
527
|
+
data = @config_file_parser.parse_file(file, text, ALLOWED_SECTION_NAMES)
|
528
|
+
rescue => detail
|
529
|
+
Puppet.log_exception(detail, "Could not parse #{file}: #{detail}")
|
530
|
+
return
|
531
|
+
end
|
532
|
+
|
533
|
+
# If we get here and don't have any data, we just return and don't muck with the current state of the world.
|
534
|
+
return if data.nil?
|
535
|
+
|
536
|
+
# If we get here then we have some data, so we need to clear out any
|
537
|
+
# previous settings that may have come from config files.
|
538
|
+
unsafe_clear(false, false)
|
539
|
+
|
540
|
+
# Screen settings which have been deprecated and removed from puppet.conf
|
541
|
+
# but are still valid on the command line and/or in environment.conf
|
542
|
+
screen_non_puppet_conf_settings(data)
|
543
|
+
|
544
|
+
# Make note of deprecated settings we will warn about later in initialization
|
545
|
+
record_deprecations_from_puppet_conf(data)
|
546
|
+
|
547
|
+
# And now we can repopulate with the values from our last parsing of the config files.
|
548
|
+
@configuration_file = data
|
549
|
+
|
550
|
+
# Determine our environment, if we have one.
|
551
|
+
if @config[:environment]
|
552
|
+
env = self.value(:environment).to_sym
|
553
|
+
else
|
554
|
+
env = NONE
|
555
|
+
end
|
556
|
+
|
557
|
+
# Call any hooks we should be calling.
|
558
|
+
value_sets = value_sets_for(env, preferred_run_mode)
|
559
|
+
@config.values.select(&:has_hook?).each do |setting|
|
560
|
+
value_sets.each do |source|
|
561
|
+
if source.include?(setting.name)
|
562
|
+
# We still have to use value to retrieve the value, since
|
563
|
+
# we want the fully interpolated value, not $vardir/lib or whatever.
|
564
|
+
# This results in extra work, but so few of the settings
|
565
|
+
# will have associated hooks that it ends up being less work this
|
566
|
+
# way overall.
|
567
|
+
if setting.call_hook_on_initialize?
|
568
|
+
@hooks_to_call_on_application_initialization |= [ setting ]
|
569
|
+
else
|
570
|
+
setting.handle(ChainedValues.new(
|
571
|
+
preferred_run_mode,
|
572
|
+
env,
|
573
|
+
value_sets,
|
574
|
+
@config).interpolate(setting.name))
|
575
|
+
end
|
576
|
+
break
|
577
|
+
end
|
578
|
+
end
|
579
|
+
end
|
580
|
+
|
581
|
+
call_hooks_deferred_to_application_initialization :ignore_interpolation_dependency_errors => true
|
582
|
+
apply_metadata
|
583
|
+
end
|
584
|
+
|
585
|
+
# Parse the configuration file. Just provides thread safety.
|
586
|
+
def parse_config_files
|
587
|
+
file = which_configuration_file
|
588
|
+
if Puppet::FileSystem.exist?(file)
|
589
|
+
begin
|
590
|
+
text = read_file(file)
|
591
|
+
rescue => detail
|
592
|
+
Puppet.log_exception(detail, "Could not load #{file}: #{detail}")
|
593
|
+
return
|
594
|
+
end
|
595
|
+
else
|
596
|
+
return
|
597
|
+
end
|
598
|
+
|
599
|
+
parse_config(text, file)
|
600
|
+
end
|
601
|
+
private :parse_config_files
|
602
|
+
|
603
|
+
def main_config_file
|
604
|
+
if explicit_config_file?
|
605
|
+
return self[:config]
|
606
|
+
else
|
607
|
+
return File.join(Puppet::Util::RunMode[:master].conf_dir, config_file_name)
|
608
|
+
end
|
609
|
+
end
|
610
|
+
private :main_config_file
|
611
|
+
|
612
|
+
def user_config_file
|
613
|
+
return File.join(Puppet::Util::RunMode[:user].conf_dir, config_file_name)
|
614
|
+
end
|
615
|
+
private :user_config_file
|
616
|
+
|
617
|
+
# This method is here to get around some life-cycle issues. We need to be
|
618
|
+
# able to determine the config file name before the settings / defaults are
|
619
|
+
# fully loaded. However, we also need to respect any overrides of this value
|
620
|
+
# that the user may have specified on the command line.
|
621
|
+
#
|
622
|
+
# The easiest way to do this is to attempt to read the setting, and if we
|
623
|
+
# catch an error (meaning that it hasn't been set yet), we'll fall back to
|
624
|
+
# the default value.
|
625
|
+
def config_file_name
|
626
|
+
begin
|
627
|
+
return self[:config_file_name] if self[:config_file_name]
|
628
|
+
rescue SettingsError
|
629
|
+
# This just means that the setting wasn't explicitly set on the command line, so we will ignore it and
|
630
|
+
# fall through to the default name.
|
631
|
+
end
|
632
|
+
return self.class.default_config_file_name
|
633
|
+
end
|
634
|
+
private :config_file_name
|
635
|
+
|
636
|
+
def apply_metadata
|
637
|
+
# We have to do it in the reverse of the search path,
|
638
|
+
# because multiple sections could set the same value
|
639
|
+
# and I'm too lazy to only set the metadata once.
|
640
|
+
if @configuration_file
|
641
|
+
searchpath(nil, preferred_run_mode).reverse_each do |source|
|
642
|
+
if source.type == :section && section = @configuration_file.sections[source.name]
|
643
|
+
apply_metadata_from_section(section)
|
644
|
+
end
|
645
|
+
end
|
646
|
+
end
|
647
|
+
end
|
648
|
+
private :apply_metadata
|
649
|
+
|
650
|
+
def apply_metadata_from_section(section)
|
651
|
+
section.settings.each do |setting|
|
652
|
+
if setting.has_metadata? && type = @config[setting.name]
|
653
|
+
type.set_meta(setting.meta)
|
654
|
+
end
|
655
|
+
end
|
656
|
+
end
|
657
|
+
|
658
|
+
SETTING_TYPES = {
|
659
|
+
:string => StringSetting,
|
660
|
+
:file => FileSetting,
|
661
|
+
:directory => DirectorySetting,
|
662
|
+
:file_or_directory => FileOrDirectorySetting,
|
663
|
+
:path => PathSetting,
|
664
|
+
:boolean => BooleanSetting,
|
665
|
+
:terminus => TerminusSetting,
|
666
|
+
:duration => DurationSetting,
|
667
|
+
:ttl => TTLSetting,
|
668
|
+
:array => ArraySetting,
|
669
|
+
:enum => EnumSetting,
|
670
|
+
:symbolic_enum => SymbolicEnumSetting,
|
671
|
+
:priority => PrioritySetting,
|
672
|
+
:autosign => AutosignSetting,
|
673
|
+
:server_list => ServerListSetting
|
674
|
+
}
|
675
|
+
|
676
|
+
# Create a new setting. The value is passed in because it's used to determine
|
677
|
+
# what kind of setting we're creating, but the value itself might be either
|
678
|
+
# a default or a value, so we can't actually assign it.
|
679
|
+
#
|
680
|
+
# See #define_settings for documentation on the legal values for the ":type" option.
|
681
|
+
def newsetting(hash)
|
682
|
+
klass = nil
|
683
|
+
hash[:section] = hash[:section].to_sym if hash[:section]
|
684
|
+
|
685
|
+
if type = hash[:type]
|
686
|
+
unless klass = SETTING_TYPES[type]
|
687
|
+
raise ArgumentError, "Invalid setting type '#{type}'"
|
688
|
+
end
|
689
|
+
hash.delete(:type)
|
690
|
+
else
|
691
|
+
# The only implicit typing we still do for settings is to fall back to "String" type if they didn't explicitly
|
692
|
+
# specify a type. Personally I'd like to get rid of this too, and make the "type" option mandatory... but
|
693
|
+
# there was a little resistance to taking things quite that far for now. --cprice 2012-03-19
|
694
|
+
klass = StringSetting
|
695
|
+
end
|
696
|
+
hash[:settings] = self
|
697
|
+
setting = klass.new(hash)
|
698
|
+
|
699
|
+
setting
|
700
|
+
end
|
701
|
+
|
702
|
+
# This has to be private, because it doesn't add the settings to @config
|
703
|
+
private :newsetting
|
704
|
+
|
705
|
+
# Iterate across all of the objects in a given section.
|
706
|
+
def persection(section)
|
707
|
+
section = section.to_sym
|
708
|
+
self.each { |name, obj|
|
709
|
+
if obj.section == section
|
710
|
+
yield obj
|
711
|
+
end
|
712
|
+
}
|
713
|
+
end
|
714
|
+
|
715
|
+
# Reparse our config file, if necessary.
|
716
|
+
def reparse_config_files
|
717
|
+
if files
|
718
|
+
if filename = any_files_changed?
|
719
|
+
Puppet.notice "Config file #{filename} changed; triggering re-parse of all config files."
|
720
|
+
parse_config_files
|
721
|
+
reuse
|
722
|
+
end
|
723
|
+
end
|
724
|
+
end
|
725
|
+
|
726
|
+
def files
|
727
|
+
return @files if @files
|
728
|
+
@files = []
|
729
|
+
[main_config_file, user_config_file].each do |path|
|
730
|
+
if Puppet::FileSystem.exist?(path)
|
731
|
+
@files << Puppet::Util::WatchedFile.new(path)
|
732
|
+
end
|
733
|
+
end
|
734
|
+
@files
|
735
|
+
end
|
736
|
+
private :files
|
737
|
+
|
738
|
+
# Checks to see if any of the config files have been modified
|
739
|
+
# @return the filename of the first file that is found to have changed, or
|
740
|
+
# nil if no files have changed
|
741
|
+
def any_files_changed?
|
742
|
+
files.each do |file|
|
743
|
+
return file.to_str if file.changed?
|
744
|
+
end
|
745
|
+
nil
|
746
|
+
end
|
747
|
+
private :any_files_changed?
|
748
|
+
|
749
|
+
def reuse
|
750
|
+
return unless defined?(@used)
|
751
|
+
new = @used
|
752
|
+
@used = []
|
753
|
+
self.use(*new)
|
754
|
+
end
|
755
|
+
|
756
|
+
class SearchPathElement < Struct.new(:name, :type); end
|
757
|
+
|
758
|
+
# The order in which to search for values, without defaults.
|
759
|
+
#
|
760
|
+
# @param environment [String,Symbol] symbolic reference to an environment name
|
761
|
+
# @param run_mode [Symbol] symbolic reference to a Puppet run mode
|
762
|
+
# @return [Array<SearchPathElement>]
|
763
|
+
# @api private
|
764
|
+
def configsearchpath(environment = nil, run_mode = preferred_run_mode)
|
765
|
+
searchpath = [
|
766
|
+
SearchPathElement.new(:memory, :values),
|
767
|
+
SearchPathElement.new(:cli, :values),
|
768
|
+
]
|
769
|
+
searchpath << SearchPathElement.new(environment.intern, :environment) if environment
|
770
|
+
searchpath << SearchPathElement.new(run_mode, :section) if run_mode
|
771
|
+
searchpath << SearchPathElement.new(:main, :section)
|
772
|
+
end
|
773
|
+
|
774
|
+
# The order in which to search for values.
|
775
|
+
#
|
776
|
+
# @param environment [String,Symbol] symbolic reference to an environment name
|
777
|
+
# @param run_mode [Symbol] symbolic reference to a Puppet run mode
|
778
|
+
# @return [Array<SearchPathElement>]
|
779
|
+
# @api private
|
780
|
+
def searchpath(environment = nil, run_mode = preferred_run_mode)
|
781
|
+
searchpath = configsearchpath(environment, run_mode)
|
782
|
+
searchpath << SearchPathElement.new(:application_defaults, :values)
|
783
|
+
searchpath << SearchPathElement.new(:overridden_defaults, :values)
|
784
|
+
end
|
785
|
+
|
786
|
+
def service_user_available?
|
787
|
+
return @service_user_available if defined?(@service_user_available)
|
788
|
+
|
789
|
+
if self[:user]
|
790
|
+
user = Puppet::Type.type(:user).new :name => self[:user], :audit => :ensure
|
791
|
+
|
792
|
+
@service_user_available = user.exists?
|
793
|
+
else
|
794
|
+
@service_user_available = false
|
795
|
+
end
|
796
|
+
end
|
797
|
+
|
798
|
+
def service_group_available?
|
799
|
+
return @service_group_available if defined?(@service_group_available)
|
800
|
+
|
801
|
+
if self[:group]
|
802
|
+
group = Puppet::Type.type(:group).new :name => self[:group], :audit => :ensure
|
803
|
+
|
804
|
+
@service_group_available = group.exists?
|
805
|
+
else
|
806
|
+
@service_group_available = false
|
807
|
+
end
|
808
|
+
end
|
809
|
+
|
810
|
+
# Allow later inspection to determine if the setting was set on the
|
811
|
+
# command line, or through some other code path. Used for the
|
812
|
+
# `dns_alt_names` option during cert generate. --daniel 2011-10-18
|
813
|
+
def set_by_cli?(param)
|
814
|
+
param = param.to_sym
|
815
|
+
!@value_sets[:cli].lookup(param).nil?
|
816
|
+
end
|
817
|
+
|
818
|
+
# Get values from a search path entry.
|
819
|
+
# @api private
|
820
|
+
def searchpath_values(source)
|
821
|
+
case source.type
|
822
|
+
when :values
|
823
|
+
@value_sets[source.name]
|
824
|
+
when :section
|
825
|
+
if @configuration_file && section = @configuration_file.sections[source.name]
|
826
|
+
ValuesFromSection.new(source.name, section)
|
827
|
+
end
|
828
|
+
when :environment
|
829
|
+
ValuesFromEnvironmentConf.new(source.name)
|
830
|
+
else
|
831
|
+
raise(Puppet::DevError, "Unknown searchpath case: #{source.type} for the #{source} settings path element.")
|
832
|
+
end
|
833
|
+
end
|
834
|
+
|
835
|
+
# Allow later inspection to determine if the setting was set by user
|
836
|
+
# config, rather than a default setting.
|
837
|
+
def set_by_config?(param, environment = nil, run_mode = preferred_run_mode)
|
838
|
+
param = param.to_sym
|
839
|
+
configsearchpath(environment, run_mode).any? do |source|
|
840
|
+
if vals = searchpath_values(source)
|
841
|
+
vals.lookup(param)
|
842
|
+
end
|
843
|
+
end
|
844
|
+
end
|
845
|
+
|
846
|
+
# Patches the value for a param in a section.
|
847
|
+
# This method is required to support the use case of unifying --dns-alt-names and
|
848
|
+
# --dns_alt_names in the certificate face. Ideally this should be cleaned up.
|
849
|
+
# See PUP-3684 for more information.
|
850
|
+
# For regular use of setting a value, the method `[]=` should be used.
|
851
|
+
# @api private
|
852
|
+
#
|
853
|
+
def patch_value(param, value, type)
|
854
|
+
if @value_sets[type]
|
855
|
+
@value_sets[type].set(param, value)
|
856
|
+
unsafe_flush_cache
|
857
|
+
end
|
858
|
+
end
|
859
|
+
|
860
|
+
# Define a group of settings.
|
861
|
+
#
|
862
|
+
# @param [Symbol] section a symbol to use for grouping multiple settings together into a conceptual unit. This value
|
863
|
+
# (and the conceptual separation) is not used very often; the main place where it will have a potential impact
|
864
|
+
# is when code calls Settings#use method. See docs on that method for further details, but basically that method
|
865
|
+
# just attempts to do any preparation that may be necessary before code attempts to leverage the value of a particular
|
866
|
+
# setting. This has the most impact for file/directory settings, where #use will attempt to "ensure" those
|
867
|
+
# files / directories.
|
868
|
+
# @param [Hash[Hash]] defs the settings to be defined. This argument is a hash of hashes; each key should be a symbol,
|
869
|
+
# which is basically the name of the setting that you are defining. The value should be another hash that specifies
|
870
|
+
# the parameters for the particular setting. Legal values include:
|
871
|
+
# [:default] => not required; this is the value for the setting if no other value is specified (via cli, config file, etc.)
|
872
|
+
# For string settings this may include "variables", demarcated with $ or ${} which will be interpolated with values of other settings.
|
873
|
+
# The default value may also be a Proc that will be called only once to evaluate the default when the setting's value is retrieved.
|
874
|
+
# [:desc] => required; a description of the setting, used in documentation / help generation
|
875
|
+
# [:type] => not required, but highly encouraged! This specifies the data type that the setting represents. If
|
876
|
+
# you do not specify it, it will default to "string". Legal values include:
|
877
|
+
# :string - A generic string setting
|
878
|
+
# :boolean - A boolean setting; values are expected to be "true" or "false"
|
879
|
+
# :file - A (single) file path; puppet may attempt to create this file depending on how the settings are used. This type
|
880
|
+
# also supports additional options such as "mode", "owner", "group"
|
881
|
+
# :directory - A (single) directory path; puppet may attempt to create this file depending on how the settings are used. This type
|
882
|
+
# also supports additional options such as "mode", "owner", "group"
|
883
|
+
# :path - This is intended to be used for settings whose value can contain multiple directory paths, represented
|
884
|
+
# as strings separated by the system path separator (e.g. system path, module path, etc.).
|
885
|
+
# [:mode] => an (optional) octal value to be used as the permissions/mode for :file and :directory settings
|
886
|
+
# [:owner] => optional owner username/uid for :file and :directory settings
|
887
|
+
# [:group] => optional group name/gid for :file and :directory settings
|
888
|
+
#
|
889
|
+
def define_settings(section, defs)
|
890
|
+
section = section.to_sym
|
891
|
+
call = []
|
892
|
+
defs.each do |name, hash|
|
893
|
+
raise ArgumentError, "setting definition for '#{name}' is not a hash!" unless hash.is_a? Hash
|
894
|
+
|
895
|
+
name = name.to_sym
|
896
|
+
hash[:name] = name
|
897
|
+
hash[:section] = section
|
898
|
+
raise ArgumentError, "Setting #{name} is already defined" if @config.include?(name)
|
899
|
+
tryconfig = newsetting(hash)
|
900
|
+
if short = tryconfig.short
|
901
|
+
if other = @shortnames[short]
|
902
|
+
raise ArgumentError, "Setting #{other.name} is already using short name '#{short}'"
|
903
|
+
end
|
904
|
+
@shortnames[short] = tryconfig
|
905
|
+
end
|
906
|
+
@config[name] = tryconfig
|
907
|
+
|
908
|
+
# Collect the settings that need to have their hooks called immediately.
|
909
|
+
# We have to collect them so that we can be sure we're fully initialized before
|
910
|
+
# the hook is called.
|
911
|
+
if tryconfig.has_hook?
|
912
|
+
if tryconfig.call_hook_on_define?
|
913
|
+
call << tryconfig
|
914
|
+
elsif tryconfig.call_hook_on_initialize?
|
915
|
+
@hooks_to_call_on_application_initialization |= [ tryconfig ]
|
916
|
+
end
|
917
|
+
end
|
918
|
+
|
919
|
+
@deprecated_setting_names << name if tryconfig.deprecated?
|
920
|
+
end
|
921
|
+
|
922
|
+
call.each do |setting|
|
923
|
+
setting.handle(self.value(setting.name))
|
924
|
+
end
|
925
|
+
end
|
926
|
+
|
927
|
+
# Convert the settings we manage into a catalog full of resources that model those settings.
|
928
|
+
def to_catalog(*sections)
|
929
|
+
sections = nil if sections.empty?
|
930
|
+
|
931
|
+
catalog = Puppet::Resource::Catalog.new("Settings", Puppet::Node::Environment::NONE)
|
932
|
+
@config.keys.find_all { |key| @config[key].is_a?(FileSetting) }.each do |key|
|
933
|
+
file = @config[key]
|
934
|
+
next if file.value.nil?
|
935
|
+
next unless (sections.nil? or sections.include?(file.section))
|
936
|
+
next unless resource = file.to_resource
|
937
|
+
next if catalog.resource(resource.ref)
|
938
|
+
|
939
|
+
Puppet.debug {"Using settings: adding file resource '#{key}': '#{resource.inspect}'"}
|
940
|
+
|
941
|
+
catalog.add_resource(resource)
|
942
|
+
end
|
943
|
+
|
944
|
+
add_user_resources(catalog, sections)
|
945
|
+
add_environment_resources(catalog, sections)
|
946
|
+
|
947
|
+
catalog
|
948
|
+
end
|
949
|
+
|
950
|
+
# Convert our list of config settings into a configuration file.
|
951
|
+
def to_config
|
952
|
+
str = %{The configuration file for #{Puppet.run_mode.name}. Note that this file
|
953
|
+
is likely to have unused settings in it; any setting that's
|
954
|
+
valid anywhere in Puppet can be in any config file, even if it's not used.
|
955
|
+
|
956
|
+
Every section can specify three special parameters: owner, group, and mode.
|
957
|
+
These parameters affect the required permissions of any files specified after
|
958
|
+
their specification. Puppet will sometimes use these parameters to check its
|
959
|
+
own configured state, so they can be used to make Puppet a bit more self-managing.
|
960
|
+
|
961
|
+
The file format supports octothorpe-commented lines, but not partial-line comments.
|
962
|
+
|
963
|
+
Generated on #{Time.now}.
|
964
|
+
|
965
|
+
}.gsub(/^/, "# ")
|
966
|
+
|
967
|
+
# Add a section heading that matches our name.
|
968
|
+
str += "[#{preferred_run_mode}]\n"
|
969
|
+
eachsection do |section|
|
970
|
+
persection(section) do |obj|
|
971
|
+
str += obj.to_config + "\n" unless obj.name == :genconfig
|
972
|
+
end
|
973
|
+
end
|
974
|
+
|
975
|
+
return str
|
976
|
+
end
|
977
|
+
|
978
|
+
# Convert to a parseable manifest
|
979
|
+
def to_manifest
|
980
|
+
catalog = to_catalog
|
981
|
+
catalog.resource_refs.collect do |ref|
|
982
|
+
catalog.resource(ref).to_manifest
|
983
|
+
end.join("\n\n")
|
984
|
+
end
|
985
|
+
|
986
|
+
# Create the necessary objects to use a section. This is idempotent;
|
987
|
+
# you can 'use' a section as many times as you want.
|
988
|
+
def use(*sections)
|
989
|
+
sections = sections.collect { |s| s.to_sym }
|
990
|
+
sections = sections.reject { |s| @used.include?(s) }
|
991
|
+
|
992
|
+
return if sections.empty?
|
993
|
+
|
994
|
+
Puppet.debug("Applying settings catalog for sections #{sections.join(', ')}")
|
995
|
+
|
996
|
+
begin
|
997
|
+
catalog = to_catalog(*sections).to_ral
|
998
|
+
rescue => detail
|
999
|
+
Puppet.log_and_raise(detail, "Could not create resources for managing Puppet's files and directories in sections #{sections.inspect}: #{detail}")
|
1000
|
+
end
|
1001
|
+
|
1002
|
+
catalog.host_config = false
|
1003
|
+
catalog.apply do |transaction|
|
1004
|
+
if transaction.any_failed?
|
1005
|
+
report = transaction.report
|
1006
|
+
status_failures = report.resource_statuses.values.select { |r| r.failed? }
|
1007
|
+
status_fail_msg = status_failures.
|
1008
|
+
collect(&:events).
|
1009
|
+
flatten.
|
1010
|
+
select { |event| event.status == 'failure' }.
|
1011
|
+
collect { |event| "#{event.resource}: #{event.message}" }.join("; ")
|
1012
|
+
|
1013
|
+
raise "Got #{status_failures.length} failure(s) while initializing: #{status_fail_msg}"
|
1014
|
+
end
|
1015
|
+
end
|
1016
|
+
|
1017
|
+
sections.each { |s| @used << s }
|
1018
|
+
@used.uniq!
|
1019
|
+
end
|
1020
|
+
|
1021
|
+
def valid?(param)
|
1022
|
+
param = param.to_sym
|
1023
|
+
@config.has_key?(param)
|
1024
|
+
end
|
1025
|
+
|
1026
|
+
# Retrieve an object that can be used for looking up values of configuration
|
1027
|
+
# settings.
|
1028
|
+
#
|
1029
|
+
# @param environment [Symbol] The name of the environment in which to lookup
|
1030
|
+
# @param section [Symbol] The name of the configuration section in which to lookup
|
1031
|
+
# @return [Puppet::Settings::ChainedValues] An object to perform lookups
|
1032
|
+
# @api public
|
1033
|
+
def values(environment, section)
|
1034
|
+
@values[environment][section] ||= ChainedValues.new(
|
1035
|
+
section,
|
1036
|
+
environment,
|
1037
|
+
value_sets_for(environment, section),
|
1038
|
+
@config)
|
1039
|
+
end
|
1040
|
+
|
1041
|
+
# Find the correct value using our search path.
|
1042
|
+
#
|
1043
|
+
# @param param [String, Symbol] The value to look up
|
1044
|
+
# @param environment [String, Symbol] The environment to check for the value
|
1045
|
+
# @param bypass_interpolation [true, false] Whether to skip interpolation
|
1046
|
+
#
|
1047
|
+
# @return [Object] The looked up value
|
1048
|
+
#
|
1049
|
+
# @raise [InterpolationError]
|
1050
|
+
def value(param, environment = nil, bypass_interpolation = false)
|
1051
|
+
environment &&= environment.to_sym
|
1052
|
+
value_sym(param.to_sym, environment, bypass_interpolation)
|
1053
|
+
end
|
1054
|
+
|
1055
|
+
# Find the correct value using symbols and our search path.
|
1056
|
+
#
|
1057
|
+
# @param param [Symbol] The value to look up
|
1058
|
+
# @param environment [Symbol] The environment to check for the value
|
1059
|
+
# @param bypass_interpolation [true, false] Whether to skip interpolation
|
1060
|
+
#
|
1061
|
+
# @return [Object] The looked up value
|
1062
|
+
#
|
1063
|
+
# @raise [InterpolationError]
|
1064
|
+
def value_sym(param, environment = nil, bypass_interpolation = false)
|
1065
|
+
# Check the cache first. It needs to be a per-environment
|
1066
|
+
# cache so that we don't spread values from one env
|
1067
|
+
# to another.
|
1068
|
+
cached_env = @cache[environment || NONE]
|
1069
|
+
|
1070
|
+
# Avoid two lookups in cache_env unless val is nil. When it is, it's important
|
1071
|
+
# to check if the key is included so that further processing (that will result
|
1072
|
+
# in nil again) is avoided.
|
1073
|
+
val = cached_env[param]
|
1074
|
+
return val if !val.nil? || cached_env.include?(param)
|
1075
|
+
|
1076
|
+
# Short circuit to nil for undefined settings.
|
1077
|
+
return nil unless @config.include?(param)
|
1078
|
+
|
1079
|
+
vals = values(environment, preferred_run_mode)
|
1080
|
+
val = bypass_interpolation ? vals.lookup(param) : vals.interpolate(param)
|
1081
|
+
cached_env[param] = val
|
1082
|
+
val
|
1083
|
+
end
|
1084
|
+
|
1085
|
+
##
|
1086
|
+
# (#15337) All of the logic to determine the configuration file to use
|
1087
|
+
# should be centralized into this method. The simplified approach is:
|
1088
|
+
#
|
1089
|
+
# 1. If there is an explicit configuration file, use that. (--confdir or
|
1090
|
+
# --config)
|
1091
|
+
# 2. If we're running as a root process, use the system puppet.conf
|
1092
|
+
# (usually /etc/puppetlabs/puppet/puppet.conf)
|
1093
|
+
# 3. Otherwise, use the user puppet.conf (usually ~/.puppetlabs/etc/puppet/puppet.conf)
|
1094
|
+
#
|
1095
|
+
# @api private
|
1096
|
+
# @todo this code duplicates {Puppet::Util::RunMode#which_dir} as described
|
1097
|
+
# in {https://projects.puppetlabs.com/issues/16637 #16637}
|
1098
|
+
def which_configuration_file
|
1099
|
+
if explicit_config_file? or Puppet.features.root? then
|
1100
|
+
return main_config_file
|
1101
|
+
else
|
1102
|
+
return user_config_file
|
1103
|
+
end
|
1104
|
+
end
|
1105
|
+
|
1106
|
+
# This method just turns a file into a new ConfigFile::Conf instance
|
1107
|
+
# @param file [String] absolute path to the configuration file
|
1108
|
+
# @return [Puppet::Settings::ConfigFile::Conf]
|
1109
|
+
# @api private
|
1110
|
+
def parse_file(file, allowed_sections = [])
|
1111
|
+
@config_file_parser.parse_file(file, read_file(file), allowed_sections)
|
1112
|
+
end
|
1113
|
+
|
1114
|
+
private
|
1115
|
+
|
1116
|
+
DEPRECATION_REFS = {
|
1117
|
+
# intentionally empty. This could be repopulated if we deprecate more settings
|
1118
|
+
# and have reference links to associate with them
|
1119
|
+
}.freeze
|
1120
|
+
|
1121
|
+
def screen_non_puppet_conf_settings(puppet_conf)
|
1122
|
+
puppet_conf.sections.values.each do |section|
|
1123
|
+
forbidden = section.settings.select { |setting| Puppet::Settings::EnvironmentConf::ENVIRONMENT_CONF_ONLY_SETTINGS.include?(setting.name) }
|
1124
|
+
raise(SettingsError, "Cannot set #{forbidden.map { |s| s.name }.join(", ")} settings in puppet.conf") if !forbidden.empty?
|
1125
|
+
end
|
1126
|
+
end
|
1127
|
+
|
1128
|
+
# Record that we want to issue a deprecation warning later in the application
|
1129
|
+
# initialization cycle when we have settings bootstrapped to the point where
|
1130
|
+
# we can read the Puppet[:disable_warnings] setting.
|
1131
|
+
#
|
1132
|
+
# We are only recording warnings applicable to settings set in puppet.conf
|
1133
|
+
# itself.
|
1134
|
+
def record_deprecations_from_puppet_conf(puppet_conf)
|
1135
|
+
puppet_conf.sections.values.each do |section|
|
1136
|
+
section.settings.each do |conf_setting|
|
1137
|
+
if setting = self.setting(conf_setting.name)
|
1138
|
+
@deprecated_settings_that_have_been_configured << setting if setting.deprecated?
|
1139
|
+
end
|
1140
|
+
end
|
1141
|
+
end
|
1142
|
+
end
|
1143
|
+
|
1144
|
+
def issue_deprecations
|
1145
|
+
@deprecated_settings_that_have_been_configured.each do |setting|
|
1146
|
+
issue_deprecation_warning(setting)
|
1147
|
+
end
|
1148
|
+
end
|
1149
|
+
|
1150
|
+
def issue_deprecation_warning(setting, msg = nil)
|
1151
|
+
name = setting.name
|
1152
|
+
ref = DEPRECATION_REFS.find { |params,reference| params.include?(name) }
|
1153
|
+
ref = ref[1] if ref
|
1154
|
+
case
|
1155
|
+
when msg
|
1156
|
+
msg << " #{ref}" if ref
|
1157
|
+
Puppet.deprecation_warning(msg)
|
1158
|
+
when setting.completely_deprecated?
|
1159
|
+
Puppet.deprecation_warning("Setting #{name} is deprecated. #{ref}", "setting-#{name}")
|
1160
|
+
when setting.allowed_on_commandline?
|
1161
|
+
Puppet.deprecation_warning("Setting #{name} is deprecated in puppet.conf. #{ref}", "puppet-conf-setting-#{name}")
|
1162
|
+
end
|
1163
|
+
end
|
1164
|
+
|
1165
|
+
def add_environment_resources(catalog, sections)
|
1166
|
+
path = self[:environmentpath]
|
1167
|
+
envdir = path.split(File::PATH_SEPARATOR).first if path
|
1168
|
+
configured_environment = self[:environment]
|
1169
|
+
if configured_environment == "production" && envdir && Puppet::FileSystem.exist?(envdir)
|
1170
|
+
configured_environment_path = File.join(envdir, configured_environment)
|
1171
|
+
if !Puppet::FileSystem.symlink?(configured_environment_path)
|
1172
|
+
catalog.add_resource(
|
1173
|
+
Puppet::Resource.new(:file,
|
1174
|
+
configured_environment_path,
|
1175
|
+
:parameters => { :ensure => 'directory' })
|
1176
|
+
)
|
1177
|
+
end
|
1178
|
+
end
|
1179
|
+
end
|
1180
|
+
|
1181
|
+
def add_user_resources(catalog, sections)
|
1182
|
+
return unless Puppet.features.root?
|
1183
|
+
return if Puppet.features.microsoft_windows?
|
1184
|
+
return unless self[:mkusers]
|
1185
|
+
|
1186
|
+
@config.each do |name, setting|
|
1187
|
+
next unless setting.respond_to?(:owner)
|
1188
|
+
next unless sections.nil? or sections.include?(setting.section)
|
1189
|
+
|
1190
|
+
if user = setting.owner and user != "root" and catalog.resource(:user, user).nil?
|
1191
|
+
resource = Puppet::Resource.new(:user, user, :parameters => {:ensure => :present})
|
1192
|
+
resource[:gid] = self[:group] if self[:group]
|
1193
|
+
catalog.add_resource resource
|
1194
|
+
end
|
1195
|
+
if group = setting.group and ! %w{root wheel}.include?(group) and catalog.resource(:group, group).nil?
|
1196
|
+
catalog.add_resource Puppet::Resource.new(:group, group, :parameters => {:ensure => :present})
|
1197
|
+
end
|
1198
|
+
end
|
1199
|
+
end
|
1200
|
+
|
1201
|
+
# Yield each search source in turn.
|
1202
|
+
def value_sets_for(environment, mode)
|
1203
|
+
searchpath(environment, mode).collect { |source| searchpath_values(source) }.compact
|
1204
|
+
end
|
1205
|
+
|
1206
|
+
# Read the file in.
|
1207
|
+
# @api private
|
1208
|
+
def read_file(file)
|
1209
|
+
return Puppet::FileSystem.read(file, :encoding => 'utf-8')
|
1210
|
+
end
|
1211
|
+
|
1212
|
+
# Private method for internal test use only; allows to do a comprehensive clear of all settings between tests.
|
1213
|
+
#
|
1214
|
+
# @return nil
|
1215
|
+
def clear_everything_for_tests()
|
1216
|
+
unsafe_clear(true, true)
|
1217
|
+
@configuration_file = nil
|
1218
|
+
@global_defaults_initialized = false
|
1219
|
+
@app_defaults_initialized = false
|
1220
|
+
end
|
1221
|
+
private :clear_everything_for_tests
|
1222
|
+
|
1223
|
+
def explicit_config_file?
|
1224
|
+
# Figure out if the user has provided an explicit configuration file. If
|
1225
|
+
# so, return the path to the file, if not return nil.
|
1226
|
+
#
|
1227
|
+
# The easiest way to determine whether an explicit one has been specified
|
1228
|
+
# is to simply attempt to evaluate the value of ":config". This will
|
1229
|
+
# obviously be successful if they've passed an explicit value for :config,
|
1230
|
+
# but it will also result in successful interpolation if they've only
|
1231
|
+
# passed an explicit value for :confdir.
|
1232
|
+
#
|
1233
|
+
# If they've specified neither, then the interpolation will fail and we'll
|
1234
|
+
# get an exception.
|
1235
|
+
#
|
1236
|
+
begin
|
1237
|
+
return true if self[:config]
|
1238
|
+
rescue InterpolationError
|
1239
|
+
# This means we failed to interpolate, which means that they didn't
|
1240
|
+
# explicitly specify either :config or :confdir... so we'll fall out to
|
1241
|
+
# the default value.
|
1242
|
+
return false
|
1243
|
+
end
|
1244
|
+
end
|
1245
|
+
private :explicit_config_file?
|
1246
|
+
|
1247
|
+
# Lookup configuration setting value through a chain of different value sources.
|
1248
|
+
#
|
1249
|
+
# @api public
|
1250
|
+
class ChainedValues
|
1251
|
+
ENVIRONMENT_SETTING = "environment".freeze
|
1252
|
+
ENVIRONMENT_INTERPOLATION_ALLOWED = ['config_version'].freeze
|
1253
|
+
|
1254
|
+
# @see Puppet::Settings.values
|
1255
|
+
# @api private
|
1256
|
+
def initialize(mode, environment, value_sets, defaults)
|
1257
|
+
@mode = mode
|
1258
|
+
@environment = environment
|
1259
|
+
@value_sets = value_sets
|
1260
|
+
@defaults = defaults
|
1261
|
+
end
|
1262
|
+
|
1263
|
+
# Lookup the uninterpolated value.
|
1264
|
+
#
|
1265
|
+
# @param name [Symbol] The configuration setting name to look up
|
1266
|
+
# @return [Object] The configuration setting value or nil if the setting is not known
|
1267
|
+
# @api public
|
1268
|
+
def lookup(name)
|
1269
|
+
set = @value_sets.find do |value_set|
|
1270
|
+
value_set.include?(name)
|
1271
|
+
end
|
1272
|
+
if set
|
1273
|
+
value = set.lookup(name)
|
1274
|
+
if !value.nil?
|
1275
|
+
return value
|
1276
|
+
end
|
1277
|
+
end
|
1278
|
+
|
1279
|
+
@defaults[name].default
|
1280
|
+
end
|
1281
|
+
|
1282
|
+
# Lookup the interpolated value. All instances of `$name` in the value will
|
1283
|
+
# be replaced by performing a lookup of `name` and substituting the text
|
1284
|
+
# for `$name` in the original value. This interpolation is only performed
|
1285
|
+
# if the looked up value is a String.
|
1286
|
+
#
|
1287
|
+
# @param name [Symbol] The configuration setting name to look up
|
1288
|
+
# @return [Object] The configuration setting value or nil if the setting is not known
|
1289
|
+
# @api public
|
1290
|
+
def interpolate(name)
|
1291
|
+
setting = @defaults[name]
|
1292
|
+
|
1293
|
+
if setting
|
1294
|
+
val = lookup(name)
|
1295
|
+
# if we interpolate code, all hell breaks loose.
|
1296
|
+
if name == :code
|
1297
|
+
val
|
1298
|
+
else
|
1299
|
+
# Convert it if necessary
|
1300
|
+
begin
|
1301
|
+
val = convert(val, name)
|
1302
|
+
rescue InterpolationError => err
|
1303
|
+
# This happens because we don't have access to the param name when the
|
1304
|
+
# exception is originally raised, but we want it in the message
|
1305
|
+
raise InterpolationError, "Error converting value for param '#{name}': #{err}", err.backtrace
|
1306
|
+
end
|
1307
|
+
|
1308
|
+
setting.munge(val)
|
1309
|
+
end
|
1310
|
+
else
|
1311
|
+
nil
|
1312
|
+
end
|
1313
|
+
end
|
1314
|
+
|
1315
|
+
private
|
1316
|
+
|
1317
|
+
def convert(value, setting_name)
|
1318
|
+
case value
|
1319
|
+
when nil
|
1320
|
+
nil
|
1321
|
+
when String
|
1322
|
+
failed_environment_interpolation = false
|
1323
|
+
interpolated_value = value.gsub(/\$(\w+)|\$\{(\w+)\}/) do |expression|
|
1324
|
+
varname = $2 || $1
|
1325
|
+
interpolated_expression =
|
1326
|
+
if varname != ENVIRONMENT_SETTING || ok_to_interpolate_environment(setting_name)
|
1327
|
+
if varname == ENVIRONMENT_SETTING && @environment
|
1328
|
+
@environment
|
1329
|
+
elsif varname == "run_mode"
|
1330
|
+
@mode
|
1331
|
+
elsif !(pval = interpolate(varname.to_sym)).nil?
|
1332
|
+
pval
|
1333
|
+
else
|
1334
|
+
raise InterpolationError, "Could not find value for #{expression}"
|
1335
|
+
end
|
1336
|
+
else
|
1337
|
+
failed_environment_interpolation = true
|
1338
|
+
expression
|
1339
|
+
end
|
1340
|
+
interpolated_expression
|
1341
|
+
end
|
1342
|
+
if failed_environment_interpolation
|
1343
|
+
Puppet.warning("You cannot interpolate $environment within '#{setting_name}' when using directory environments. Its value will remain #{interpolated_value}.")
|
1344
|
+
end
|
1345
|
+
interpolated_value
|
1346
|
+
else
|
1347
|
+
value
|
1348
|
+
end
|
1349
|
+
end
|
1350
|
+
|
1351
|
+
def ok_to_interpolate_environment(setting_name)
|
1352
|
+
ENVIRONMENT_INTERPOLATION_ALLOWED.include?(setting_name.to_s)
|
1353
|
+
end
|
1354
|
+
end
|
1355
|
+
|
1356
|
+
class Values
|
1357
|
+
extend Forwardable
|
1358
|
+
|
1359
|
+
attr_reader :name
|
1360
|
+
|
1361
|
+
def initialize(name, defaults)
|
1362
|
+
@name = name
|
1363
|
+
@values = {}
|
1364
|
+
@defaults = defaults
|
1365
|
+
end
|
1366
|
+
|
1367
|
+
def_delegator :@values, :include?
|
1368
|
+
def_delegator :@values, :[], :lookup
|
1369
|
+
|
1370
|
+
def set(name, value)
|
1371
|
+
default = @defaults[name]
|
1372
|
+
|
1373
|
+
if !default
|
1374
|
+
raise ArgumentError,
|
1375
|
+
"Attempt to assign a value to unknown setting #{name.inspect}"
|
1376
|
+
end
|
1377
|
+
|
1378
|
+
# This little exception-handling dance ensures that a hook is
|
1379
|
+
# able to check whether a value for itself has been explicitly
|
1380
|
+
# set, while still preserving the existing value if the hook
|
1381
|
+
# throws (as was existing behavior)
|
1382
|
+
old_value = @values[name]
|
1383
|
+
@values[name] = value
|
1384
|
+
begin
|
1385
|
+
if default.has_hook?
|
1386
|
+
default.handle(value)
|
1387
|
+
end
|
1388
|
+
rescue Exception => e
|
1389
|
+
@values[name] = old_value
|
1390
|
+
raise e
|
1391
|
+
end
|
1392
|
+
end
|
1393
|
+
|
1394
|
+
def inspect
|
1395
|
+
%Q{<#{self.class}:#{self.object_id} @name="#{@name}" @values="#{@values}">}
|
1396
|
+
end
|
1397
|
+
end
|
1398
|
+
|
1399
|
+
class ValuesFromSection
|
1400
|
+
attr_reader :name
|
1401
|
+
|
1402
|
+
def initialize(name, section)
|
1403
|
+
@name = name
|
1404
|
+
@section = section
|
1405
|
+
end
|
1406
|
+
|
1407
|
+
def include?(name)
|
1408
|
+
!@section.setting(name).nil?
|
1409
|
+
end
|
1410
|
+
|
1411
|
+
def lookup(name)
|
1412
|
+
setting = @section.setting(name)
|
1413
|
+
if setting
|
1414
|
+
setting.value
|
1415
|
+
end
|
1416
|
+
end
|
1417
|
+
|
1418
|
+
def inspect
|
1419
|
+
%Q{<#{self.class}:#{self.object_id} @name="#{@name}" @section="#{@section}">}
|
1420
|
+
end
|
1421
|
+
end
|
1422
|
+
|
1423
|
+
# @api private
|
1424
|
+
class ValuesFromEnvironmentConf
|
1425
|
+
def initialize(environment_name)
|
1426
|
+
@environment_name = environment_name
|
1427
|
+
end
|
1428
|
+
|
1429
|
+
def name
|
1430
|
+
@environment_name
|
1431
|
+
end
|
1432
|
+
|
1433
|
+
def include?(name)
|
1434
|
+
if Puppet::Settings::EnvironmentConf::VALID_SETTINGS.include?(name) && conf
|
1435
|
+
return true
|
1436
|
+
end
|
1437
|
+
false
|
1438
|
+
end
|
1439
|
+
|
1440
|
+
def lookup(name)
|
1441
|
+
return nil unless Puppet::Settings::EnvironmentConf::VALID_SETTINGS.include?(name)
|
1442
|
+
conf.send(name) if conf
|
1443
|
+
end
|
1444
|
+
|
1445
|
+
def conf
|
1446
|
+
@conf ||= if environments = Puppet.lookup(:environments) { nil }
|
1447
|
+
environments.get_conf(@environment_name)
|
1448
|
+
end
|
1449
|
+
end
|
1450
|
+
|
1451
|
+
def inspect
|
1452
|
+
%Q{<#{self.class}:#{self.object_id} @environment_name="#{@environment_name}" @conf="#{@conf}">}
|
1453
|
+
end
|
1454
|
+
end
|
1455
|
+
end
|