puppet 6.4.5-x86-mingw32 → 6.5.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of puppet might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CODEOWNERS +10 -10
- data/Gemfile +6 -6
- data/Gemfile.lock +46 -52
- data/ext/build_defaults.yaml +0 -1
- data/ext/project_data.yaml +3 -3
- data/ext/regexp_nodes/regexp_nodes.rb +4 -4
- data/ext/solaris/smf/puppet.xml +0 -2
- data/ext/windows/eventlog/Rakefile +32 -0
- data/ext/windows/eventlog/puppetres.dll +0 -0
- data/ext/windows/eventlog/puppetres.mc +18 -0
- data/ext/windows/service/daemon.rb +8 -38
- data/install.rb +24 -6
- data/lib/puppet.rb +3 -1
- data/lib/puppet/application.rb +1 -1
- data/lib/puppet/application/agent.rb +11 -34
- data/lib/puppet/application/apply.rb +6 -6
- data/lib/puppet/application/describe.rb +9 -3
- data/lib/puppet/application/device.rb +4 -14
- data/lib/puppet/application/doc.rb +1 -1
- data/lib/puppet/application/lookup.rb +2 -2
- data/lib/puppet/application/resource.rb +4 -4
- data/lib/puppet/application/script.rb +2 -2
- data/lib/puppet/application/ssl.rb +10 -9
- data/lib/puppet/configurer.rb +30 -86
- data/lib/puppet/configurer/downloader.rb +6 -2
- data/lib/puppet/defaults.rb +50 -44
- data/lib/puppet/error.rb +14 -9
- data/lib/puppet/face/catalog.rb +20 -1
- data/lib/puppet/face/config.rb +48 -10
- data/lib/puppet/face/facts.rb +1 -1
- data/lib/puppet/face/help.rb +1 -1
- data/lib/puppet/face/module/list.rb +5 -5
- data/lib/puppet/face/module/search.rb +1 -1
- data/lib/puppet/face/module/uninstall.rb +1 -1
- data/lib/puppet/face/module/upgrade.rb +1 -1
- data/lib/puppet/face/parser.rb +48 -9
- data/lib/puppet/face/plugin.rb +2 -9
- data/lib/puppet/file_serving/http_metadata.rb +1 -1
- data/lib/puppet/file_system.rb +12 -2
- data/lib/puppet/file_system/file_impl.rb +6 -3
- data/lib/puppet/file_system/memory_file.rb +1 -1
- data/lib/puppet/file_system/posix.rb +2 -3
- data/lib/puppet/forge.rb +3 -3
- data/lib/puppet/functions.rb +2 -1
- data/lib/puppet/functions/camelcase.rb +2 -2
- data/lib/puppet/functions/epp.rb +4 -4
- data/lib/puppet/functions/find_file.rb +9 -9
- data/lib/puppet/functions/inline_epp.rb +5 -5
- data/lib/puppet/functions/regsubst.rb +6 -8
- data/lib/puppet/gettext/module_translations.rb +1 -1
- data/lib/puppet/graph/rb_tree_map.rb +2 -2
- data/lib/puppet/graph/simple_graph.rb +3 -4
- data/lib/puppet/indirector/catalog/compiler.rb +5 -11
- data/lib/puppet/indirector/file_bucket_file/file.rb +1 -1
- data/lib/puppet/indirector/hiera.rb +0 -2
- data/lib/puppet/indirector/resource/ral.rb +3 -1
- data/lib/puppet/indirector/resource/validator.rb +1 -1
- data/lib/puppet/interface.rb +1 -2
- data/lib/puppet/loaders.rb +1 -0
- data/lib/puppet/metatype/manager.rb +1 -1
- data/lib/puppet/module.rb +1 -1
- data/lib/puppet/module/task.rb +4 -20
- data/lib/puppet/module_tool/applications/installer.rb +1 -1
- data/lib/puppet/module_tool/applications/uninstaller.rb +3 -3
- data/lib/puppet/module_tool/metadata.rb +1 -1
- data/lib/puppet/module_tool/shared_behaviors.rb +4 -4
- data/lib/puppet/module_tool/tar/mini.rb +2 -12
- data/lib/puppet/network/http/api/indirected_routes.rb +11 -12
- data/lib/puppet/network/http/connection.rb +12 -10
- data/lib/puppet/network/http/factory.rb +11 -1
- data/lib/puppet/network/http/pool.rb +0 -2
- data/lib/puppet/network/http/site.rb +1 -1
- data/lib/puppet/network/resolver.rb +2 -2
- data/lib/puppet/node/environment.rb +2 -4
- data/lib/puppet/pal/pal_impl.rb +2 -2
- data/lib/puppet/parser/ast.rb +1 -1
- data/lib/puppet/parser/ast/resourceparam.rb +1 -1
- data/lib/puppet/parser/functions.rb +1 -1
- data/lib/puppet/parser/functions/epp.rb +3 -3
- data/lib/puppet/parser/functions/fail.rb +8 -1
- data/lib/puppet/parser/functions/inline_epp.rb +5 -5
- data/lib/puppet/parser/scope.rb +7 -8
- data/lib/puppet/pops/evaluator/collectors/catalog_collector.rb +1 -1
- data/lib/puppet/pops/evaluator/collectors/exported_collector.rb +1 -1
- data/lib/puppet/pops/evaluator/external_syntax_support.rb +2 -3
- data/lib/puppet/pops/evaluator/runtime3_support.rb +4 -4
- data/lib/puppet/pops/loader/null_loader.rb +60 -0
- data/lib/puppet/pops/loader/ruby_legacy_function_instantiator.rb +6 -4
- data/lib/puppet/pops/loader/task_instantiator.rb +0 -4
- data/lib/puppet/pops/loaders.rb +1 -1
- data/lib/puppet/pops/lookup/hiera_config.rb +0 -1
- data/lib/puppet/pops/lookup/sub_lookup.rb +1 -1
- data/lib/puppet/pops/merge_strategy.rb +18 -22
- data/lib/puppet/pops/parser/heredoc_support.rb +1 -1
- data/lib/puppet/pops/parser/interpolation_support.rb +4 -4
- data/lib/puppet/pops/parser/locator.rb +1 -1
- data/lib/puppet/pops/parser/pn_parser.rb +16 -17
- data/lib/puppet/pops/puppet_stack.rb +49 -51
- data/lib/puppet/pops/types/p_sensitive_type.rb +1 -1
- data/lib/puppet/pops/types/string_converter.rb +10 -10
- data/lib/puppet/pops/types/types.rb +6 -5
- data/lib/puppet/property.rb +1 -1
- data/lib/puppet/property/ensure.rb +1 -1
- data/lib/puppet/provider/exec.rb +2 -6
- data/lib/puppet/provider/file/posix.rb +0 -5
- data/lib/puppet/provider/nameservice.rb +3 -10
- data/lib/puppet/provider/nameservice/directoryservice.rb +1 -1
- data/lib/puppet/provider/nameservice/pw.rb +2 -2
- data/lib/puppet/provider/package.rb +0 -2
- data/lib/puppet/provider/package/apt.rb +1 -5
- data/lib/puppet/provider/package/dnf.rb +1 -1
- data/lib/puppet/provider/package/dpkg.rb +18 -34
- data/lib/puppet/provider/package/openbsd.rb +1 -1
- data/lib/puppet/provider/package/pip.rb +13 -37
- data/lib/puppet/provider/package/portage.rb +4 -4
- data/lib/puppet/provider/package/puppet_gem.rb +1 -1
- data/lib/puppet/provider/package/rpm.rb +18 -56
- data/lib/puppet/provider/package/windows/package.rb +1 -1
- data/lib/puppet/provider/package/yum.rb +5 -9
- data/lib/puppet/provider/package_targetable.rb +4 -7
- data/lib/puppet/provider/parsedfile.rb +1 -1
- data/lib/puppet/provider/service/daemontools.rb +9 -9
- data/lib/puppet/provider/service/launchd.rb +5 -20
- data/lib/puppet/provider/service/openbsd.rb +1 -1
- data/lib/puppet/provider/service/rcng.rb +2 -2
- data/lib/puppet/provider/service/runit.rb +8 -2
- data/lib/puppet/provider/service/systemd.rb +19 -14
- data/lib/puppet/provider/service/windows.rb +0 -8
- data/lib/puppet/provider/user/directoryservice.rb +1 -1
- data/lib/puppet/provider/user/hpux.rb +1 -1
- data/lib/puppet/provider/user/pw.rb +3 -12
- data/lib/puppet/provider/user/user_role_add.rb +1 -5
- data/lib/puppet/provider/user/useradd.rb +20 -45
- data/lib/puppet/provider/user/windows_adsi.rb +5 -4
- data/lib/puppet/reference/configuration.rb +3 -3
- data/lib/puppet/reference/indirection.rb +2 -2
- data/lib/puppet/reference/metaparameter.rb +3 -1
- data/lib/puppet/reference/providers.rb +3 -1
- data/lib/puppet/reference/type.rb +9 -3
- data/lib/puppet/reports.rb +1 -1
- data/lib/puppet/resource.rb +1 -18
- data/lib/puppet/resource/catalog.rb +1 -1
- data/lib/puppet/rest/routes.rb +30 -17
- data/lib/puppet/settings.rb +3 -43
- data/lib/puppet/settings/environment_conf.rb +0 -1
- data/lib/puppet/ssl/certificate_request.rb +12 -2
- data/lib/puppet/ssl/host.rb +2 -2
- data/lib/puppet/ssl/oids.rb +1 -1
- data/lib/puppet/ssl/ssl_provider.rb +11 -5
- data/lib/puppet/ssl/state_machine.rb +102 -98
- data/lib/puppet/test/test_helper.rb +1 -0
- data/lib/puppet/transaction.rb +11 -33
- data/lib/puppet/transaction/report.rb +1 -1
- data/lib/puppet/type.rb +4 -2
- data/lib/puppet/type/exec.rb +17 -23
- data/lib/puppet/type/file.rb +39 -11
- data/lib/puppet/type/file/data_sync.rb +1 -5
- data/lib/puppet/type/group.rb +2 -4
- data/lib/puppet/type/notify.rb +3 -4
- data/lib/puppet/type/package.rb +3 -20
- data/lib/puppet/type/schedule.rb +1 -1
- data/lib/puppet/type/service.rb +3 -8
- data/lib/puppet/type/user.rb +2 -4
- data/lib/puppet/util.rb +29 -39
- data/lib/puppet/util/command_line/trollop.rb +1 -1
- data/lib/puppet/util/execution.rb +3 -4
- data/lib/puppet/util/http_proxy.rb +19 -27
- data/lib/puppet/util/log.rb +2 -2
- data/lib/puppet/util/log/destinations.rb +2 -2
- data/lib/puppet/util/logging.rb +20 -32
- data/lib/puppet/util/metric.rb +2 -2
- data/lib/puppet/util/monkey_patches.rb +33 -0
- data/lib/puppet/util/pidlock.rb +2 -3
- data/lib/puppet/util/provider_features.rb +4 -2
- data/lib/puppet/util/rdoc.rb +1 -1
- data/lib/puppet/util/reference.rb +1 -1
- data/lib/puppet/util/resource_template.rb +1 -1
- data/lib/puppet/util/selinux.rb +2 -8
- data/lib/puppet/util/skip_tags.rb +4 -0
- data/lib/puppet/util/windows/adsi.rb +18 -48
- data/lib/puppet/util/windows/process.rb +8 -8
- data/lib/puppet/util/windows/registry.rb +5 -7
- data/lib/puppet/util/windows/security.rb +0 -2
- data/lib/puppet/util/windows/service.rb +4 -149
- data/lib/puppet/util/windows/sid.rb +0 -1
- data/lib/puppet/vendor.rb +1 -1
- data/lib/puppet/version.rb +1 -1
- data/lib/puppet/x509/cert_provider.rb +81 -24
- data/locales/puppet.pot +462 -482
- data/man/man5/puppet.conf.5 +43 -44
- data/man/man8/puppet-agent.8 +1 -1
- data/man/man8/puppet-apply.8 +3 -3
- data/man/man8/puppet-catalog.8 +31 -3
- data/man/man8/puppet-config.8 +1 -1
- data/man/man8/puppet-describe.8 +1 -1
- data/man/man8/puppet-device.8 +1 -1
- data/man/man8/puppet-doc.8 +1 -1
- data/man/man8/puppet-epp.8 +1 -1
- data/man/man8/puppet-facts.8 +1 -1
- data/man/man8/puppet-filebucket.8 +1 -1
- data/man/man8/puppet-generate.8 +1 -1
- data/man/man8/puppet-help.8 +1 -1
- data/man/man8/puppet-key.8 +1 -1
- data/man/man8/puppet-lookup.8 +1 -1
- data/man/man8/puppet-man.8 +1 -1
- data/man/man8/puppet-module.8 +1 -1
- data/man/man8/puppet-node.8 +1 -1
- data/man/man8/puppet-parser.8 +1 -1
- data/man/man8/puppet-plugin.8 +1 -1
- data/man/man8/puppet-report.8 +1 -1
- data/man/man8/puppet-resource.8 +1 -1
- data/man/man8/puppet-script.8 +1 -1
- data/man/man8/puppet-ssl.8 +1 -1
- data/man/man8/puppet-status.8 +1 -1
- data/man/man8/puppet.8 +3 -3
- data/spec/fixtures/ssl/127.0.0.1-key.pem +56 -56
- data/spec/fixtures/ssl/127.0.0.1.pem +27 -27
- data/spec/fixtures/ssl/bad-basic-constraints.pem +32 -32
- data/spec/fixtures/ssl/bad-int-basic-constraints.pem +30 -30
- data/spec/fixtures/ssl/ca.pem +30 -30
- data/spec/fixtures/ssl/crl.pem +15 -15
- data/spec/fixtures/ssl/ec-key.pem +18 -0
- data/spec/fixtures/ssl/ec.pem +40 -0
- data/spec/fixtures/ssl/encrypted-ec-key.pem +21 -0
- data/spec/fixtures/ssl/encrypted-key.pem +57 -57
- data/spec/fixtures/ssl/intermediate-agent-crl.pem +16 -16
- data/spec/fixtures/ssl/intermediate-agent.pem +33 -33
- data/spec/fixtures/ssl/intermediate-crl.pem +17 -17
- data/spec/fixtures/ssl/intermediate.pem +31 -31
- data/spec/fixtures/ssl/pluto-key.pem +56 -56
- data/spec/fixtures/ssl/pluto.pem +28 -28
- data/spec/fixtures/ssl/request-key.pem +56 -56
- data/spec/fixtures/ssl/request.pem +24 -24
- data/spec/fixtures/ssl/revoked-key.pem +56 -56
- data/spec/fixtures/ssl/revoked.pem +25 -25
- data/spec/fixtures/ssl/signed-key.pem +56 -56
- data/spec/fixtures/ssl/signed.pem +25 -25
- data/spec/fixtures/ssl/tampered-cert.pem +27 -27
- data/spec/fixtures/ssl/tampered-csr.pem +24 -24
- data/spec/fixtures/unit/pops/loaders/loaders/mix_4x_and_3x_functions/usee/lib/puppet/parser/functions/func_with_syntax_error.rb +9 -0
- data/spec/fixtures/vcr/cassettes/Puppet_Network_HTTP_Connection/when_handling_requests/_request_get/should_yield_to_the_block.yml +24 -0
- data/spec/fixtures/vcr/cassettes/Puppet_Network_HTTP_Connection/when_handling_requests/_request_head/should_yield_to_the_block.yml +24 -0
- data/spec/fixtures/vcr/cassettes/Puppet_Network_HTTP_Connection/when_handling_requests/_request_post/should_yield_to_the_block.yml +24 -0
- data/spec/integration/configurer_spec.rb +0 -52
- data/spec/integration/provider/service/init_spec.rb +1 -0
- data/spec/integration/provider/service/systemd_spec.rb +5 -8
- data/spec/integration/type/file_spec.rb +38 -28
- data/spec/integration/util/execution_spec.rb +0 -27
- data/spec/lib/puppet/certificate_factory.rb +2 -2
- data/spec/lib/puppet/test_ca.rb +17 -4
- data/spec/lib/puppet_spec/fixtures.rb +4 -0
- data/spec/spec_helper.rb +0 -28
- data/spec/unit/application/agent_spec.rb +34 -67
- data/spec/unit/application/device_spec.rb +1 -27
- data/spec/unit/application/ssl_spec.rb +60 -35
- data/spec/unit/configurer_spec.rb +399 -395
- data/spec/unit/defaults_spec.rb +4 -4
- data/spec/unit/face/facts_spec.rb +0 -9
- data/spec/unit/face/parser_spec.rb +69 -22
- data/spec/unit/face/plugin_spec.rb +0 -8
- data/spec/unit/file_system_spec.rb +30 -1
- data/spec/unit/forge/forge_spec.rb +3 -1
- data/spec/unit/forge/repository_spec.rb +3 -1
- data/spec/unit/indirector/catalog/compiler_spec.rb +5 -62
- data/spec/unit/indirector/resource/ral_spec.rb +4 -4
- data/spec/unit/module_tool/tar/mini_spec.rb +1 -1
- data/spec/unit/network/http/api/indirected_routes_spec.rb +10 -25
- data/spec/unit/network/http/connection_spec.rb +145 -119
- data/spec/unit/network/http/factory_spec.rb +5 -27
- data/spec/unit/parser/scope_spec.rb +0 -10
- data/spec/unit/pops/evaluator/evaluating_parser_spec.rb +3 -8
- data/spec/unit/pops/loaders/loaders_spec.rb +4 -0
- data/spec/unit/pops/loaders/module_loaders_spec.rb +0 -37
- data/spec/unit/pops/types/types_spec.rb +27 -0
- data/spec/unit/provider/exec_spec.rb +0 -209
- data/spec/unit/provider/package/aptrpm_spec.rb +1 -1
- data/spec/unit/provider/package/dnf_spec.rb +0 -7
- data/spec/unit/provider/package/dpkg_spec.rb +80 -240
- data/spec/unit/provider/package/pip_spec.rb +8 -61
- data/spec/unit/provider/package/portage_spec.rb +4 -4
- data/spec/unit/provider/package/rpm_spec.rb +16 -150
- data/spec/unit/provider/package/yum_spec.rb +0 -7
- data/spec/unit/provider/service/daemontools_spec.rb +0 -24
- data/spec/unit/provider/service/launchd_spec.rb +0 -28
- data/spec/unit/provider/service/runit_spec.rb +0 -24
- data/spec/unit/provider/service/systemd_spec.rb +25 -39
- data/spec/unit/provider/service/windows_spec.rb +0 -20
- data/spec/unit/provider/user/hpux_spec.rb +2 -2
- data/spec/unit/provider/user/pw_spec.rb +0 -37
- data/spec/unit/provider/user/useradd_spec.rb +0 -88
- data/spec/unit/resource_spec.rb +1 -26
- data/spec/unit/ssl/host_spec.rb +5 -0
- data/spec/unit/ssl/ssl_provider_spec.rb +36 -11
- data/spec/unit/ssl/state_machine_spec.rb +233 -158
- data/spec/unit/transaction_spec.rb +0 -64
- data/spec/unit/type/exec_spec.rb +12 -15
- data/spec/unit/type/file/content_spec.rb +3 -9
- data/spec/unit/type/file/source_spec.rb +4 -4
- data/spec/unit/type/file_spec.rb +15 -11
- data/spec/unit/type/package_spec.rb +0 -5
- data/spec/unit/type/schedule_spec.rb +1 -3
- data/spec/unit/type/service_spec.rb +0 -16
- data/spec/unit/util/execution_spec.rb +0 -16
- data/spec/unit/util/http_proxy_spec.rb +21 -151
- data/spec/unit/util/ldap/manager_spec.rb +0 -15
- data/spec/unit/util/log/destinations_spec.rb +3 -7
- data/spec/unit/util/log_spec.rb +138 -0
- data/spec/unit/util/logging_spec.rb +0 -200
- data/spec/unit/util/pidlock_spec.rb +0 -26
- data/spec/unit/util/skip_tags_spec.rb +14 -0
- data/spec/unit/util/windows/adsi_spec.rb +0 -51
- data/spec/unit/util/windows/service_spec.rb +0 -9
- data/spec/unit/util_spec.rb +10 -0
- data/spec/unit/x509/cert_provider_spec.rb +82 -43
- data/tasks/generate_cert_fixtures.rake +13 -1
- data/tasks/manpages.rake +0 -1
- metadata +28 -22
- data/ext/cert_inspector +0 -140
- data/ext/envpuppet +0 -139
- data/ext/envpuppet.bat +0 -14
- data/ext/puppet-test +0 -476
- data/ext/pure_ruby_dsl/dsl_test.rb +0 -7
- data/ext/upload_facts.rb +0 -119
- data/lib/puppet/provider/package/dnfmodule.rb +0 -87
- data/spec/fixtures/unit/provider/package/dnfmodule/dnf-module-list-installed.txt +0 -11
- data/spec/integration/type/notify_spec.rb +0 -46
- data/spec/unit/provider/package/dnfmodule_spec.rb +0 -186
- data/spec/unit/provider/package_targetable_spec.rb +0 -60
@@ -0,0 +1,14 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
require 'puppet/util/skip_tags'
|
5
|
+
|
6
|
+
describe Puppet::Util::SkipTags do
|
7
|
+
let(:tagger) { Puppet::Util::SkipTags.new([]) }
|
8
|
+
|
9
|
+
it "should add qualified classes as single tags" do
|
10
|
+
tagger.tag("one::two::three")
|
11
|
+
expect(tagger.tags).to include("one::two::three")
|
12
|
+
expect(tagger.tags).not_to include("one", "two", "three")
|
13
|
+
end
|
14
|
+
end
|
@@ -41,19 +41,6 @@ describe Puppet::Util::Windows::ADSI, :if => Puppet::Util::Platform.windows? do
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
-
describe ".domain_role" do
|
45
|
-
DOMAIN_ROLES = Puppet::Util::Platform.windows? ? Puppet::Util::Windows::ADSI::DOMAIN_ROLES : {}
|
46
|
-
|
47
|
-
DOMAIN_ROLES.each do |id, role|
|
48
|
-
it "should be able to return #{role} as the domain role of the computer" do
|
49
|
-
Puppet::Util::Windows::ADSI.instance_variable_set(:@domain_role, nil)
|
50
|
-
domain_role = [double('WMI', :DomainRole => id)]
|
51
|
-
allow(Puppet::Util::Windows::ADSI).to receive(:execquery).with('select DomainRole from Win32_ComputerSystem').and_return(domain_role)
|
52
|
-
expect(Puppet::Util::Windows::ADSI.domain_role).to eq(role)
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
44
|
describe ".sid_uri" do
|
58
45
|
it "should raise an error when the input is not a SID Principal" do
|
59
46
|
[Object.new, {}, 1, :symbol, '', nil].each do |input|
|
@@ -69,32 +56,6 @@ describe Puppet::Util::Windows::ADSI, :if => Puppet::Util::Platform.windows? do
|
|
69
56
|
end
|
70
57
|
end
|
71
58
|
|
72
|
-
shared_examples 'a local only resource query' do |klass, account_type|
|
73
|
-
before(:each) do
|
74
|
-
allow(Puppet::Util::Windows::ADSI).to receive(:domain_role).and_return(:MEMBER_SERVER)
|
75
|
-
end
|
76
|
-
|
77
|
-
it "should be able to check for a local resource" do
|
78
|
-
local_domain = 'testcomputername'
|
79
|
-
principal = double('Principal', :account => resource_name, :domain => local_domain, :account_type => account_type)
|
80
|
-
allow(Puppet::Util::Windows::SID).to receive(:name_to_principal).with(resource_name).and_return(principal)
|
81
|
-
expect(klass.exists?(resource_name)).to eq(true)
|
82
|
-
end
|
83
|
-
|
84
|
-
it "should be case insensitive when comparing the domain with the computer name" do
|
85
|
-
local_domain = 'TESTCOMPUTERNAME'
|
86
|
-
principal = double('Principal', :account => resource_name, :domain => local_domain, :account_type => account_type)
|
87
|
-
allow(Puppet::Util::Windows::SID).to receive(:name_to_principal).with(resource_name).and_return(principal)
|
88
|
-
expect(klass.exists?(resource_name)).to eq(true)
|
89
|
-
end
|
90
|
-
|
91
|
-
it "should return false if no local resource exists" do
|
92
|
-
principal = double('Principal', :account => resource_name, :domain => 'AD_DOMAIN', :account_type => account_type)
|
93
|
-
allow(Puppet::Util::Windows::SID).to receive(:name_to_principal).with(resource_name).and_return(principal)
|
94
|
-
expect(klass.exists?(resource_name)).to eq(false)
|
95
|
-
end
|
96
|
-
end
|
97
|
-
|
98
59
|
describe Puppet::Util::Windows::ADSI::User do
|
99
60
|
let(:username) { 'testuser' }
|
100
61
|
let(:domain) { 'DOMAIN' }
|
@@ -142,12 +103,6 @@ describe Puppet::Util::Windows::ADSI, :if => Puppet::Util::Platform.windows? do
|
|
142
103
|
expect(user.native_object).to eq(adsi_user)
|
143
104
|
end
|
144
105
|
|
145
|
-
context "when domain-joined" do
|
146
|
-
it_should_behave_like 'a local only resource query', Puppet::Util::Windows::ADSI::User, :SidTypeUser do
|
147
|
-
let(:resource_name) { username }
|
148
|
-
end
|
149
|
-
end
|
150
|
-
|
151
106
|
it "should be able to check the existence of a user" do
|
152
107
|
expect(Puppet::Util::Windows::SID).to receive(:name_to_principal).with(username).and_return(nil)
|
153
108
|
expect(Puppet::Util::Windows::ADSI).to receive(:connect).with("WinNT://./#{username},user").and_return(connection)
|
@@ -588,12 +543,6 @@ describe Puppet::Util::Windows::ADSI, :if => Puppet::Util::Platform.windows? do
|
|
588
543
|
expect(Puppet::Util::Windows::ADSI::Group.uri(groupname, ntauthority_localized)).to eq("WinNT://./#{groupname},group")
|
589
544
|
end
|
590
545
|
|
591
|
-
context "when domain-joined" do
|
592
|
-
it_should_behave_like 'a local only resource query', Puppet::Util::Windows::ADSI::Group, :SidTypeGroup do
|
593
|
-
let(:resource_name) { groupname }
|
594
|
-
end
|
595
|
-
end
|
596
|
-
|
597
546
|
it "should be able to create a group" do
|
598
547
|
adsi_group = double("adsi")
|
599
548
|
|
@@ -41,10 +41,6 @@ describe "Puppet::Util::Windows::Service", :if => Puppet.features.microsoft_wind
|
|
41
41
|
expect(subject::QUERY_SERVICE_CONFIGW).to receive(:new).and_return(query_return)
|
42
42
|
end
|
43
43
|
|
44
|
-
def expect_successful_config_query2_and_return(param, query_return)
|
45
|
-
expect(param).to receive(:new).and_return(query_return)
|
46
|
-
end
|
47
|
-
|
48
44
|
let(:subject) { Puppet::Util::Windows::Service }
|
49
45
|
let(:pointer) { double() }
|
50
46
|
let(:mock_service_name) { double() }
|
@@ -55,9 +51,7 @@ describe "Puppet::Util::Windows::Service", :if => Puppet.features.microsoft_wind
|
|
55
51
|
before do
|
56
52
|
allow(subject).to receive(:QueryServiceStatusEx).and_return(1)
|
57
53
|
allow(subject).to receive(:QueryServiceConfigW).and_return(1)
|
58
|
-
allow(subject).to receive(:QueryServiceConfig2W).and_return(1)
|
59
54
|
allow(subject).to receive(:ChangeServiceConfigW).and_return(1)
|
60
|
-
allow(subject).to receive(:ChangeServiceConfig2W).and_return(1)
|
61
55
|
allow(subject).to receive(:OpenSCManagerW).and_return(scm)
|
62
56
|
allow(subject).to receive(:OpenServiceW).and_return(service)
|
63
57
|
allow(subject).to receive(:CloseServiceHandle)
|
@@ -583,9 +577,6 @@ describe "Puppet::Util::Windows::Service", :if => Puppet.features.microsoft_wind
|
|
583
577
|
}.each do |start_type_name, start_type|
|
584
578
|
it "queries the service and returns the service start type #{start_type_name}" do
|
585
579
|
expect_successful_config_query_and_return({:dwStartType => start_type})
|
586
|
-
if start_type_name == :SERVICE_AUTO_START
|
587
|
-
expect_successful_config_query2_and_return(subject::SERVICE_DELAYED_AUTO_START_INFO, {:fDelayedAutostart => 0})
|
588
|
-
end
|
589
580
|
expect(subject.service_start_type(mock_service_name)).to eq(start_type_name)
|
590
581
|
end
|
591
582
|
end
|
data/spec/unit/util_spec.rb
CHANGED
@@ -871,6 +871,16 @@ describe Puppet::Util do
|
|
871
871
|
end
|
872
872
|
end
|
873
873
|
|
874
|
+
it "should use a temporary staging location if provided" do
|
875
|
+
new_target = File.join(tmpdir('new_file'), 'new_file.baz')
|
876
|
+
staging_target = tmpdir('staging_file')
|
877
|
+
|
878
|
+
subject.replace_file(new_target, 0555, staging_location: staging_target) do |fh|
|
879
|
+
expect(File.dirname(fh.path)).to eq(staging_target)
|
880
|
+
fh.puts "foo"
|
881
|
+
end
|
882
|
+
end
|
883
|
+
|
874
884
|
it "should not replace the file if an exception is thrown in the block" do
|
875
885
|
yielded = false
|
876
886
|
threw = false
|
@@ -8,12 +8,6 @@ describe Puppet::X509::CertProvider do
|
|
8
8
|
described_class.new(options)
|
9
9
|
end
|
10
10
|
|
11
|
-
def as_pem_file(pem)
|
12
|
-
path = tmpfile('cert_provider_pem')
|
13
|
-
File.write(path, pem)
|
14
|
-
path
|
15
|
-
end
|
16
|
-
|
17
11
|
def expects_public_file(path)
|
18
12
|
if Puppet::Util::Platform.windows?
|
19
13
|
current_sid = Puppet::Util::Windows::SID.name_to_sid(Puppet::Util::Windows::ADSI::User.current_user_name)
|
@@ -69,7 +63,7 @@ describe Puppet::X509::CertProvider do
|
|
69
63
|
|
70
64
|
context 'and input is invalid' do
|
71
65
|
it 'raises when invalid input is inside BEGIN-END block' do
|
72
|
-
ca_path =
|
66
|
+
ca_path = file_containing('invalid_ca', <<~END)
|
73
67
|
-----BEGIN CERTIFICATE-----
|
74
68
|
whoops
|
75
69
|
-----END CERTIFICATE-----
|
@@ -82,12 +76,12 @@ describe Puppet::X509::CertProvider do
|
|
82
76
|
|
83
77
|
it 'raises if the input is empty' do
|
84
78
|
expect {
|
85
|
-
create_provider(capath:
|
79
|
+
create_provider(capath: file_containing('empty_ca', '')).load_cacerts
|
86
80
|
}.to raise_error(OpenSSL::X509::CertificateError)
|
87
81
|
end
|
88
82
|
|
89
83
|
it 'raises if the input is malformed' do
|
90
|
-
ca_path =
|
84
|
+
ca_path = file_containing('malformed_ca', <<~END)
|
91
85
|
-----BEGIN CERTIFICATE-----
|
92
86
|
MIIBpDCCAQ2gAwIBAgIBAjANBgkqhkiG9w0BAQsFADAfMR0wGwYDVQQDDBRUZXN0
|
93
87
|
END
|
@@ -133,7 +127,7 @@ describe Puppet::X509::CertProvider do
|
|
133
127
|
it 'raises when invalid input is inside BEGIN-END block' do
|
134
128
|
pending('jruby bug: https://github.com/jruby/jruby/issues/5619') if Puppet::Util::Platform.jruby?
|
135
129
|
|
136
|
-
crl_path =
|
130
|
+
crl_path = file_containing('invalid_crls', <<~END)
|
137
131
|
-----BEGIN X509 CRL-----
|
138
132
|
whoops
|
139
133
|
-----END X509 CRL-----
|
@@ -146,12 +140,12 @@ describe Puppet::X509::CertProvider do
|
|
146
140
|
|
147
141
|
it 'raises if the input is empty' do
|
148
142
|
expect {
|
149
|
-
create_provider(crlpath:
|
143
|
+
create_provider(crlpath: file_containing('empty_crl', '')).load_crls
|
150
144
|
}.to raise_error(OpenSSL::X509::CRLError, 'Failed to parse CRLs as PEM')
|
151
145
|
end
|
152
146
|
|
153
147
|
it 'raises if the input is malformed' do
|
154
|
-
crl_path =
|
148
|
+
crl_path = file_containing('malformed_crl', <<~END)
|
155
149
|
-----BEGIN X509 CRL-----
|
156
150
|
MIIBCjB1AgEBMA0GCSqGSIb3DQEBCwUAMBIxEDAOBgNVBAMMB1Rlc3QgQ0EXDTcw
|
157
151
|
END
|
@@ -231,6 +225,7 @@ describe Puppet::X509::CertProvider do
|
|
231
225
|
context 'when loading' do
|
232
226
|
context 'private keys' do
|
233
227
|
let(:provider) { create_provider(privatekeydir: fixture_dir) }
|
228
|
+
let(:password) { '74695716c8b6' }
|
234
229
|
|
235
230
|
it 'returns nil if it does not exist' do
|
236
231
|
provider = create_provider(privatekeydir: '/does/not/exist')
|
@@ -246,10 +241,6 @@ describe Puppet::X509::CertProvider do
|
|
246
241
|
}.to raise_error(Puppet::Error, %r{The private key is missing from '/does/not/exist/whatever.pem'})
|
247
242
|
end
|
248
243
|
|
249
|
-
it 'returns an RSA key' do
|
250
|
-
expect(provider.load_private_key('signed-key')).to be_a(OpenSSL::PKey::RSA)
|
251
|
-
end
|
252
|
-
|
253
244
|
it 'downcases name' do
|
254
245
|
expect(provider.load_private_key('SIGNED-KEY')).to be_a(OpenSSL::PKey::RSA)
|
255
246
|
end
|
@@ -260,11 +251,11 @@ describe Puppet::X509::CertProvider do
|
|
260
251
|
}.to raise_error(RuntimeError, 'Certname "signed/../key" must not contain unprintable or non-ASCII characters')
|
261
252
|
end
|
262
253
|
|
263
|
-
it '
|
254
|
+
it 'returns nil if `hostprivkey` is overridden' do
|
264
255
|
Puppet[:certname] = 'foo'
|
265
256
|
Puppet[:hostprivkey] = File.join(fixture_dir, "signed-key.pem")
|
266
257
|
|
267
|
-
expect(provider.load_private_key('foo')).to
|
258
|
+
expect(provider.load_private_key('foo')).to be_nil
|
268
259
|
end
|
269
260
|
|
270
261
|
it 'raises if the private key is unreadable' do
|
@@ -275,12 +266,48 @@ describe Puppet::X509::CertProvider do
|
|
275
266
|
}.to raise_error(Puppet::Error, "Failed to load private key for 'signed'")
|
276
267
|
end
|
277
268
|
|
278
|
-
context '
|
279
|
-
it '
|
269
|
+
context 'using RSA' do
|
270
|
+
it 'returns an RSA key' do
|
271
|
+
expect(provider.load_private_key('signed-key')).to be_a(OpenSSL::PKey::RSA)
|
272
|
+
end
|
273
|
+
|
274
|
+
it 'decrypts an RSA key using the password' do
|
275
|
+
rsa = provider.load_private_key('encrypted-key', password: password)
|
276
|
+
expect(rsa).to be_a(OpenSSL::PKey::RSA)
|
277
|
+
end
|
278
|
+
|
279
|
+
it 'raises without a password' do
|
280
280
|
# password is 74695716c8b6
|
281
281
|
expect {
|
282
282
|
provider.load_private_key('encrypted-key')
|
283
|
-
}.to raise_error(OpenSSL::PKey::
|
283
|
+
}.to raise_error(OpenSSL::PKey::PKeyError, /Could not parse PKey: no start line/)
|
284
|
+
end
|
285
|
+
|
286
|
+
it 'decrypts an RSA key previously saved using 3DES' do
|
287
|
+
key = key_fixture('signed-key.pem')
|
288
|
+
cipher = OpenSSL::Cipher::DES.new(:EDE3, :CBC)
|
289
|
+
privatekeydir = dir_containing('private_keys', {'oldkey.pem' => key.export(cipher, password)})
|
290
|
+
provider = create_provider(privatekeydir: privatekeydir)
|
291
|
+
|
292
|
+
expect(provider.load_private_key('oldkey', password: password).to_der).to eq(key.to_der)
|
293
|
+
end
|
294
|
+
end
|
295
|
+
|
296
|
+
context 'using EC' do
|
297
|
+
it 'returns an EC key' do
|
298
|
+
expect(provider.load_private_key('ec-key')).to be_a(OpenSSL::PKey::EC)
|
299
|
+
end
|
300
|
+
|
301
|
+
it 'decrypts an EC key using the password' do
|
302
|
+
ec = provider.load_private_key('encrypted-ec-key', password: password)
|
303
|
+
expect(ec).to be_a(OpenSSL::PKey::EC)
|
304
|
+
end
|
305
|
+
|
306
|
+
it 'raises without a password' do
|
307
|
+
# password is 74695716c8b6
|
308
|
+
expect {
|
309
|
+
provider.load_private_key('encrypted-ec-key')
|
310
|
+
}.to raise_error(OpenSSL::PKey::PKeyError, /Could not parse PKey: no start line/)
|
284
311
|
end
|
285
312
|
end
|
286
313
|
end
|
@@ -318,11 +345,11 @@ describe Puppet::X509::CertProvider do
|
|
318
345
|
}.to raise_error(RuntimeError, 'Certname "tom/../key" must not contain unprintable or non-ASCII characters')
|
319
346
|
end
|
320
347
|
|
321
|
-
it '
|
348
|
+
it 'returns nil if `hostcert` is overridden' do
|
322
349
|
Puppet[:certname] = 'foo'
|
323
350
|
Puppet[:hostcert] = File.join(fixture_dir, "signed.pem")
|
324
351
|
|
325
|
-
expect(provider.load_client_cert('foo')).to
|
352
|
+
expect(provider.load_client_cert('foo')).to be_nil
|
326
353
|
end
|
327
354
|
|
328
355
|
it 'raises if the certificate is unreadable' do
|
@@ -388,6 +415,12 @@ describe Puppet::X509::CertProvider do
|
|
388
415
|
expect(File.read(path)).to match(/\A-----BEGIN RSA PRIVATE KEY-----.*?-----END RSA PRIVATE KEY-----\Z/m)
|
389
416
|
end
|
390
417
|
|
418
|
+
it 'encrypts the private key using AES128-CBC' do
|
419
|
+
provider.save_private_key(name, private_key, password: Random.new.bytes(8))
|
420
|
+
|
421
|
+
expect(File.read(path)).to match(/Proc-Type: 4,ENCRYPTED.*DEK-Info: AES-128-CBC/m)
|
422
|
+
end
|
423
|
+
|
391
424
|
it 'sets mode to 640' do
|
392
425
|
provider.save_private_key(name, private_key)
|
393
426
|
|
@@ -413,16 +446,6 @@ describe Puppet::X509::CertProvider do
|
|
413
446
|
provider.save_private_key(name, private_key)
|
414
447
|
}.to raise_error(Puppet::Error, "Failed to save private key for '#{name}'")
|
415
448
|
end
|
416
|
-
|
417
|
-
it 'prefers `hostprivkey` if set' do
|
418
|
-
overridden_path = tmpfile('hostprivkey')
|
419
|
-
Puppet[:hostprivkey] = overridden_path
|
420
|
-
|
421
|
-
provider.save_private_key(name, private_key)
|
422
|
-
|
423
|
-
expect(File).to_not exist(path)
|
424
|
-
expect(File).to exist(overridden_path)
|
425
|
-
end
|
426
449
|
end
|
427
450
|
|
428
451
|
context 'certs' do
|
@@ -462,16 +485,6 @@ describe Puppet::X509::CertProvider do
|
|
462
485
|
provider.save_client_cert(name, client_cert)
|
463
486
|
}.to raise_error(Puppet::Error, "Failed to save client certificate for '#{name}'")
|
464
487
|
end
|
465
|
-
|
466
|
-
it 'prefers `hostcert` if set' do
|
467
|
-
overridden_path = tmpfile('hostcert')
|
468
|
-
Puppet[:hostcert] = overridden_path
|
469
|
-
|
470
|
-
provider.save_client_cert(name, client_cert)
|
471
|
-
|
472
|
-
expect(File).to_not exist(path)
|
473
|
-
expect(File).to exist(overridden_path)
|
474
|
-
end
|
475
488
|
end
|
476
489
|
|
477
490
|
context 'requests' do
|
@@ -544,4 +557,30 @@ describe Puppet::X509::CertProvider do
|
|
544
557
|
end
|
545
558
|
end
|
546
559
|
end
|
560
|
+
|
561
|
+
context 'CRL last update time' do
|
562
|
+
let(:crl_path) { tmpfile('pem_crls') }
|
563
|
+
|
564
|
+
it 'returns nil if the CRL does not exist' do
|
565
|
+
provider = create_provider(crlpath: '/does/not/exist')
|
566
|
+
|
567
|
+
expect(provider.crl_last_update).to be_nil
|
568
|
+
end
|
569
|
+
|
570
|
+
it 'returns the last update time' do
|
571
|
+
time = Time.now - 30
|
572
|
+
Puppet::FileSystem.touch(crl_path, mtime: time)
|
573
|
+
provider = create_provider(crlpath: crl_path)
|
574
|
+
|
575
|
+
expect(provider.crl_last_update).to be_within(1).of(time)
|
576
|
+
end
|
577
|
+
|
578
|
+
it 'sets the last update time' do
|
579
|
+
time = Time.now - 30
|
580
|
+
provider = create_provider(crlpath: crl_path)
|
581
|
+
provider.crl_last_update = time
|
582
|
+
|
583
|
+
expect(Puppet::FileSystem.stat(crl_path).mtime).to be_within(1).of(time)
|
584
|
+
end
|
585
|
+
end
|
547
586
|
end
|
@@ -38,7 +38,8 @@ task(:gen_cert_fixtures) do
|
|
38
38
|
# signed.pem | +- /CN=signed
|
39
39
|
# revoked.pem | +- /CN=revoked
|
40
40
|
# 127.0.0.1.pem | +- /CN=127.0.0.1 (with dns alt names)
|
41
|
-
# tampered.pem
|
41
|
+
# tampered-cert.pem | +- /CN=signed (with different public key)
|
42
|
+
# ec.pem | +- /CN=ec (with EC private key)
|
42
43
|
# |
|
43
44
|
# + /CN=Test CA Agent Subauthority
|
44
45
|
# | |
|
@@ -95,6 +96,17 @@ task(:gen_cert_fixtures) do
|
|
95
96
|
save(dir, 'revoked.pem', revoked[:cert])
|
96
97
|
save(dir, 'revoked-key.pem', revoked[:private_key])
|
97
98
|
|
99
|
+
# Create an EC key and cert, issued by "Test CA Subauthority"
|
100
|
+
ec = ca.create_cert('ec', inter[:cert], inter[:private_key], key_type: :ec)
|
101
|
+
save(dir, 'ec.pem', ec[:cert])
|
102
|
+
save(dir, 'ec-key.pem', ec[:private_key])
|
103
|
+
|
104
|
+
# Create an encrypted version of the above private key for host "ec"
|
105
|
+
save(dir, 'encrypted-ec-key.pem', ec[:private_key]) do |x509|
|
106
|
+
# private key password was chosen at random
|
107
|
+
x509.to_pem(OpenSSL::Cipher::AES.new(128, :CBC), '74695716c8b6')
|
108
|
+
end
|
109
|
+
|
98
110
|
# Update intermediate CRL now that we've revoked
|
99
111
|
save(dir, 'intermediate-crl.pem', inter_crl)
|
100
112
|
|
data/tasks/manpages.rake
CHANGED
@@ -43,7 +43,6 @@ task :gen_manpages do
|
|
43
43
|
# IO.popen("#{ronn} #{ronn_args} > ./man/man5/puppet.conf.5", 'w') do |fh|
|
44
44
|
# fh.write %x{RUBYLIB=./lib:$RUBYLIB bin/puppetdoc --reference configuration}
|
45
45
|
# end
|
46
|
-
%x{mkdir -p ./man/man5 ./man/man8}
|
47
46
|
%x{RUBYLIB=./lib:$RUBYLIB bin/puppet doc --reference configuration > ./man/man5/puppetconf.5.ronn}
|
48
47
|
%x{#{ronn} #{ronn_args} ./man/man5/puppetconf.5.ronn}
|
49
48
|
FileUtils.mv("./man/man5/puppetconf.5", "./man/man5/puppet.conf.5")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.
|
4
|
+
version: 6.5.0
|
5
5
|
platform: x86-mingw32
|
6
6
|
authors:
|
7
7
|
- Puppet Labs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: facter
|
@@ -70,14 +70,14 @@ dependencies:
|
|
70
70
|
requirements:
|
71
71
|
- - "~>"
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version: 1.1
|
73
|
+
version: '1.1'
|
74
74
|
type: :runtime
|
75
75
|
prerelease: false
|
76
76
|
version_requirements: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
78
|
- - "~>"
|
79
79
|
- !ruby/object:Gem::Version
|
80
|
-
version: 1.1
|
80
|
+
version: '1.1'
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
name: locale
|
83
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -210,14 +210,14 @@ dependencies:
|
|
210
210
|
requirements:
|
211
211
|
- - "~>"
|
212
212
|
- !ruby/object:Gem::Version
|
213
|
-
version:
|
213
|
+
version: 0.6.1
|
214
214
|
type: :runtime
|
215
215
|
prerelease: false
|
216
216
|
version_requirements: !ruby/object:Gem::Requirement
|
217
217
|
requirements:
|
218
218
|
- - "~>"
|
219
219
|
- !ruby/object:Gem::Version
|
220
|
-
version:
|
220
|
+
version: 0.6.1
|
221
221
|
description: Puppet, an automated configuration management tool
|
222
222
|
email: info@puppetlabs.com
|
223
223
|
executables:
|
@@ -257,7 +257,6 @@ files:
|
|
257
257
|
- examples/hiera/site.pp
|
258
258
|
- ext/README.environment
|
259
259
|
- ext/build_defaults.yaml
|
260
|
-
- ext/cert_inspector
|
261
260
|
- ext/dbfix.sql
|
262
261
|
- ext/debian/README.Debian
|
263
262
|
- ext/debian/README.source
|
@@ -308,8 +307,6 @@ files:
|
|
308
307
|
- ext/debian/vim-puppet.dirs
|
309
308
|
- ext/debian/vim-puppet.yaml
|
310
309
|
- ext/debian/watch
|
311
|
-
- ext/envpuppet
|
312
|
-
- ext/envpuppet.bat
|
313
310
|
- ext/freebsd/puppetd
|
314
311
|
- ext/freebsd/puppetmasterd
|
315
312
|
- ext/gentoo/conf.d/puppet
|
@@ -334,8 +331,6 @@ files:
|
|
334
331
|
- ext/osx/prototype.plist.erb
|
335
332
|
- ext/osx/puppet.plist
|
336
333
|
- ext/project_data.yaml
|
337
|
-
- ext/puppet-test
|
338
|
-
- ext/pure_ruby_dsl/dsl_test.rb
|
339
334
|
- ext/redhat/client.init
|
340
335
|
- ext/redhat/client.sysconfig
|
341
336
|
- ext/redhat/fileserver.conf
|
@@ -361,7 +356,9 @@ files:
|
|
361
356
|
- ext/suse/puppet.spec
|
362
357
|
- ext/suse/server.init
|
363
358
|
- ext/systemd/puppet.service
|
364
|
-
- ext/
|
359
|
+
- ext/windows/eventlog/Rakefile
|
360
|
+
- ext/windows/eventlog/puppetres.dll
|
361
|
+
- ext/windows/eventlog/puppetres.mc
|
365
362
|
- ext/windows/puppet_interactive.bat
|
366
363
|
- ext/windows/puppet_shell.bat
|
367
364
|
- ext/windows/run_puppet_interactive.bat
|
@@ -911,6 +908,7 @@ files:
|
|
911
908
|
- lib/puppet/pops/loader/loader.rb
|
912
909
|
- lib/puppet/pops/loader/loader_paths.rb
|
913
910
|
- lib/puppet/pops/loader/module_loaders.rb
|
911
|
+
- lib/puppet/pops/loader/null_loader.rb
|
914
912
|
- lib/puppet/pops/loader/predefined_loader.rb
|
915
913
|
- lib/puppet/pops/loader/puppet_function_instantiator.rb
|
916
914
|
- lib/puppet/pops/loader/puppet_plan_instantiator.rb
|
@@ -1077,7 +1075,6 @@ files:
|
|
1077
1075
|
- lib/puppet/provider/package/aptrpm.rb
|
1078
1076
|
- lib/puppet/provider/package/blastwave.rb
|
1079
1077
|
- lib/puppet/provider/package/dnf.rb
|
1080
|
-
- lib/puppet/provider/package/dnfmodule.rb
|
1081
1078
|
- lib/puppet/provider/package/dpkg.rb
|
1082
1079
|
- lib/puppet/provider/package/fink.rb
|
1083
1080
|
- lib/puppet/provider/package/freebsd.rb
|
@@ -1465,6 +1462,9 @@ files:
|
|
1465
1462
|
- spec/fixtures/ssl/bad-int-basic-constraints.pem
|
1466
1463
|
- spec/fixtures/ssl/ca.pem
|
1467
1464
|
- spec/fixtures/ssl/crl.pem
|
1465
|
+
- spec/fixtures/ssl/ec-key.pem
|
1466
|
+
- spec/fixtures/ssl/ec.pem
|
1467
|
+
- spec/fixtures/ssl/encrypted-ec-key.pem
|
1468
1468
|
- spec/fixtures/ssl/encrypted-key.pem
|
1469
1469
|
- spec/fixtures/ssl/intermediate-agent-crl.pem
|
1470
1470
|
- spec/fixtures/ssl/intermediate-agent.pem
|
@@ -1678,6 +1678,7 @@ files:
|
|
1678
1678
|
- spec/fixtures/unit/pops/loaders/loaders/mix_4x_and_3x_functions/usee/lib/puppet/parser/functions/bad_func_load5.rb
|
1679
1679
|
- spec/fixtures/unit/pops/loaders/loaders/mix_4x_and_3x_functions/usee/lib/puppet/parser/functions/callee.rb
|
1680
1680
|
- spec/fixtures/unit/pops/loaders/loaders/mix_4x_and_3x_functions/usee/lib/puppet/parser/functions/callee_ws.rb
|
1681
|
+
- spec/fixtures/unit/pops/loaders/loaders/mix_4x_and_3x_functions/usee/lib/puppet/parser/functions/func_with_syntax_error.rb
|
1681
1682
|
- spec/fixtures/unit/pops/loaders/loaders/mix_4x_and_3x_functions/usee/lib/puppet/parser/functions/good_func_load.rb
|
1682
1683
|
- spec/fixtures/unit/pops/loaders/loaders/mix_4x_and_3x_functions/usee/metadata.json
|
1683
1684
|
- spec/fixtures/unit/pops/loaders/loaders/mix_4x_and_3x_functions/user/functions/puppetcalled.pp
|
@@ -1748,7 +1749,6 @@ files:
|
|
1748
1749
|
- spec/fixtures/unit/provider/cron/crontab/vixie_header.txt
|
1749
1750
|
- spec/fixtures/unit/provider/cron/parsed/managed
|
1750
1751
|
- spec/fixtures/unit/provider/cron/parsed/simple
|
1751
|
-
- spec/fixtures/unit/provider/package/dnfmodule/dnf-module-list-installed.txt
|
1752
1752
|
- spec/fixtures/unit/provider/package/gem/gem-list-single-package
|
1753
1753
|
- spec/fixtures/unit/provider/package/gem/line-with-1.8.5-warning
|
1754
1754
|
- spec/fixtures/unit/provider/package/openbsd/pkginfo.detail
|
@@ -1799,6 +1799,9 @@ files:
|
|
1799
1799
|
- spec/fixtures/unit/util/filetype/suntab_output
|
1800
1800
|
- spec/fixtures/unit/util/monkey_patches/x509.pem
|
1801
1801
|
- spec/fixtures/unit/util/rdoc/basic.pp
|
1802
|
+
- spec/fixtures/vcr/cassettes/Puppet_Network_HTTP_Connection/when_handling_requests/_request_get/should_yield_to_the_block.yml
|
1803
|
+
- spec/fixtures/vcr/cassettes/Puppet_Network_HTTP_Connection/when_handling_requests/_request_head/should_yield_to_the_block.yml
|
1804
|
+
- spec/fixtures/vcr/cassettes/Puppet_Network_HTTP_Connection/when_handling_requests/_request_post/should_yield_to_the_block.yml
|
1802
1805
|
- spec/fixtures/vcr/cassettes/Puppet_Type_File/when_sourcing/from_http/using_md5/should_fetch_if_not_on_the_local_disk.yml
|
1803
1806
|
- spec/fixtures/vcr/cassettes/Puppet_Type_File/when_sourcing/from_http/using_md5/should_not_update_if_content_on_disk_is_up-to-date.yml
|
1804
1807
|
- spec/fixtures/vcr/cassettes/Puppet_Type_File/when_sourcing/from_http/using_md5/should_update_if_content_differs_on_disk.yml
|
@@ -1872,7 +1875,6 @@ files:
|
|
1872
1875
|
- spec/integration/transaction_spec.rb
|
1873
1876
|
- spec/integration/type/exec_spec.rb
|
1874
1877
|
- spec/integration/type/file_spec.rb
|
1875
|
-
- spec/integration/type/notify_spec.rb
|
1876
1878
|
- spec/integration/type/package_spec.rb
|
1877
1879
|
- spec/integration/type/tidy_spec.rb
|
1878
1880
|
- spec/integration/type_spec.rb
|
@@ -2402,7 +2404,6 @@ files:
|
|
2402
2404
|
- spec/unit/provider/package/aptrpm_spec.rb
|
2403
2405
|
- spec/unit/provider/package/base_spec.rb
|
2404
2406
|
- spec/unit/provider/package/dnf_spec.rb
|
2405
|
-
- spec/unit/provider/package/dnfmodule_spec.rb
|
2406
2407
|
- spec/unit/provider/package/dpkg_spec.rb
|
2407
2408
|
- spec/unit/provider/package/freebsd_spec.rb
|
2408
2409
|
- spec/unit/provider/package/gem_spec.rb
|
@@ -2432,7 +2433,6 @@ files:
|
|
2432
2433
|
- spec/unit/provider/package/windows_spec.rb
|
2433
2434
|
- spec/unit/provider/package/yum_spec.rb
|
2434
2435
|
- spec/unit/provider/package/zypper_spec.rb
|
2435
|
-
- spec/unit/provider/package_targetable_spec.rb
|
2436
2436
|
- spec/unit/provider/parsedfile_spec.rb
|
2437
2437
|
- spec/unit/provider/service/base_spec.rb
|
2438
2438
|
- spec/unit/provider/service/bsd_spec.rb
|
@@ -2597,6 +2597,7 @@ files:
|
|
2597
2597
|
- spec/unit/util/rubygems_spec.rb
|
2598
2598
|
- spec/unit/util/run_mode_spec.rb
|
2599
2599
|
- spec/unit/util/selinux_spec.rb
|
2600
|
+
- spec/unit/util/skip_tags_spec.rb
|
2600
2601
|
- spec/unit/util/splayer_spec.rb
|
2601
2602
|
- spec/unit/util/ssl_spec.rb
|
2602
2603
|
- spec/unit/util/storage_spec.rb
|
@@ -2659,7 +2660,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
2659
2660
|
- !ruby/object:Gem::Version
|
2660
2661
|
version: 1.3.1
|
2661
2662
|
requirements: []
|
2662
|
-
|
2663
|
+
rubyforge_project: puppet
|
2664
|
+
rubygems_version: 2.7.7
|
2663
2665
|
signing_key:
|
2664
2666
|
specification_version: 4
|
2665
2667
|
summary: Puppet, an automated configuration management tool
|
@@ -2702,6 +2704,9 @@ test_files:
|
|
2702
2704
|
- spec/fixtures/ssl/bad-int-basic-constraints.pem
|
2703
2705
|
- spec/fixtures/ssl/ca.pem
|
2704
2706
|
- spec/fixtures/ssl/crl.pem
|
2707
|
+
- spec/fixtures/ssl/ec-key.pem
|
2708
|
+
- spec/fixtures/ssl/ec.pem
|
2709
|
+
- spec/fixtures/ssl/encrypted-ec-key.pem
|
2705
2710
|
- spec/fixtures/ssl/encrypted-key.pem
|
2706
2711
|
- spec/fixtures/ssl/intermediate-agent-crl.pem
|
2707
2712
|
- spec/fixtures/ssl/intermediate-agent.pem
|
@@ -2915,6 +2920,7 @@ test_files:
|
|
2915
2920
|
- spec/fixtures/unit/pops/loaders/loaders/mix_4x_and_3x_functions/usee/lib/puppet/parser/functions/bad_func_load5.rb
|
2916
2921
|
- spec/fixtures/unit/pops/loaders/loaders/mix_4x_and_3x_functions/usee/lib/puppet/parser/functions/callee.rb
|
2917
2922
|
- spec/fixtures/unit/pops/loaders/loaders/mix_4x_and_3x_functions/usee/lib/puppet/parser/functions/callee_ws.rb
|
2923
|
+
- spec/fixtures/unit/pops/loaders/loaders/mix_4x_and_3x_functions/usee/lib/puppet/parser/functions/func_with_syntax_error.rb
|
2918
2924
|
- spec/fixtures/unit/pops/loaders/loaders/mix_4x_and_3x_functions/usee/lib/puppet/parser/functions/good_func_load.rb
|
2919
2925
|
- spec/fixtures/unit/pops/loaders/loaders/mix_4x_and_3x_functions/usee/metadata.json
|
2920
2926
|
- spec/fixtures/unit/pops/loaders/loaders/mix_4x_and_3x_functions/user/functions/puppetcalled.pp
|
@@ -2985,7 +2991,6 @@ test_files:
|
|
2985
2991
|
- spec/fixtures/unit/provider/cron/crontab/vixie_header.txt
|
2986
2992
|
- spec/fixtures/unit/provider/cron/parsed/managed
|
2987
2993
|
- spec/fixtures/unit/provider/cron/parsed/simple
|
2988
|
-
- spec/fixtures/unit/provider/package/dnfmodule/dnf-module-list-installed.txt
|
2989
2994
|
- spec/fixtures/unit/provider/package/gem/gem-list-single-package
|
2990
2995
|
- spec/fixtures/unit/provider/package/gem/line-with-1.8.5-warning
|
2991
2996
|
- spec/fixtures/unit/provider/package/openbsd/pkginfo.detail
|
@@ -3036,6 +3041,9 @@ test_files:
|
|
3036
3041
|
- spec/fixtures/unit/util/filetype/suntab_output
|
3037
3042
|
- spec/fixtures/unit/util/monkey_patches/x509.pem
|
3038
3043
|
- spec/fixtures/unit/util/rdoc/basic.pp
|
3044
|
+
- spec/fixtures/vcr/cassettes/Puppet_Network_HTTP_Connection/when_handling_requests/_request_get/should_yield_to_the_block.yml
|
3045
|
+
- spec/fixtures/vcr/cassettes/Puppet_Network_HTTP_Connection/when_handling_requests/_request_head/should_yield_to_the_block.yml
|
3046
|
+
- spec/fixtures/vcr/cassettes/Puppet_Network_HTTP_Connection/when_handling_requests/_request_post/should_yield_to_the_block.yml
|
3039
3047
|
- spec/fixtures/vcr/cassettes/Puppet_Type_File/when_sourcing/from_http/using_md5/should_fetch_if_not_on_the_local_disk.yml
|
3040
3048
|
- spec/fixtures/vcr/cassettes/Puppet_Type_File/when_sourcing/from_http/using_md5/should_not_update_if_content_on_disk_is_up-to-date.yml
|
3041
3049
|
- spec/fixtures/vcr/cassettes/Puppet_Type_File/when_sourcing/from_http/using_md5/should_update_if_content_differs_on_disk.yml
|
@@ -3109,7 +3117,6 @@ test_files:
|
|
3109
3117
|
- spec/integration/transaction_spec.rb
|
3110
3118
|
- spec/integration/type/exec_spec.rb
|
3111
3119
|
- spec/integration/type/file_spec.rb
|
3112
|
-
- spec/integration/type/notify_spec.rb
|
3113
3120
|
- spec/integration/type/package_spec.rb
|
3114
3121
|
- spec/integration/type/tidy_spec.rb
|
3115
3122
|
- spec/integration/type_spec.rb
|
@@ -3639,7 +3646,6 @@ test_files:
|
|
3639
3646
|
- spec/unit/provider/package/aptrpm_spec.rb
|
3640
3647
|
- spec/unit/provider/package/base_spec.rb
|
3641
3648
|
- spec/unit/provider/package/dnf_spec.rb
|
3642
|
-
- spec/unit/provider/package/dnfmodule_spec.rb
|
3643
3649
|
- spec/unit/provider/package/dpkg_spec.rb
|
3644
3650
|
- spec/unit/provider/package/freebsd_spec.rb
|
3645
3651
|
- spec/unit/provider/package/gem_spec.rb
|
@@ -3669,7 +3675,6 @@ test_files:
|
|
3669
3675
|
- spec/unit/provider/package/windows_spec.rb
|
3670
3676
|
- spec/unit/provider/package/yum_spec.rb
|
3671
3677
|
- spec/unit/provider/package/zypper_spec.rb
|
3672
|
-
- spec/unit/provider/package_targetable_spec.rb
|
3673
3678
|
- spec/unit/provider/parsedfile_spec.rb
|
3674
3679
|
- spec/unit/provider/service/base_spec.rb
|
3675
3680
|
- spec/unit/provider/service/bsd_spec.rb
|
@@ -3834,6 +3839,7 @@ test_files:
|
|
3834
3839
|
- spec/unit/util/rubygems_spec.rb
|
3835
3840
|
- spec/unit/util/run_mode_spec.rb
|
3836
3841
|
- spec/unit/util/selinux_spec.rb
|
3842
|
+
- spec/unit/util/skip_tags_spec.rb
|
3837
3843
|
- spec/unit/util/splayer_spec.rb
|
3838
3844
|
- spec/unit/util/ssl_spec.rb
|
3839
3845
|
- spec/unit/util/storage_spec.rb
|