puppet 6.4.3 → 6.4.4

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.

Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/CODEOWNERS +9 -9
  3. data/Gemfile +2 -2
  4. data/Gemfile.lock +23 -23
  5. data/ext/project_data.yaml +2 -2
  6. data/install.rb +3 -21
  7. data/lib/puppet/application/agent.rb +12 -0
  8. data/lib/puppet/application/device.rb +14 -4
  9. data/lib/puppet/application/resource.rb +4 -4
  10. data/lib/puppet/defaults.rb +12 -0
  11. data/lib/puppet/face/config.rb +10 -48
  12. data/lib/puppet/face/facts.rb +1 -1
  13. data/lib/puppet/face/help.rb +1 -1
  14. data/lib/puppet/face/plugin.rb +9 -2
  15. data/lib/puppet/indirector/catalog/compiler.rb +11 -5
  16. data/lib/puppet/module_tool/tar/mini.rb +11 -1
  17. data/lib/puppet/network/http/factory.rb +1 -11
  18. data/lib/puppet/provider/file/posix.rb +5 -0
  19. data/lib/puppet/provider/nameservice.rb +10 -3
  20. data/lib/puppet/provider/package/dnf.rb +1 -1
  21. data/lib/puppet/provider/package/pip.rb +2 -2
  22. data/lib/puppet/provider/package/rpm.rb +51 -13
  23. data/lib/puppet/provider/package/yum.rb +8 -4
  24. data/lib/puppet/provider/service/launchd.rb +20 -5
  25. data/lib/puppet/provider/service/systemd.rb +5 -10
  26. data/lib/puppet/provider/service/windows.rb +8 -0
  27. data/lib/puppet/provider/user/pw.rb +12 -3
  28. data/lib/puppet/provider/user/user_role_add.rb +4 -0
  29. data/lib/puppet/provider/user/useradd.rb +23 -7
  30. data/lib/puppet/resource.rb +17 -0
  31. data/lib/puppet/settings.rb +40 -0
  32. data/lib/puppet/type/exec.rb +14 -6
  33. data/lib/puppet/type/package.rb +10 -0
  34. data/lib/puppet/type/service.rb +7 -2
  35. data/lib/puppet/util/execution.rb +4 -3
  36. data/lib/puppet/util/http_proxy.rb +19 -5
  37. data/lib/puppet/util/selinux.rb +5 -1
  38. data/lib/puppet/util/windows/security.rb +2 -0
  39. data/lib/puppet/util/windows/service.rb +149 -4
  40. data/lib/puppet/util/windows/sid.rb +1 -0
  41. data/lib/puppet/version.rb +1 -1
  42. data/locales/puppet.pot +168 -152
  43. data/man/man5/puppet.conf.5 +18 -2
  44. data/man/man8/puppet-agent.8 +1 -1
  45. data/man/man8/puppet-apply.8 +1 -1
  46. data/man/man8/puppet-catalog.8 +1 -1
  47. data/man/man8/puppet-config.8 +1 -1
  48. data/man/man8/puppet-describe.8 +1 -1
  49. data/man/man8/puppet-device.8 +1 -1
  50. data/man/man8/puppet-doc.8 +1 -1
  51. data/man/man8/puppet-epp.8 +1 -1
  52. data/man/man8/puppet-facts.8 +1 -1
  53. data/man/man8/puppet-filebucket.8 +1 -1
  54. data/man/man8/puppet-generate.8 +1 -1
  55. data/man/man8/puppet-help.8 +1 -1
  56. data/man/man8/puppet-key.8 +1 -1
  57. data/man/man8/puppet-lookup.8 +1 -1
  58. data/man/man8/puppet-man.8 +1 -1
  59. data/man/man8/puppet-module.8 +1 -1
  60. data/man/man8/puppet-node.8 +1 -1
  61. data/man/man8/puppet-parser.8 +1 -1
  62. data/man/man8/puppet-plugin.8 +1 -1
  63. data/man/man8/puppet-report.8 +1 -1
  64. data/man/man8/puppet-resource.8 +1 -1
  65. data/man/man8/puppet-script.8 +1 -1
  66. data/man/man8/puppet-ssl.8 +1 -1
  67. data/man/man8/puppet-status.8 +1 -1
  68. data/man/man8/puppet.8 +3 -3
  69. data/spec/integration/provider/service/systemd_spec.rb +8 -5
  70. data/spec/integration/type/file_spec.rb +28 -0
  71. data/spec/integration/util/execution_spec.rb +27 -0
  72. data/spec/unit/application/agent_spec.rb +20 -8
  73. data/spec/unit/application/device_spec.rb +27 -1
  74. data/spec/unit/face/facts_spec.rb +9 -0
  75. data/spec/unit/face/plugin_spec.rb +8 -0
  76. data/spec/unit/indirector/catalog/compiler_spec.rb +62 -5
  77. data/spec/unit/module_tool/tar/mini_spec.rb +1 -1
  78. data/spec/unit/network/http/api/indirected_routes_spec.rb +25 -10
  79. data/spec/unit/network/http/factory_spec.rb +27 -5
  80. data/spec/unit/pops/validator/validator_spec.rb +7 -0
  81. data/spec/unit/provider/package/aptrpm_spec.rb +1 -1
  82. data/spec/unit/provider/package/dnf_spec.rb +7 -0
  83. data/spec/unit/provider/package/dpkg_spec.rb +2 -2
  84. data/spec/unit/provider/package/pip_spec.rb +8 -0
  85. data/spec/unit/provider/package/rpm_spec.rb +150 -16
  86. data/spec/unit/provider/package/yum_spec.rb +7 -0
  87. data/spec/unit/provider/service/launchd_spec.rb +28 -0
  88. data/spec/unit/provider/service/systemd_spec.rb +14 -0
  89. data/spec/unit/provider/service/windows_spec.rb +20 -0
  90. data/spec/unit/provider/user/pw_spec.rb +37 -0
  91. data/spec/unit/provider/user/useradd_spec.rb +42 -0
  92. data/spec/unit/resource_spec.rb +26 -1
  93. data/spec/unit/transaction_spec.rb +18 -0
  94. data/spec/unit/type/exec_spec.rb +9 -0
  95. data/spec/unit/type/file/source_spec.rb +4 -4
  96. data/spec/unit/type/schedule_spec.rb +3 -1
  97. data/spec/unit/type/service_spec.rb +16 -0
  98. data/spec/unit/util/http_proxy_spec.rb +40 -1
  99. data/spec/unit/util/log_spec.rb +27 -1
  100. data/spec/unit/util/windows/service_spec.rb +9 -0
  101. metadata +3 -7
  102. data/ext/windows/eventlog/Rakefile +0 -32
  103. data/ext/windows/eventlog/puppetres.dll +0 -0
  104. 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.3
4
+ version: 6.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet Labs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-15 00:00:00.000000000 Z
11
+ date: 2019-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: facter
@@ -278,9 +278,6 @@ files:
278
278
  - ext/suse/server.init
279
279
  - ext/systemd/puppet.service
280
280
  - ext/upload_facts.rb
281
- - ext/windows/eventlog/Rakefile
282
- - ext/windows/eventlog/puppetres.dll
283
- - ext/windows/eventlog/puppetres.mc
284
281
  - ext/windows/puppet_interactive.bat
285
282
  - ext/windows/puppet_shell.bat
286
283
  - ext/windows/run_puppet_interactive.bat
@@ -2577,8 +2574,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
2577
2574
  - !ruby/object:Gem::Version
2578
2575
  version: 1.3.1
2579
2576
  requirements: []
2580
- rubyforge_project: puppet
2581
- rubygems_version: 2.7.7
2577
+ rubygems_version: 3.0.4
2582
2578
  signing_key:
2583
2579
  specification_version: 4
2584
2580
  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
@@ -1,18 +0,0 @@
1
- MessageId=0x1
2
- SymbolicName=PUPPET_INFO
3
- Language=English
4
- %1
5
- .
6
-
7
- MessageId=0x2
8
- SymbolicName=PUPPET_WARN
9
- Language=English
10
- %1
11
- .
12
-
13
- MessageId=0x3
14
- SymbolicName=PUPPET_ERROR
15
- Language=English
16
- %1
17
- .
18
-