puppet 6.4.3-x86-mingw32 → 6.4.4-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 +9 -9
- data/Gemfile +2 -2
- data/Gemfile.lock +23 -23
- data/ext/project_data.yaml +2 -2
- data/install.rb +3 -21
- data/lib/puppet/application/agent.rb +12 -0
- data/lib/puppet/application/device.rb +14 -4
- data/lib/puppet/application/resource.rb +4 -4
- data/lib/puppet/defaults.rb +12 -0
- data/lib/puppet/face/config.rb +10 -48
- data/lib/puppet/face/facts.rb +1 -1
- data/lib/puppet/face/help.rb +1 -1
- data/lib/puppet/face/plugin.rb +9 -2
- data/lib/puppet/indirector/catalog/compiler.rb +11 -5
- data/lib/puppet/module_tool/tar/mini.rb +11 -1
- data/lib/puppet/network/http/factory.rb +1 -11
- data/lib/puppet/provider/file/posix.rb +5 -0
- data/lib/puppet/provider/nameservice.rb +10 -3
- data/lib/puppet/provider/package/dnf.rb +1 -1
- data/lib/puppet/provider/package/pip.rb +2 -2
- data/lib/puppet/provider/package/rpm.rb +51 -13
- data/lib/puppet/provider/package/yum.rb +8 -4
- data/lib/puppet/provider/service/launchd.rb +20 -5
- data/lib/puppet/provider/service/systemd.rb +5 -10
- data/lib/puppet/provider/service/windows.rb +8 -0
- data/lib/puppet/provider/user/pw.rb +12 -3
- data/lib/puppet/provider/user/user_role_add.rb +4 -0
- data/lib/puppet/provider/user/useradd.rb +23 -7
- data/lib/puppet/resource.rb +17 -0
- data/lib/puppet/settings.rb +40 -0
- data/lib/puppet/type/exec.rb +14 -6
- data/lib/puppet/type/package.rb +10 -0
- data/lib/puppet/type/service.rb +7 -2
- data/lib/puppet/util/execution.rb +4 -3
- data/lib/puppet/util/http_proxy.rb +19 -5
- data/lib/puppet/util/selinux.rb +5 -1
- data/lib/puppet/util/windows/security.rb +2 -0
- data/lib/puppet/util/windows/service.rb +149 -4
- data/lib/puppet/util/windows/sid.rb +1 -0
- data/lib/puppet/version.rb +1 -1
- data/locales/puppet.pot +168 -152
- data/man/man5/puppet.conf.5 +18 -2
- data/man/man8/puppet-agent.8 +1 -1
- data/man/man8/puppet-apply.8 +1 -1
- data/man/man8/puppet-catalog.8 +1 -1
- 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/integration/provider/service/systemd_spec.rb +8 -5
- data/spec/integration/type/file_spec.rb +28 -0
- data/spec/integration/util/execution_spec.rb +27 -0
- data/spec/unit/application/agent_spec.rb +20 -8
- data/spec/unit/application/device_spec.rb +27 -1
- data/spec/unit/face/facts_spec.rb +9 -0
- data/spec/unit/face/plugin_spec.rb +8 -0
- data/spec/unit/indirector/catalog/compiler_spec.rb +62 -5
- data/spec/unit/module_tool/tar/mini_spec.rb +1 -1
- data/spec/unit/network/http/api/indirected_routes_spec.rb +25 -10
- data/spec/unit/network/http/factory_spec.rb +27 -5
- data/spec/unit/pops/validator/validator_spec.rb +7 -0
- data/spec/unit/provider/package/aptrpm_spec.rb +1 -1
- data/spec/unit/provider/package/dnf_spec.rb +7 -0
- data/spec/unit/provider/package/dpkg_spec.rb +2 -2
- data/spec/unit/provider/package/pip_spec.rb +8 -0
- data/spec/unit/provider/package/rpm_spec.rb +150 -16
- data/spec/unit/provider/package/yum_spec.rb +7 -0
- data/spec/unit/provider/service/launchd_spec.rb +28 -0
- data/spec/unit/provider/service/systemd_spec.rb +14 -0
- data/spec/unit/provider/service/windows_spec.rb +20 -0
- data/spec/unit/provider/user/pw_spec.rb +37 -0
- data/spec/unit/provider/user/useradd_spec.rb +42 -0
- data/spec/unit/resource_spec.rb +26 -1
- data/spec/unit/transaction_spec.rb +18 -0
- data/spec/unit/type/exec_spec.rb +9 -0
- data/spec/unit/type/file/source_spec.rb +4 -4
- data/spec/unit/type/schedule_spec.rb +3 -1
- data/spec/unit/type/service_spec.rb +16 -0
- data/spec/unit/util/http_proxy_spec.rb +40 -1
- data/spec/unit/util/log_spec.rb +27 -1
- data/spec/unit/util/windows/service_spec.rb +9 -0
- metadata +5 -9
- data/ext/windows/eventlog/Rakefile +0 -32
- data/ext/windows/eventlog/puppetres.dll +0 -0
- data/ext/windows/eventlog/puppetres.mc +0 -18
@@ -41,6 +41,10 @@ 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
|
+
|
44
48
|
let(:subject) { Puppet::Util::Windows::Service }
|
45
49
|
let(:pointer) { double() }
|
46
50
|
let(:mock_service_name) { double() }
|
@@ -51,7 +55,9 @@ describe "Puppet::Util::Windows::Service", :if => Puppet.features.microsoft_wind
|
|
51
55
|
before do
|
52
56
|
allow(subject).to receive(:QueryServiceStatusEx).and_return(1)
|
53
57
|
allow(subject).to receive(:QueryServiceConfigW).and_return(1)
|
58
|
+
allow(subject).to receive(:QueryServiceConfig2W).and_return(1)
|
54
59
|
allow(subject).to receive(:ChangeServiceConfigW).and_return(1)
|
60
|
+
allow(subject).to receive(:ChangeServiceConfig2W).and_return(1)
|
55
61
|
allow(subject).to receive(:OpenSCManagerW).and_return(scm)
|
56
62
|
allow(subject).to receive(:OpenServiceW).and_return(service)
|
57
63
|
allow(subject).to receive(:CloseServiceHandle)
|
@@ -577,6 +583,9 @@ describe "Puppet::Util::Windows::Service", :if => Puppet.features.microsoft_wind
|
|
577
583
|
}.each do |start_type_name, start_type|
|
578
584
|
it "queries the service and returns the service start type #{start_type_name}" do
|
579
585
|
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
|
580
589
|
expect(subject.service_start_type(mock_service_name)).to eq(start_type_name)
|
581
590
|
end
|
582
591
|
end
|
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.
|
4
|
+
version: 6.4.4
|
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: 2019-
|
11
|
+
date: 2019-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: facter
|
@@ -210,14 +210,14 @@ dependencies:
|
|
210
210
|
requirements:
|
211
211
|
- - "~>"
|
212
212
|
- !ruby/object:Gem::Version
|
213
|
-
version: 0.
|
213
|
+
version: '0.9'
|
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: 0.
|
220
|
+
version: '0.9'
|
221
221
|
description: Puppet, an automated configuration management tool
|
222
222
|
email: info@puppetlabs.com
|
223
223
|
executables:
|
@@ -362,9 +362,6 @@ files:
|
|
362
362
|
- ext/suse/server.init
|
363
363
|
- ext/systemd/puppet.service
|
364
364
|
- ext/upload_facts.rb
|
365
|
-
- ext/windows/eventlog/Rakefile
|
366
|
-
- ext/windows/eventlog/puppetres.dll
|
367
|
-
- ext/windows/eventlog/puppetres.mc
|
368
365
|
- ext/windows/puppet_interactive.bat
|
369
366
|
- ext/windows/puppet_shell.bat
|
370
367
|
- ext/windows/run_puppet_interactive.bat
|
@@ -2661,8 +2658,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
2661
2658
|
- !ruby/object:Gem::Version
|
2662
2659
|
version: 1.3.1
|
2663
2660
|
requirements: []
|
2664
|
-
|
2665
|
-
rubygems_version: 2.7.7
|
2661
|
+
rubygems_version: 3.0.4
|
2666
2662
|
signing_key:
|
2667
2663
|
specification_version: 4
|
2668
2664
|
summary: Puppet, an automated configuration management tool
|
@@ -1,32 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'rake'
|
3
|
-
require 'fileutils'
|
4
|
-
require 'rbconfig'
|
5
|
-
|
6
|
-
BASENAME = "puppetres"
|
7
|
-
|
8
|
-
task :default do
|
9
|
-
sh 'rake -T'
|
10
|
-
end
|
11
|
-
|
12
|
-
desc 'Build puppet eventlog message dll'
|
13
|
-
task :dist => ['out', "#{BASENAME}.dll"]
|
14
|
-
|
15
|
-
directory 'out'
|
16
|
-
|
17
|
-
rule '.rc' => '.mc' do |t|
|
18
|
-
sh "mc -b -r out -h out #{t.source}"
|
19
|
-
end
|
20
|
-
|
21
|
-
rule '.res' => '.rc' do |t|
|
22
|
-
sh "rc -nologo -r -fo out/#{t.name} out/#{t.source}"
|
23
|
-
end
|
24
|
-
|
25
|
-
rule '.dll' => '.res' do |t|
|
26
|
-
sh "link -nologo -dll -noentry -machine:x86 -out:out/#{t.name} out/#{t.source}"
|
27
|
-
end
|
28
|
-
|
29
|
-
desc 'Delete generated files'
|
30
|
-
task :clean do
|
31
|
-
FileUtils.rm_rf('out')
|
32
|
-
end
|
Binary file
|