puppet 7.21.0 → 7.23.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +16 -16
  3. data/Guardfile.example +1 -1
  4. data/ext/project_data.yaml +1 -1
  5. data/ext/windows/service/daemon.rb +1 -1
  6. data/lib/puppet/indirector/facts/facter.rb +4 -1
  7. data/lib/puppet/parser/functions/fqdn_rand.rb +1 -1
  8. data/lib/puppet/version.rb +1 -1
  9. data/man/man5/puppet.conf.5 +2 -2
  10. data/man/man8/puppet-agent.8 +1 -1
  11. data/man/man8/puppet-apply.8 +1 -1
  12. data/man/man8/puppet-catalog.8 +1 -1
  13. data/man/man8/puppet-config.8 +1 -1
  14. data/man/man8/puppet-describe.8 +1 -1
  15. data/man/man8/puppet-device.8 +1 -1
  16. data/man/man8/puppet-doc.8 +1 -1
  17. data/man/man8/puppet-epp.8 +1 -1
  18. data/man/man8/puppet-facts.8 +1 -1
  19. data/man/man8/puppet-filebucket.8 +1 -1
  20. data/man/man8/puppet-generate.8 +1 -1
  21. data/man/man8/puppet-help.8 +1 -1
  22. data/man/man8/puppet-lookup.8 +1 -1
  23. data/man/man8/puppet-module.8 +1 -1
  24. data/man/man8/puppet-node.8 +1 -1
  25. data/man/man8/puppet-parser.8 +1 -1
  26. data/man/man8/puppet-plugin.8 +1 -1
  27. data/man/man8/puppet-report.8 +1 -1
  28. data/man/man8/puppet-resource.8 +1 -1
  29. data/man/man8/puppet-script.8 +1 -1
  30. data/man/man8/puppet-ssl.8 +1 -1
  31. data/man/man8/puppet.8 +2 -2
  32. data/spec/integration/application/agent_spec.rb +1 -1
  33. data/spec/unit/application/agent_spec.rb +1 -1
  34. data/spec/unit/application/device_spec.rb +1 -1
  35. data/spec/unit/application/resource_spec.rb +1 -1
  36. data/spec/unit/daemon_spec.rb +1 -1
  37. data/spec/unit/file_bucket/dipper_spec.rb +1 -1
  38. data/spec/unit/file_serving/fileset_spec.rb +14 -14
  39. data/spec/unit/file_system_spec.rb +3 -1
  40. data/spec/unit/graph/simple_graph_spec.rb +1 -1
  41. data/spec/unit/indirector/facts/facter_spec.rb +18 -3
  42. data/spec/unit/indirector/file_server_spec.rb +5 -5
  43. data/spec/unit/indirector/node/plain_spec.rb +1 -1
  44. data/spec/unit/parser/functions/fqdn_rand_spec.rb +1 -1
  45. data/spec/unit/provider/file/posix_spec.rb +4 -4
  46. data/spec/unit/provider/ldap_spec.rb +1 -1
  47. data/spec/unit/provider/nameservice_spec.rb +15 -15
  48. data/spec/unit/provider/package/aix_spec.rb +1 -1
  49. data/spec/unit/provider/package/nim_spec.rb +2 -2
  50. data/spec/unit/provider/service/bsd_spec.rb +4 -4
  51. data/spec/unit/provider/service/debian_spec.rb +2 -2
  52. data/spec/unit/provider/service/gentoo_spec.rb +20 -20
  53. data/spec/unit/provider/service/openbsd_spec.rb +18 -18
  54. data/spec/unit/provider/service/openrc_spec.rb +19 -19
  55. data/spec/unit/provider/service/systemd_spec.rb +22 -22
  56. data/spec/unit/provider/service/upstart_spec.rb +6 -6
  57. data/spec/unit/provider/user/aix_spec.rb +1 -1
  58. data/spec/unit/provider/user/hpux_spec.rb +1 -1
  59. data/spec/unit/provider/user/openbsd_spec.rb +1 -1
  60. data/spec/unit/provider/user/useradd_spec.rb +1 -1
  61. data/spec/unit/resource/type_spec.rb +2 -2
  62. data/spec/unit/ssl/base_spec.rb +1 -1
  63. data/spec/unit/ssl/certificate_request_spec.rb +1 -1
  64. data/spec/unit/ssl/certificate_spec.rb +1 -1
  65. data/spec/unit/transaction/event_manager_spec.rb +2 -2
  66. data/spec/unit/type/exec_spec.rb +1 -1
  67. data/spec/unit/util/backups_spec.rb +1 -1
  68. data/spec/unit/util/filetype_spec.rb +3 -3
  69. data/spec/unit/util/resource_template_spec.rb +1 -1
  70. metadata +8 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 05573aee733059203260d032efbc259ccea53cf00810ddcd027fd7db36682210
4
- data.tar.gz: cb8c4ce612faa27a59948c8214cd5a9d161e5a9846c8489d10c35ea026d3490b
3
+ metadata.gz: e2cebc83ce870dd49429c7c62f0d4ee850b1189b6e68b4b248bd18c71bcb48e3
4
+ data.tar.gz: feb5ec780ef14ab47c4b9d2cef6e94500b9e7e060a73488953628d269fe0e37d
5
5
  SHA512:
6
- metadata.gz: 9686f331e6f146dc5b582baf5bc339b3b7638067238808f09617cafda7ee1d9e51b40c59cae54c58bc46f57be132b738fa7bbe96d4c6c46e74d8e9f7758760f2
7
- data.tar.gz: de237911924f86b2c8fcf22bfac0256032214ad42e91a657de0be0863ca95171795d2c7eb47353c43e8dcd737cee0b34dd602c5271162468ee8789750e26aaab
6
+ metadata.gz: 681dd23ca2309ade2fb71f1ac0605b8460e57e9638bf18b2064386d7d99134dfdc098122985b3b767bc30554f5fb4cf0c46d5a81582c6529d6333c5d65ef0e78
7
+ data.tar.gz: e0769d478bfd77310eefc6d66fbaf65332498a4b84ace9b02eefc10373073c324129d78c8a9d3d223f776e701809b6406992510a434c5960937da1f9dfd6322c
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  GIT
2
2
  remote: https://github.com/puppetlabs/packaging
3
- revision: 43e14adf3cc3756bb5a776db9bc245c685c11f71
3
+ revision: f723ffb6df1216eb6cec0c81c0bec349b4fad506
4
4
  branch: 1.0.x
5
5
  specs:
6
- packaging (0.108.0)
6
+ packaging (0.108.1.6.gf723ffb)
7
7
  apt_stage_artifacts
8
8
  artifactory (~> 3)
9
9
  csv (= 3.1.5)
@@ -15,9 +15,9 @@ GIT
15
15
  PATH
16
16
  remote: .
17
17
  specs:
18
- puppet (7.21.0)
18
+ puppet (7.23.0)
19
19
  CFPropertyList (~> 2.2)
20
- concurrent-ruby (~> 1.0)
20
+ concurrent-ruby (~> 1.0, < 1.2.0)
21
21
  deep_merge (~> 1.0)
22
22
  facter (>= 2.4.0, < 5)
23
23
  fast_gettext (>= 1.1, < 3)
@@ -48,10 +48,10 @@ GEM
48
48
  digest-crc (0.6.4)
49
49
  rake (>= 12.0.0, < 14.0.0)
50
50
  docopt (0.6.1)
51
- facter (4.2.13)
51
+ facter (4.2.14)
52
52
  hocon (~> 1.3)
53
53
  thor (>= 1.0.1, < 2.0)
54
- faraday (2.7.1)
54
+ faraday (2.7.4)
55
55
  faraday-net_http (>= 2.0, < 3.1)
56
56
  ruby2_keywords (>= 0.0.4)
57
57
  faraday-net_http (3.0.2)
@@ -64,7 +64,7 @@ GEM
64
64
  fast_gettext (~> 1.1.0)
65
65
  gettext (>= 3.0.2, < 3.3.0)
66
66
  locale
67
- google-apis-core (0.9.1)
67
+ google-apis-core (0.10.0)
68
68
  addressable (~> 2.5, >= 2.5.1)
69
69
  googleauth (>= 0.16.2, < 2.a)
70
70
  httpclient (>= 2.8.1, < 3.a)
@@ -99,17 +99,17 @@ GEM
99
99
  os (>= 0.9, < 2.0)
100
100
  signet (>= 0.16, < 2.a)
101
101
  hashdiff (1.0.1)
102
- hiera (3.10.0)
102
+ hiera (3.11.0)
103
103
  hiera-eyaml (3.3.0)
104
104
  highline
105
105
  optimist
106
- highline (2.0.3)
106
+ highline (2.1.0)
107
107
  hocon (1.3.1)
108
108
  hpricot (0.8.6)
109
109
  httpclient (2.8.3)
110
110
  json-schema (2.8.1)
111
111
  addressable (>= 2.4)
112
- jwt (2.5.0)
112
+ jwt (2.7.0)
113
113
  locale (2.1.3)
114
114
  memoist (0.16.2)
115
115
  memory_profiler (1.0.1)
@@ -125,13 +125,13 @@ GEM
125
125
  parser (2.7.2.0)
126
126
  ast (~> 2.4.1)
127
127
  powerpack (0.1.3)
128
- pry (0.14.1)
128
+ pry (0.14.2)
129
129
  coderay (~> 1.1)
130
130
  method_source (~> 1.0)
131
131
  public_suffix (5.0.1)
132
132
  puppet-resource_api (1.8.14)
133
133
  hocon (>= 1.0)
134
- puppetserver-ca (2.3.6)
134
+ puppetserver-ca (2.4.0)
135
135
  facter (>= 2.0.1, < 5)
136
136
  racc (1.5.2)
137
137
  rainbow (2.2.2)
@@ -156,15 +156,15 @@ GEM
156
156
  rspec-core (~> 3.12.0)
157
157
  rspec-expectations (~> 3.12.0)
158
158
  rspec-mocks (~> 3.12.0)
159
- rspec-core (3.12.0)
159
+ rspec-core (3.12.1)
160
160
  rspec-support (~> 3.12.0)
161
- rspec-expectations (3.12.0)
161
+ rspec-expectations (3.12.2)
162
162
  diff-lcs (>= 1.2.0, < 2.0)
163
163
  rspec-support (~> 3.12.0)
164
164
  rspec-its (1.3.0)
165
165
  rspec-core (>= 3.0.0)
166
166
  rspec-expectations (>= 3.0.0)
167
- rspec-mocks (3.12.0)
167
+ rspec-mocks (3.12.3)
168
168
  diff-lcs (>= 1.2.0, < 2.0)
169
169
  rspec-support (~> 3.12.0)
170
170
  rspec-support (3.12.0)
@@ -177,7 +177,7 @@ GEM
177
177
  unicode-display_width (~> 1.0, >= 1.0.1)
178
178
  rubocop-i18n (1.2.0)
179
179
  rubocop (~> 0.49.0)
180
- ruby-prof (1.4.3)
180
+ ruby-prof (1.5.0)
181
181
  ruby-progressbar (1.11.0)
182
182
  ruby2_keywords (0.0.5)
183
183
  scanf (1.0.0)
data/Guardfile.example CHANGED
@@ -16,7 +16,7 @@ notification(:terminal_notifier, app_name: "Puppet ::", group: `pwd`.chomp) if `
16
16
 
17
17
  ## Uncomment and set this to only include directories you want to watch
18
18
  # directories %w(app lib config test spec features) \
19
- # .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
19
+ # .select{|d| Dir.exist?(d) ? d : UI.warning("Directory #{d} does not exist")}
20
20
 
21
21
  ## Note: if you are using the `directories` clause above and you are not
22
22
  ## watching the project directory ('.'), then you will want to move
@@ -25,7 +25,7 @@ gem_runtime_dependencies:
25
25
  locale: '~> 2.1'
26
26
  multi_json: '~> 1.10'
27
27
  puppet-resource_api: '~>1.5'
28
- concurrent-ruby: '~> 1.0'
28
+ concurrent-ruby: ["~> 1.0", "< 1.2.0"]
29
29
  deep_merge: '~> 1.0'
30
30
  scanf: '~> 1.0'
31
31
  gem_rdoc_options:
@@ -48,7 +48,7 @@ class WindowsDaemon < Puppet::Util::Windows::Daemon
48
48
  #
49
49
  # Example code to register an event source;
50
50
  # eventlogdll = File.expand_path(File.join(basedir, 'puppet', 'ext', 'windows', 'eventlog', 'puppetres.dll'))
51
- # if (File.exists?(eventlogdll))
51
+ # if (File.exist?(eventlogdll))
52
52
  # Win32::EventLog.add_event_source(
53
53
  # 'source' => "Application",
54
54
  # 'key_name' => "Puppet Agent",
@@ -40,7 +40,10 @@ class Puppet::Node::Facts::Facter < Puppet::Indirector::Code
40
40
  Puppet::Node::Facts.new(request.key, Puppet.runtime[:facter].to_hash)
41
41
  else
42
42
  # resolve does not return legacy facts unless requested
43
- Puppet::Node::Facts.new(request.key, Puppet.runtime[:facter].resolve(''))
43
+ facts = Puppet.runtime[:facter].resolve('')
44
+ # some versions of Facter 4 return a Facter::FactCollection instead of
45
+ # a Hash, breaking API compatibility, so force a hash using `to_h`
46
+ Puppet::Node::Facts.new(request.key, facts.to_h)
44
47
  end
45
48
 
46
49
  result.add_local_facts unless request.options[:resolve_options]
@@ -23,7 +23,7 @@ Puppet::Parser::Functions::newfunction(:fqdn_rand, :arity => -2, :type => :rvalu
23
23
  initial_seed = args.shift
24
24
  downcase = !!args.shift
25
25
 
26
- fqdn = self['::fqdn']
26
+ fqdn = self['facts'].dig('networking', 'fqdn')
27
27
  fqdn = fqdn.downcase if downcase
28
28
 
29
29
  # Puppet 5.4's fqdn_rand function produces a different value than earlier versions
@@ -6,7 +6,7 @@
6
6
  # Raketasks and such to set the version based on the output of `git describe`
7
7
 
8
8
  module Puppet
9
- PUPPETVERSION = '7.21.0'
9
+ PUPPETVERSION = '7.23.0'
10
10
 
11
11
  ##
12
12
  # version is a public API method intended to always provide a fast and
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "PUPPETCONF" "5" "December 2022" "Puppet, Inc." "Puppet manual"
4
+ .TH "PUPPETCONF" "5" "February 2023" "Puppet, Inc." "Puppet manual"
5
5
  \fBThis page is autogenerated; any changes will get overwritten\fR
6
6
  .
7
7
  .SH "Configuration settings"
@@ -937,7 +937,7 @@ The time to wait for data to be read from an HTTP connection\. If nothing is rea
937
937
  The HTTP User\-Agent string to send when making network requests\.
938
938
  .
939
939
  .IP "\(bu" 4
940
- \fIDefault\fR: \fBPuppet/7\.21\.0 Ruby/2\.7\.5\-p203 (x86_64\-linux)\fR
940
+ \fIDefault\fR: \fBPuppet/7\.23\.0 Ruby/2\.7\.5\-p203 (x86_64\-linux)\fR
941
941
  .
942
942
  .IP "" 0
943
943
  .
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "PUPPET\-AGENT" "8" "December 2022" "Puppet, Inc." "Puppet manual"
4
+ .TH "PUPPET\-AGENT" "8" "February 2023" "Puppet, Inc." "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-agent\fR \- The puppet agent daemon
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "PUPPET\-APPLY" "8" "December 2022" "Puppet, Inc." "Puppet manual"
4
+ .TH "PUPPET\-APPLY" "8" "February 2023" "Puppet, Inc." "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-apply\fR \- Apply Puppet manifests locally
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "PUPPET\-CATALOG" "8" "December 2022" "Puppet, Inc." "Puppet manual"
4
+ .TH "PUPPET\-CATALOG" "8" "February 2023" "Puppet, Inc." "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-catalog\fR \- Compile, save, view, and convert catalogs\.
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "PUPPET\-CONFIG" "8" "December 2022" "Puppet, Inc." "Puppet manual"
4
+ .TH "PUPPET\-CONFIG" "8" "February 2023" "Puppet, Inc." "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-config\fR \- Interact with Puppet\'s settings\.
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "PUPPET\-DESCRIBE" "8" "December 2022" "Puppet, Inc." "Puppet manual"
4
+ .TH "PUPPET\-DESCRIBE" "8" "February 2023" "Puppet, Inc." "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-describe\fR \- Display help about resource types
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "PUPPET\-DEVICE" "8" "December 2022" "Puppet, Inc." "Puppet manual"
4
+ .TH "PUPPET\-DEVICE" "8" "February 2023" "Puppet, Inc." "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-device\fR \- Manage remote network devices
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "PUPPET\-DOC" "8" "December 2022" "Puppet, Inc." "Puppet manual"
4
+ .TH "PUPPET\-DOC" "8" "February 2023" "Puppet, Inc." "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-doc\fR \- Generate Puppet references
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "PUPPET\-EPP" "8" "December 2022" "Puppet, Inc." "Puppet manual"
4
+ .TH "PUPPET\-EPP" "8" "February 2023" "Puppet, Inc." "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-epp\fR \- Interact directly with the EPP template parser/renderer\.
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "PUPPET\-FACTS" "8" "December 2022" "Puppet, Inc." "Puppet manual"
4
+ .TH "PUPPET\-FACTS" "8" "February 2023" "Puppet, Inc." "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-facts\fR \- Retrieve and store facts\.
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "PUPPET\-FILEBUCKET" "8" "December 2022" "Puppet, Inc." "Puppet manual"
4
+ .TH "PUPPET\-FILEBUCKET" "8" "February 2023" "Puppet, Inc." "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-filebucket\fR \- Store and retrieve files in a filebucket
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "PUPPET\-GENERATE" "8" "December 2022" "Puppet, Inc." "Puppet manual"
4
+ .TH "PUPPET\-GENERATE" "8" "February 2023" "Puppet, Inc." "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-generate\fR \- Generates Puppet code from Ruby definitions\.
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "PUPPET\-HELP" "8" "December 2022" "Puppet, Inc." "Puppet manual"
4
+ .TH "PUPPET\-HELP" "8" "February 2023" "Puppet, Inc." "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-help\fR \- Display Puppet help\.
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "PUPPET\-LOOKUP" "8" "December 2022" "Puppet, Inc." "Puppet manual"
4
+ .TH "PUPPET\-LOOKUP" "8" "February 2023" "Puppet, Inc." "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-lookup\fR \- Interactive Hiera lookup
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "PUPPET\-MODULE" "8" "December 2022" "Puppet, Inc." "Puppet manual"
4
+ .TH "PUPPET\-MODULE" "8" "February 2023" "Puppet, Inc." "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-module\fR \- Creates, installs and searches for modules on the Puppet Forge\.
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "PUPPET\-NODE" "8" "December 2022" "Puppet, Inc." "Puppet manual"
4
+ .TH "PUPPET\-NODE" "8" "February 2023" "Puppet, Inc." "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-node\fR \- View and manage node definitions\.
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "PUPPET\-PARSER" "8" "December 2022" "Puppet, Inc." "Puppet manual"
4
+ .TH "PUPPET\-PARSER" "8" "February 2023" "Puppet, Inc." "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-parser\fR \- Interact directly with the parser\.
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "PUPPET\-PLUGIN" "8" "December 2022" "Puppet, Inc." "Puppet manual"
4
+ .TH "PUPPET\-PLUGIN" "8" "February 2023" "Puppet, Inc." "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-plugin\fR \- Interact with the Puppet plugin system\.
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "PUPPET\-REPORT" "8" "December 2022" "Puppet, Inc." "Puppet manual"
4
+ .TH "PUPPET\-REPORT" "8" "February 2023" "Puppet, Inc." "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-report\fR \- Create, display, and submit reports\.
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "PUPPET\-RESOURCE" "8" "December 2022" "Puppet, Inc." "Puppet manual"
4
+ .TH "PUPPET\-RESOURCE" "8" "February 2023" "Puppet, Inc." "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-resource\fR \- The resource abstraction layer shell
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "PUPPET\-SCRIPT" "8" "December 2022" "Puppet, Inc." "Puppet manual"
4
+ .TH "PUPPET\-SCRIPT" "8" "February 2023" "Puppet, Inc." "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-script\fR \- Run a puppet manifests as a script without compiling a catalog
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "PUPPET\-SSL" "8" "December 2022" "Puppet, Inc." "Puppet manual"
4
+ .TH "PUPPET\-SSL" "8" "February 2023" "Puppet, Inc." "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-ssl\fR \- Manage SSL keys and certificates for puppet SSL clients
data/man/man8/puppet.8 CHANGED
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "PUPPET" "8" "December 2022" "Puppet, Inc." "Puppet manual"
4
+ .TH "PUPPET" "8" "February 2023" "Puppet, Inc." "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\fR
@@ -25,4 +25,4 @@ Specialized:
25
25
  catalog Compile, save, view, and convert catalogs\. describe Display help about resource types device Manage remote network devices doc Generate Puppet references epp Interact directly with the EPP template parser/renderer\. facts Retrieve and store facts\. filebucket Store and retrieve files in a filebucket generate Generates Puppet code from Ruby definitions\. node View and manage node definitions\. parser Interact directly with the parser\. plugin Interact with the Puppet plugin system\. script Run a puppet manifests as a script without compiling a catalog ssl Manage SSL keys and certificates for puppet SSL clients
26
26
  .
27
27
  .P
28
- See \'puppet help \fIsubcommand\fR \fIaction\fR\' for help on a specific subcommand action\. See \'puppet help \fIsubcommand\fR\' for help on a specific subcommand\. Puppet v7\.21\.0
28
+ See \'puppet help \fIsubcommand\fR \fIaction\fR\' for help on a specific subcommand action\. See \'puppet help \fIsubcommand\fR\' for help on a specific subcommand\. Puppet v7\.23\.0
@@ -527,7 +527,7 @@ describe "puppet agent", unless: Puppet::Util::Platform.jruby? do
527
527
  }
528
528
 
529
529
  # ensure file is written before yielding
530
- until File.exists?(path) && File.size(path) > 0 do
530
+ until File.exist?(path) && File.size(path) > 0 do
531
531
  sleep 0.1
532
532
  end
533
533
 
@@ -524,7 +524,7 @@ describe Puppet::Application::Agent do
524
524
  end
525
525
 
526
526
  it "should stop the daemon" do
527
- expect(@daemon).to receive(:stop).with(:exit => false)
527
+ expect(@daemon).to receive(:stop).with({:exit => false})
528
528
 
529
529
  expect { execute_agent }.to exit_with 0
530
530
  end
@@ -535,7 +535,7 @@ describe Puppet::Application::Device do
535
535
  end
536
536
 
537
537
  it "makes the Puppet::Pops::Loaders available" do
538
- expect(configurer).to receive(:run).with(:network_device => true, :pluginsync => false) do
538
+ expect(configurer).to receive(:run).with({:network_device => true, :pluginsync => false}) do
539
539
  fail('Loaders not available') unless Puppet.lookup(:loaders) { nil }.is_a?(Puppet::Pops::Loaders)
540
540
  true
541
541
  end.and_return(6, 2)
@@ -122,7 +122,7 @@ describe Puppet::Application::Resource do
122
122
  allow(@resource_app.command_line).to receive(:args).and_return(['type','name','param=temp'])
123
123
 
124
124
  expect(Puppet::Resource.indirection).to receive(:save).with(@res, 'type/name').and_return([@res, @report])
125
- expect(Puppet::Resource).to receive(:new).with('type', 'name', :parameters => {'param' => 'temp'}).and_return(@res)
125
+ expect(Puppet::Resource).to receive(:new).with('type', 'name', {:parameters => {'param' => 'temp'}}).and_return(@res)
126
126
 
127
127
  @resource_app.main
128
128
  end
@@ -180,7 +180,7 @@ describe Puppet::Daemon, :unless => Puppet::Util::Platform.windows? do
180
180
 
181
181
  it "should shut down without exiting" do
182
182
  daemon.argv = %w{foo}
183
- expect(daemon).to receive(:stop).with(:exit => false)
183
+ expect(daemon).to receive(:stop).with({:exit => false})
184
184
  daemon.reexec
185
185
  end
186
186
 
@@ -322,7 +322,7 @@ describe Puppet::FileBucket::Dipper, :uses_checksums => true do
322
322
  file = make_tmp_file(plaintext)
323
323
 
324
324
  expect(Puppet::FileBucket::File.indirection).to receive(:head).with(
325
- %r{#{digest_algorithm}/#{checksum}}, :bucket_path => "/my/bucket"
325
+ %r{#{digest_algorithm}/#{checksum}}, {:bucket_path => "/my/bucket"}
326
326
  ).and_return(true)
327
327
  expect(Puppet::FileBucket::File.indirection).not_to receive(:save)
328
328
  expect(@dipper.backup(file)).to eq(checksum)
@@ -153,12 +153,12 @@ describe Puppet::FileServing::Fileset do
153
153
  top_names = %w{one two .svn CVS}
154
154
  sub_names = %w{file1 file2 .svn CVS 0 false}
155
155
 
156
- allow(Dir).to receive(:entries).with(path, encoding: Encoding::UTF_8).and_return(top_names)
156
+ allow(Dir).to receive(:entries).with(path, {encoding: Encoding::UTF_8}).and_return(top_names)
157
157
  top_names.each do |subdir|
158
158
  @files << subdir # relative path
159
159
  subpath = File.join(path, subdir)
160
160
  allow(Puppet::FileSystem).to receive(stat_method).with(subpath).and_return(@dirstat)
161
- allow(Dir).to receive(:entries).with(subpath, encoding: Encoding::UTF_8).and_return(sub_names)
161
+ allow(Dir).to receive(:entries).with(subpath, {encoding: Encoding::UTF_8}).and_return(sub_names)
162
162
  sub_names.each do |file|
163
163
  @files << File.join(subdir, file) # relative path
164
164
  subfile_path = File.join(subpath, file)
@@ -176,12 +176,12 @@ describe Puppet::FileServing::Fileset do
176
176
  top_names = (1..10).map {|i| "dir_#{i}" }
177
177
  sub_names = (1..100).map {|i| "file__#{i}" }
178
178
 
179
- allow(Dir).to receive(:entries).with(path, encoding: Encoding::UTF_8).and_return(top_names)
179
+ allow(Dir).to receive(:entries).with(path, {encoding: Encoding::UTF_8}).and_return(top_names)
180
180
  top_names.each do |subdir|
181
181
  @files << subdir # relative path
182
182
  subpath = File.join(path, subdir)
183
183
  allow(Puppet::FileSystem).to receive(stat_method).with(subpath).and_return(@dirstat)
184
- allow(Dir).to receive(:entries).with(subpath, encoding: Encoding::UTF_8).and_return(sub_names)
184
+ allow(Dir).to receive(:entries).with(subpath, {encoding: Encoding::UTF_8}).and_return(sub_names)
185
185
  sub_names.each do |file|
186
186
  @files << File.join(subdir, file) # relative path
187
187
  subfile_path = File.join(subpath, file)
@@ -193,7 +193,7 @@ describe Puppet::FileServing::Fileset do
193
193
  def setup_mocks_for_dir(mock_dir, base_path)
194
194
  path = File.join(base_path, mock_dir.name)
195
195
  allow(Puppet::FileSystem).to receive(:lstat).with(path).and_return(MockStat.new(path, true))
196
- allow(Dir).to receive(:entries).with(path, encoding: Encoding::UTF_8).and_return(['.', '..'] + mock_dir.entries.map(&:name))
196
+ allow(Dir).to receive(:entries).with(path, {encoding: Encoding::UTF_8}).and_return(['.', '..'] + mock_dir.entries.map(&:name))
197
197
  mock_dir.entries.each do |entry|
198
198
  setup_mocks_for_entry(entry, path)
199
199
  end
@@ -360,7 +360,7 @@ describe Puppet::FileServing::Fileset do
360
360
  link_path = File.join(path, "mylink")
361
361
  expect(Puppet::FileSystem).to receive(:stat).with(link_path).and_raise(Errno::ENOENT)
362
362
 
363
- allow(Dir).to receive(:entries).with(path, encoding: Encoding::UTF_8).and_return(["mylink"])
363
+ allow(Dir).to receive(:entries).with(path, {encoding: Encoding::UTF_8}).and_return(["mylink"])
364
364
 
365
365
  fileset = Puppet::FileServing::Fileset.new(path)
366
366
 
@@ -377,16 +377,16 @@ describe Puppet::FileServing::Fileset do
377
377
 
378
378
  @filesets = @paths.collect do |path|
379
379
  allow(Puppet::FileSystem).to receive(:lstat).with(path).and_return(double('stat', :directory? => true))
380
- Puppet::FileServing::Fileset.new(path, :recurse => true)
380
+ Puppet::FileServing::Fileset.new(path, {:recurse => true})
381
381
  end
382
382
 
383
383
  allow(Dir).to receive(:entries).and_return([])
384
384
  end
385
385
 
386
386
  it "returns a hash of all files in each fileset with the value being the base path" do
387
- expect(Dir).to receive(:entries).with(make_absolute("/first/path"), encoding: Encoding::UTF_8).and_return(%w{one uno})
388
- expect(Dir).to receive(:entries).with(make_absolute("/second/path"), encoding: Encoding::UTF_8).and_return(%w{two dos})
389
- expect(Dir).to receive(:entries).with(make_absolute("/third/path"), encoding: Encoding::UTF_8).and_return(%w{three tres})
387
+ expect(Dir).to receive(:entries).with(make_absolute("/first/path"), {encoding: Encoding::UTF_8}).and_return(%w{one uno})
388
+ expect(Dir).to receive(:entries).with(make_absolute("/second/path"), {encoding: Encoding::UTF_8}).and_return(%w{two dos})
389
+ expect(Dir).to receive(:entries).with(make_absolute("/third/path"), {encoding: Encoding::UTF_8}).and_return(%w{three tres})
390
390
 
391
391
  expect(Puppet::FileServing::Fileset.merge(*@filesets)).to eq({
392
392
  "." => make_absolute("/first/path"),
@@ -400,15 +400,15 @@ describe Puppet::FileServing::Fileset do
400
400
  end
401
401
 
402
402
  it "includes the base directory from the first fileset" do
403
- expect(Dir).to receive(:entries).with(make_absolute("/first/path"), encoding: Encoding::UTF_8).and_return(%w{one})
404
- expect(Dir).to receive(:entries).with(make_absolute("/second/path"), encoding: Encoding::UTF_8).and_return(%w{two})
403
+ expect(Dir).to receive(:entries).with(make_absolute("/first/path"), {encoding: Encoding::UTF_8}).and_return(%w{one})
404
+ expect(Dir).to receive(:entries).with(make_absolute("/second/path"), {encoding: Encoding::UTF_8}).and_return(%w{two})
405
405
 
406
406
  expect(Puppet::FileServing::Fileset.merge(*@filesets)["."]).to eq(make_absolute("/first/path"))
407
407
  end
408
408
 
409
409
  it "uses the base path of the first found file when relative file paths conflict" do
410
- expect(Dir).to receive(:entries).with(make_absolute("/first/path"), encoding: Encoding::UTF_8).and_return(%w{one})
411
- expect(Dir).to receive(:entries).with(make_absolute("/second/path"), encoding: Encoding::UTF_8).and_return(%w{one})
410
+ expect(Dir).to receive(:entries).with(make_absolute("/first/path"), {encoding: Encoding::UTF_8}).and_return(%w{one})
411
+ expect(Dir).to receive(:entries).with(make_absolute("/second/path"), {encoding: Encoding::UTF_8}).and_return(%w{one})
412
412
 
413
413
  expect(Puppet::FileServing::Fileset.merge(*@filesets)["one"]).to eq(make_absolute("/first/path"))
414
414
  end
@@ -819,9 +819,11 @@ describe "Puppet::FileSystem" do
819
819
  mode = Puppet::FileSystem.stat(dir).mode
820
820
  Puppet::FileSystem.chmod(0, dir)
821
821
  begin
822
+ # JRuby 9.2.21.0 drops the path from the message..
823
+ message = Puppet::Util::Platform.jruby? ? /^Permission denied/ : /^Permission denied .* #{path}/
822
824
  expect {
823
825
  Puppet::FileSystem.unlink(path)
824
- }.to raise_error(Errno::EACCES, /^Permission denied .* #{path}/)
826
+ }.to raise_error(Errno::EACCES, message)
825
827
  ensure
826
828
  Puppet::FileSystem.chmod(mode, dir)
827
829
  end
@@ -475,7 +475,7 @@ describe Puppet::Graph::SimpleGraph do
475
475
 
476
476
  it "should write a dot file based on the passed name" do
477
477
  expect(File).to receive(:open).with(@file, "w:UTF-8").and_yield(double("file", :puts => nil))
478
- expect(@graph).to receive(:to_dot).with("name" => @name.to_s.capitalize)
478
+ expect(@graph).to receive(:to_dot).with({"name" => @name.to_s.capitalize})
479
479
  Puppet[:graph] = true
480
480
  @graph.write_graph(@name)
481
481
  end