puppet 6.18.0-x86-mingw32 → 6.19.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.

Files changed (144) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +8 -10
  3. data/README.md +1 -2
  4. data/Rakefile +4 -12
  5. data/lib/puppet/agent/locker.rb +0 -7
  6. data/lib/puppet/application/agent.rb +8 -3
  7. data/lib/puppet/application/doc.rb +1 -1
  8. data/lib/puppet/application/lookup.rb +5 -5
  9. data/lib/puppet/configurer.rb +39 -7
  10. data/lib/puppet/defaults.rb +55 -29
  11. data/lib/puppet/environments.rb +51 -10
  12. data/lib/puppet/face/catalog.rb +1 -1
  13. data/lib/puppet/face/config.rb +46 -16
  14. data/lib/puppet/face/node.rb +3 -3
  15. data/lib/puppet/face/node/clean.rb +2 -2
  16. data/lib/puppet/face/status.rb +1 -1
  17. data/lib/puppet/file_bucket/dipper.rb +1 -1
  18. data/lib/puppet/functions/new.rb +8 -3
  19. data/lib/puppet/http.rb +1 -0
  20. data/lib/puppet/http/client.rb +1 -1
  21. data/lib/puppet/http/resolver.rb +5 -8
  22. data/lib/puppet/http/resolver/server_list.rb +18 -36
  23. data/lib/puppet/http/resolver/settings.rb +4 -4
  24. data/lib/puppet/http/resolver/srv.rb +5 -5
  25. data/lib/puppet/http/service.rb +3 -1
  26. data/lib/puppet/http/service/compiler.rb +1 -1
  27. data/lib/puppet/http/service/file_server.rb +1 -1
  28. data/lib/puppet/http/service/puppetserver.rb +39 -0
  29. data/lib/puppet/http/session.rb +5 -4
  30. data/lib/puppet/indirector/catalog/compiler.rb +1 -1
  31. data/lib/puppet/indirector/facts/yaml.rb +1 -1
  32. data/lib/puppet/indirector/json.rb +1 -1
  33. data/lib/puppet/indirector/msgpack.rb +1 -1
  34. data/lib/puppet/indirector/request.rb +4 -4
  35. data/lib/puppet/indirector/yaml.rb +1 -1
  36. data/lib/puppet/network/http/api/master/v3/environments.rb +0 -1
  37. data/lib/puppet/node/facts.rb +17 -0
  38. data/lib/puppet/pops/evaluator/collectors/abstract_collector.rb +1 -3
  39. data/lib/puppet/pops/evaluator/runtime3_converter.rb +2 -2
  40. data/lib/puppet/pops/types/p_meta_type.rb +1 -1
  41. data/lib/puppet/pops/types/p_type_set_type.rb +4 -0
  42. data/lib/puppet/provider/package/dpkg.rb +1 -1
  43. data/lib/puppet/provider/package/pip2.rb +17 -0
  44. data/lib/puppet/provider/package/puppetserver_gem.rb +180 -0
  45. data/lib/puppet/provider/package/yum.rb +1 -0
  46. data/lib/puppet/resource/type.rb +2 -1
  47. data/lib/puppet/rest/route.rb +2 -2
  48. data/lib/puppet/settings.rb +19 -5
  49. data/lib/puppet/transaction/report.rb +11 -7
  50. data/lib/puppet/type/file/source.rb +1 -1
  51. data/lib/puppet/type/filebucket.rb +1 -1
  52. data/lib/puppet/util/connection.rb +8 -8
  53. data/lib/puppet/util/run_mode.rb +5 -1
  54. data/lib/puppet/version.rb +1 -1
  55. data/locales/puppet.pot +153 -156
  56. data/man/man5/puppet.conf.5 +29 -13
  57. data/man/man8/puppet-agent.8 +6 -3
  58. data/man/man8/puppet-apply.8 +1 -1
  59. data/man/man8/puppet-catalog.8 +1 -1
  60. data/man/man8/puppet-config.8 +6 -6
  61. data/man/man8/puppet-describe.8 +1 -1
  62. data/man/man8/puppet-device.8 +1 -1
  63. data/man/man8/puppet-doc.8 +1 -1
  64. data/man/man8/puppet-epp.8 +1 -1
  65. data/man/man8/puppet-facts.8 +1 -1
  66. data/man/man8/puppet-filebucket.8 +1 -1
  67. data/man/man8/puppet-generate.8 +1 -1
  68. data/man/man8/puppet-help.8 +1 -1
  69. data/man/man8/puppet-key.8 +1 -1
  70. data/man/man8/puppet-lookup.8 +1 -1
  71. data/man/man8/puppet-man.8 +1 -1
  72. data/man/man8/puppet-module.8 +1 -1
  73. data/man/man8/puppet-node.8 +4 -4
  74. data/man/man8/puppet-parser.8 +1 -1
  75. data/man/man8/puppet-plugin.8 +1 -1
  76. data/man/man8/puppet-report.8 +1 -1
  77. data/man/man8/puppet-resource.8 +1 -1
  78. data/man/man8/puppet-script.8 +1 -1
  79. data/man/man8/puppet-ssl.8 +1 -1
  80. data/man/man8/puppet-status.8 +2 -2
  81. data/man/man8/puppet.8 +2 -2
  82. data/spec/fixtures/unit/provider/package/puppetserver_gem/gem-list-local-packages +30 -0
  83. data/spec/integration/application/agent_spec.rb +23 -19
  84. data/spec/integration/application/filebucket_spec.rb +7 -7
  85. data/spec/integration/application/plugin_spec.rb +3 -3
  86. data/spec/integration/configurer_spec.rb +14 -0
  87. data/spec/integration/defaults_spec.rb +26 -1
  88. data/spec/integration/util/windows/adsi_spec.rb +2 -2
  89. data/spec/shared_contexts/types_setup.rb +2 -0
  90. data/spec/unit/application/doc_spec.rb +2 -2
  91. data/spec/unit/application/facts_spec.rb +3 -1
  92. data/spec/unit/application_spec.rb +9 -4
  93. data/spec/unit/configurer_spec.rb +39 -6
  94. data/spec/unit/environments_spec.rb +99 -32
  95. data/spec/unit/face/config_spec.rb +56 -0
  96. data/spec/unit/face/node_spec.rb +2 -2
  97. data/spec/unit/file_system_spec.rb +1 -2
  98. data/spec/unit/http/resolver_spec.rb +24 -4
  99. data/spec/unit/http/service/ca_spec.rb +2 -2
  100. data/spec/unit/http/service/compiler_spec.rb +2 -2
  101. data/spec/unit/http/service/file_server_spec.rb +2 -2
  102. data/spec/unit/http/service/puppetserver_spec.rb +82 -0
  103. data/spec/unit/http/service/report_spec.rb +2 -2
  104. data/spec/unit/http/session_spec.rb +8 -20
  105. data/spec/unit/indirector/catalog/json_spec.rb +1 -1
  106. data/spec/unit/indirector/catalog/rest_spec.rb +1 -1
  107. data/spec/unit/indirector/facts/rest_spec.rb +1 -1
  108. data/spec/unit/indirector/json_spec.rb +8 -8
  109. data/spec/unit/indirector/msgpack_spec.rb +8 -8
  110. data/spec/unit/indirector/node/rest_spec.rb +1 -1
  111. data/spec/unit/indirector/request_spec.rb +4 -4
  112. data/spec/unit/indirector/rest_spec.rb +1 -1
  113. data/spec/unit/indirector/status/rest_spec.rb +1 -1
  114. data/spec/unit/indirector/yaml_spec.rb +7 -7
  115. data/spec/unit/network/http/api/master/v3/environments_spec.rb +12 -23
  116. data/spec/unit/provider/exec_spec.rb +4 -3
  117. data/spec/unit/provider/package/dpkg_spec.rb +22 -7
  118. data/spec/unit/provider/package/openbsd_spec.rb +2 -0
  119. data/spec/unit/provider/package/pip2_spec.rb +36 -0
  120. data/spec/unit/provider/package/puppetserver_gem_spec.rb +137 -0
  121. data/spec/unit/provider/package/yum_spec.rb +31 -0
  122. data/spec/unit/provider/service/base_spec.rb +2 -4
  123. data/spec/unit/provider/service/bsd_spec.rb +5 -1
  124. data/spec/unit/provider/service/daemontools_spec.rb +1 -1
  125. data/spec/unit/provider/service/debian_spec.rb +3 -5
  126. data/spec/unit/provider/service/freebsd_spec.rb +1 -1
  127. data/spec/unit/provider/service/gentoo_spec.rb +4 -5
  128. data/spec/unit/provider/service/init_spec.rb +4 -5
  129. data/spec/unit/provider/service/launchd_spec.rb +5 -6
  130. data/spec/unit/provider/service/openrc_spec.rb +4 -5
  131. data/spec/unit/provider/service/openwrt_spec.rb +1 -1
  132. data/spec/unit/provider/service/redhat_spec.rb +1 -1
  133. data/spec/unit/provider/service/runit_spec.rb +2 -1
  134. data/spec/unit/provider/service/smf_spec.rb +1 -1
  135. data/spec/unit/provider/service/src_spec.rb +3 -5
  136. data/spec/unit/provider/service/systemd_spec.rb +3 -1
  137. data/spec/unit/provider/service/upstart_spec.rb +4 -5
  138. data/spec/unit/rest/route_spec.rb +4 -4
  139. data/spec/unit/settings_spec.rb +44 -22
  140. data/spec/unit/transaction/report_spec.rb +2 -0
  141. data/spec/unit/type/file/source_spec.rb +1 -1
  142. data/spec/unit/type/filebucket_spec.rb +1 -1
  143. data/spec/unit/util/run_mode_spec.rb +6 -6
  144. metadata +13 -2
@@ -676,6 +676,7 @@ Version:
676
676
  report.catalog_uuid = "some catalog uuid"
677
677
  report.cached_catalog_status = "not_used"
678
678
  report.master_used = "test:000"
679
+ report.server_used = "test:000"
679
680
  report.add_resource_status(status)
680
681
  report.transaction_completed = true
681
682
  report.finalize_report
@@ -694,6 +695,7 @@ Version:
694
695
  report.catalog_uuid = "some catalog uuid"
695
696
  report.cached_catalog_status = "not_used"
696
697
  report.master_used = "test:000"
698
+ report.server_used = "test:000"
697
699
  report.add_resource_status(status)
698
700
  report.transaction_completed = true
699
701
  report.finalize_report
@@ -521,7 +521,7 @@ describe Puppet::Type.type(:file).attrclass(:source), :uses_checksums => true do
521
521
  end
522
522
 
523
523
  it "should return the default source port" do
524
- Puppet[:masterport] = 1234
524
+ Puppet[:serverport] = 1234
525
525
  expect(resource.parameter(:source).port).to eq(1234)
526
526
  end
527
527
  end
@@ -21,7 +21,7 @@ describe Puppet::Type.type(:filebucket) do
21
21
  end
22
22
 
23
23
  it "should not have a default port" do
24
- Puppet.settings[:masterport] = 50
24
+ Puppet.settings[:serverport] = 50
25
25
  expect(Puppet::Type.type(:filebucket).new(:name => "main")[:port]).to eq(nil)
26
26
  end
27
27
 
@@ -25,12 +25,12 @@ describe Puppet::Util::RunMode do
25
25
  as_non_root { expect(@run_mode.conf_dir).to eq(File.expand_path('~/.puppetlabs/etc/puppet')) }
26
26
  end
27
27
 
28
- context "master run mode" do
28
+ context "server run mode" do
29
29
  before do
30
- @run_mode = Puppet::Util::UnixRunMode.new('master')
30
+ @run_mode = Puppet::Util::UnixRunMode.new('server')
31
31
  end
32
32
 
33
- it "has confdir ~/.puppetlabs/etc/puppet when run as non-root and master run mode" do
33
+ it "has confdir ~/.puppetlabs/etc/puppet when run as non-root and server run mode" do
34
34
  as_non_root { expect(@run_mode.conf_dir).to eq(File.expand_path('~/.puppetlabs/etc/puppet')) }
35
35
  end
36
36
  end
@@ -53,12 +53,12 @@ describe Puppet::Util::RunMode do
53
53
  as_non_root { expect(@run_mode.code_dir).to eq(File.expand_path('~/.puppetlabs/etc/code')) }
54
54
  end
55
55
 
56
- context "master run mode" do
56
+ context "server run mode" do
57
57
  before do
58
- @run_mode = Puppet::Util::UnixRunMode.new('master')
58
+ @run_mode = Puppet::Util::UnixRunMode.new('server')
59
59
  end
60
60
 
61
- it "has codedir ~/.puppetlabs/etc/code when run as non-root and master run mode" do
61
+ it "has codedir ~/.puppetlabs/etc/code when run as non-root and server run mode" do
62
62
  as_non_root { expect(@run_mode.code_dir).to eq(File.expand_path('~/.puppetlabs/etc/code')) }
63
63
  end
64
64
  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.18.0
4
+ version: 6.19.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: 2020-08-24 00:00:00.000000000 Z
11
+ date: 2020-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: facter
@@ -663,6 +663,7 @@ files:
663
663
  - lib/puppet/http/service/ca.rb
664
664
  - lib/puppet/http/service/compiler.rb
665
665
  - lib/puppet/http/service/file_server.rb
666
+ - lib/puppet/http/service/puppetserver.rb
666
667
  - lib/puppet/http/service/report.rb
667
668
  - lib/puppet/http/session.rb
668
669
  - lib/puppet/indirector.rb
@@ -1143,6 +1144,7 @@ files:
1143
1144
  - lib/puppet/provider/package/opkg.rb
1144
1145
  - lib/puppet/provider/package/pacman.rb
1145
1146
  - lib/puppet/provider/package/pip.rb
1147
+ - lib/puppet/provider/package/pip2.rb
1146
1148
  - lib/puppet/provider/package/pip3.rb
1147
1149
  - lib/puppet/provider/package/pkg.rb
1148
1150
  - lib/puppet/provider/package/pkgdmg.rb
@@ -1153,6 +1155,7 @@ files:
1153
1155
  - lib/puppet/provider/package/ports.rb
1154
1156
  - lib/puppet/provider/package/portupgrade.rb
1155
1157
  - lib/puppet/provider/package/puppet_gem.rb
1158
+ - lib/puppet/provider/package/puppetserver_gem.rb
1156
1159
  - lib/puppet/provider/package/rpm.rb
1157
1160
  - lib/puppet/provider/package/rug.rb
1158
1161
  - lib/puppet/provider/package/sun.rb
@@ -1840,6 +1843,7 @@ files:
1840
1843
  - spec/fixtures/unit/provider/package/pkgng/pkg.query
1841
1844
  - spec/fixtures/unit/provider/package/pkgng/pkg.query.zsh
1842
1845
  - spec/fixtures/unit/provider/package/pkgng/pkg.version
1846
+ - spec/fixtures/unit/provider/package/puppetserver_gem/gem-list-local-packages
1843
1847
  - spec/fixtures/unit/provider/package/sun/dummy.server
1844
1848
  - spec/fixtures/unit/provider/package/sun/simple
1845
1849
  - spec/fixtures/unit/provider/package/yum/yum-check-update-broken-notices.txt
@@ -2189,6 +2193,7 @@ files:
2189
2193
  - spec/unit/http/service/ca_spec.rb
2190
2194
  - spec/unit/http/service/compiler_spec.rb
2191
2195
  - spec/unit/http/service/file_server_spec.rb
2196
+ - spec/unit/http/service/puppetserver_spec.rb
2192
2197
  - spec/unit/http/service/report_spec.rb
2193
2198
  - spec/unit/http/service_spec.rb
2194
2199
  - spec/unit/http/session_spec.rb
@@ -2491,6 +2496,7 @@ files:
2491
2496
  - spec/unit/provider/package/openbsd_spec.rb
2492
2497
  - spec/unit/provider/package/opkg_spec.rb
2493
2498
  - spec/unit/provider/package/pacman_spec.rb
2499
+ - spec/unit/provider/package/pip2_spec.rb
2494
2500
  - spec/unit/provider/package/pip3_spec.rb
2495
2501
  - spec/unit/provider/package/pip_spec.rb
2496
2502
  - spec/unit/provider/package/pkg_spec.rb
@@ -2500,6 +2506,7 @@ files:
2500
2506
  - spec/unit/provider/package/pkgutil_spec.rb
2501
2507
  - spec/unit/provider/package/portage_spec.rb
2502
2508
  - spec/unit/provider/package/puppet_gem_spec.rb
2509
+ - spec/unit/provider/package/puppetserver_gem_spec.rb
2503
2510
  - spec/unit/provider/package/rpm_spec.rb
2504
2511
  - spec/unit/provider/package/sun_spec.rb
2505
2512
  - spec/unit/provider/package/tdnf_spec.rb
@@ -3105,6 +3112,7 @@ test_files:
3105
3112
  - spec/fixtures/unit/provider/package/pkgng/pkg.query
3106
3113
  - spec/fixtures/unit/provider/package/pkgng/pkg.query.zsh
3107
3114
  - spec/fixtures/unit/provider/package/pkgng/pkg.version
3115
+ - spec/fixtures/unit/provider/package/puppetserver_gem/gem-list-local-packages
3108
3116
  - spec/fixtures/unit/provider/package/sun/dummy.server
3109
3117
  - spec/fixtures/unit/provider/package/sun/simple
3110
3118
  - spec/fixtures/unit/provider/package/yum/yum-check-update-broken-notices.txt
@@ -3454,6 +3462,7 @@ test_files:
3454
3462
  - spec/unit/http/service/ca_spec.rb
3455
3463
  - spec/unit/http/service/compiler_spec.rb
3456
3464
  - spec/unit/http/service/file_server_spec.rb
3465
+ - spec/unit/http/service/puppetserver_spec.rb
3457
3466
  - spec/unit/http/service/report_spec.rb
3458
3467
  - spec/unit/http/service_spec.rb
3459
3468
  - spec/unit/http/session_spec.rb
@@ -3756,6 +3765,7 @@ test_files:
3756
3765
  - spec/unit/provider/package/openbsd_spec.rb
3757
3766
  - spec/unit/provider/package/opkg_spec.rb
3758
3767
  - spec/unit/provider/package/pacman_spec.rb
3768
+ - spec/unit/provider/package/pip2_spec.rb
3759
3769
  - spec/unit/provider/package/pip3_spec.rb
3760
3770
  - spec/unit/provider/package/pip_spec.rb
3761
3771
  - spec/unit/provider/package/pkg_spec.rb
@@ -3765,6 +3775,7 @@ test_files:
3765
3775
  - spec/unit/provider/package/pkgutil_spec.rb
3766
3776
  - spec/unit/provider/package/portage_spec.rb
3767
3777
  - spec/unit/provider/package/puppet_gem_spec.rb
3778
+ - spec/unit/provider/package/puppetserver_gem_spec.rb
3768
3779
  - spec/unit/provider/package/rpm_spec.rb
3769
3780
  - spec/unit/provider/package/sun_spec.rb
3770
3781
  - spec/unit/provider/package/tdnf_spec.rb