puppet 8.9.0-universal-darwin → 8.10.0-universal-darwin

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11bfb2de739a6d88ff7b445100ddbdb4e5b2c00eb2a72173098efe1c24f37870
4
- data.tar.gz: de78a6e75a95d623da143aedad544e60fa70bac7fb05a43e07b0e94b8e9cacf7
3
+ metadata.gz: 801382203a15882ea95393d803ca3a9a0f7e6512321d3763e20c4f1d771e6da1
4
+ data.tar.gz: a77e485598b8fdf7f32b9cd803994c9de123e9ad544bf64737da01373f7d90ea
5
5
  SHA512:
6
- metadata.gz: c4a24b57502ea17e35e5a5850372089c7a12bd372727131ce7d2022abe058443ed10ba6403c0ebf2c1e2ee50d6adee6dd5cb1f65908b3ada73436264ece3ada4
7
- data.tar.gz: c1a911b096d4bdf42741225ebdbdab57ca25f50cde14bcd796d3098b6667dadcc0f4f067e808251dfd86d34618915d640186d8f0f343fd1ca5b818fe11bdad9d
6
+ metadata.gz: cf16c9f624d299d0f02bea9d92369332099ef32a566eed337917c79a471e861d151dfbe3b6d34dbfb69e9e885f7bf4d635ed11570004e42cadc8fc2217bfc8c4
7
+ data.tar.gz: 10afbd489fa840aa6d61dc4f2468c03f80809b6fd4acd48598eef22a04dee47675a6384c10d086e246d1c1556d44deb4c7b18b848a871df30aba3bfd06d18077
data/Gemfile CHANGED
@@ -43,6 +43,7 @@ group(:test) do
43
43
  # 1.16.0 - 1.16.2 are broken on Windows
44
44
  gem 'ffi', '>= 1.15.5', '< 1.17.0', '!= 1.16.0', '!= 1.16.1', '!= 1.16.2', require: false
45
45
  gem "json-schema", "~> 2.0", require: false
46
+ gem "racc", "1.5.2", require: false
46
47
  gem "rake", *location_for(ENV['RAKE_LOCATION'] || '~> 13.0')
47
48
  gem "rspec", "~> 3.1", require: false
48
49
  gem "rspec-expectations", ["~> 3.9", "!= 3.9.3"]
@@ -62,7 +63,6 @@ end
62
63
  group(:development, optional: true) do
63
64
  gem 'memory_profiler', require: false, platforms: [:mri]
64
65
  gem 'pry', require: false, platforms: [:ruby]
65
- gem "racc", "1.5.2", require: false, platforms: [:ruby]
66
66
  if RUBY_PLATFORM != 'java'
67
67
  gem 'ruby-prof', '>= 0.16.0', require: false
68
68
  end
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- puppet (8.9.0)
4
+ puppet (8.10.0)
5
5
  concurrent-ruby (~> 1.0)
6
6
  deep_merge (~> 1.0)
7
7
  facter (>= 4.3.0, < 5)
@@ -39,11 +39,12 @@ GEM
39
39
  rake (>= 12.0.0, < 14.0.0)
40
40
  docopt (0.6.1)
41
41
  erubi (1.13.0)
42
- facter (4.9.0)
42
+ facter (4.10.0)
43
43
  hocon (~> 1.3)
44
44
  thor (>= 1.0.1, < 1.3)
45
- faraday (2.11.0)
45
+ faraday (2.12.0)
46
46
  faraday-net_http (>= 2.0, < 3.4)
47
+ json
47
48
  logger
48
49
  faraday-net_http (3.3.0)
49
50
  net-http
@@ -72,12 +73,12 @@ GEM
72
73
  retriable (>= 2.0, < 4.a)
73
74
  google-apis-iamcredentials_v1 (0.21.0)
74
75
  google-apis-core (>= 0.15.0, < 2.a)
75
- google-apis-storage_v1 (0.44.0)
76
+ google-apis-storage_v1 (0.47.0)
76
77
  google-apis-core (>= 0.15.0, < 2.a)
77
78
  google-cloud-core (1.7.1)
78
79
  google-cloud-env (>= 1.0, < 3.a)
79
80
  google-cloud-errors (~> 1.0)
80
- google-cloud-env (2.2.0)
81
+ google-cloud-env (2.2.1)
81
82
  faraday (>= 1.0, < 3.a)
82
83
  google-cloud-errors (1.4.0)
83
84
  google-cloud-storage (1.52.0)
@@ -89,7 +90,7 @@ GEM
89
90
  google-cloud-core (~> 1.6)
90
91
  googleauth (~> 1.9)
91
92
  mini_mime (~> 1.0)
92
- googleauth (1.11.0)
93
+ googleauth (1.11.1)
93
94
  faraday (>= 1.0, < 3.a)
94
95
  google-cloud-env (~> 2.1)
95
96
  jwt (>= 1.4, < 3.0)
@@ -107,16 +108,16 @@ GEM
107
108
  json (2.7.2)
108
109
  json-schema (2.8.1)
109
110
  addressable (>= 2.4)
110
- jwt (2.8.2)
111
+ jwt (2.9.3)
111
112
  base64
112
113
  language_server-protocol (3.17.0.3)
113
114
  locale (2.1.4)
114
115
  logger (1.6.1)
115
- memory_profiler (1.0.2)
116
+ memory_profiler (1.1.0)
116
117
  method_source (1.1.0)
117
118
  mini_mime (1.1.5)
118
119
  minitar (0.12.1)
119
- msgpack (1.7.2)
120
+ msgpack (1.7.3)
120
121
  multi_json (1.15.0)
121
122
  mustache (1.1.1)
122
123
  mutex_m (0.2.0)
@@ -125,7 +126,7 @@ GEM
125
126
  nkf (0.2.0)
126
127
  optimist (3.1.0)
127
128
  os (1.1.4)
128
- packaging (0.122.0)
129
+ packaging (0.122.2)
129
130
  artifactory (~> 3)
130
131
  csv (>= 3.1.5)
131
132
  google-cloud-storage
@@ -167,7 +168,7 @@ GEM
167
168
  trailblazer-option (>= 0.1.1, < 0.2.0)
168
169
  uber (< 0.2.0)
169
170
  retriable (3.1.2)
170
- rexml (3.3.7)
171
+ rexml (3.3.8)
171
172
  rgen (0.9.1)
172
173
  ronn (0.7.3)
173
174
  hpricot (>= 0.8.2)
@@ -179,17 +180,17 @@ GEM
179
180
  rspec-mocks (~> 3.13.0)
180
181
  rspec-core (3.13.1)
181
182
  rspec-support (~> 3.13.0)
182
- rspec-expectations (3.13.2)
183
+ rspec-expectations (3.13.3)
183
184
  diff-lcs (>= 1.2.0, < 2.0)
184
185
  rspec-support (~> 3.13.0)
185
186
  rspec-its (1.3.0)
186
187
  rspec-core (>= 3.0.0)
187
188
  rspec-expectations (>= 3.0.0)
188
- rspec-mocks (3.13.1)
189
+ rspec-mocks (3.13.2)
189
190
  diff-lcs (>= 1.2.0, < 2.0)
190
191
  rspec-support (~> 3.13.0)
191
192
  rspec-support (3.13.1)
192
- rubocop (1.66.1)
193
+ rubocop (1.67.0)
193
194
  json (~> 2.3)
194
195
  language_server-protocol (>= 3.17.0)
195
196
  parallel (~> 1.10)
@@ -207,7 +208,7 @@ GEM
207
208
  rubocop (~> 1.61)
208
209
  rubocop-i18n (3.0.0)
209
210
  rubocop (~> 1.0)
210
- rubocop-performance (1.21.1)
211
+ rubocop-performance (1.22.1)
211
212
  rubocop (>= 1.48.1, < 2.0)
212
213
  rubocop-ast (>= 1.31.1, < 2.0)
213
214
  rubocop-rake (0.6.0)
@@ -234,18 +235,19 @@ GEM
234
235
  thor (1.2.2)
235
236
  trailblazer-option (0.1.2)
236
237
  uber (0.1.0)
237
- unicode-display_width (2.5.0)
238
+ unicode-display_width (2.6.0)
238
239
  uri (0.13.1)
239
240
  vcr (6.3.1)
240
241
  base64
241
- webmock (3.23.1)
242
+ webmock (3.24.0)
242
243
  addressable (>= 2.8.0)
243
244
  crack (>= 0.3.2)
244
245
  hashdiff (>= 0.4.0, < 2.0.0)
245
- webrick (1.8.1)
246
+ webrick (1.8.2)
246
247
  yard (0.9.36)
247
248
 
248
249
  PLATFORMS
250
+ ruby
249
251
  x86_64-linux
250
252
 
251
253
  DEPENDENCIES
@@ -288,4 +290,4 @@ DEPENDENCIES
288
290
  yard
289
291
 
290
292
  BUNDLED WITH
291
- 2.4.20
293
+ 2.5.19
data/README.md CHANGED
@@ -34,7 +34,7 @@ see the [Quick Start to Developing on Puppet](docs/quickstart.md) guide.
34
34
  We'd love to get contributions from you! For a quick guide to getting your
35
35
  system setup for developing, take a look at our [Quickstart
36
36
  Guide](https://github.com/puppetlabs/puppet/blob/main/docs/quickstart.md). Once you are up and running, take a look at the
37
- [Contribution Documents](https://github.com/puppetlabs/puppet/blob/main/CONTRIBUTING.md) to see how to get your changes merged
37
+ [Contribution Documents](https://github.com/puppetlabs/.github/blob/main/CONTRIBUTING.md) to see how to get your changes merged
38
38
  in.
39
39
 
40
40
  For more complete docs on developing with Puppet, take a look at the
@@ -179,7 +179,7 @@ class WindowsDaemon < Puppet::Util::Windows::Daemon
179
179
 
180
180
  def parse_log_level(puppet_path, cmdline_debug)
181
181
  begin
182
- loglevel = %x(#{puppet_path} config --section agent --log_level notice print log_level).chomp
182
+ loglevel = "notice"
183
183
  unless loglevel && respond_to?("log_#{loglevel}")
184
184
  loglevel = :notice
185
185
  log_err("Failed to determine loglevel, defaulting to #{loglevel}")
@@ -146,7 +146,11 @@ class Puppet::Application::Resource < Puppet::Application
146
146
  # If the specified environment does not exist locally, fall back to the default (production) environment
147
147
  env = Puppet.lookup(:environments).get(Puppet[:environment]) || create_default_environment
148
148
 
149
- Puppet.override(:current_environment => env, :loaders => Puppet::Pops::Loaders.new(env)) do
149
+ Puppet.override(
150
+ current_environment: env,
151
+ loaders: Puppet::Pops::Loaders.new(env),
152
+ stringify_rich: true
153
+ ) do
150
154
  type, name, params = parse_args(command_line.args)
151
155
 
152
156
  raise _("Editing with Yaml output is not supported") if options[:edit] and options[:to_yaml]
@@ -132,7 +132,7 @@ class Puppet::Configurer
132
132
  end
133
133
 
134
134
  def warn_number_of_facts(size, max_number)
135
- Puppet.warning _("The current total number of facts: %{size} exceeds the number of facts limit: %{max_size}") % { size: size, max_size: max_number }
135
+ Puppet.warning _("The current total number of fact values: %{size} exceeds the fact values limit: %{max_size}") % { size: size, max_size: max_number }
136
136
  end
137
137
 
138
138
  def warn_fact_name_length(name, max_length)
data/lib/puppet/daemon.rb CHANGED
@@ -157,7 +157,15 @@ class Puppet::Daemon
157
157
 
158
158
  # Loop forever running events - or, at least, until we exit.
159
159
  def run_event_loop
160
- agent_run = Puppet::Scheduler.create_job(Puppet[:runinterval], Puppet[:splay], Puppet[:splaylimit]) do
160
+ splaylimit = Puppet[:splay] ? Puppet[:splaylimit] : 0
161
+
162
+ agent_run = Puppet::Scheduler.create_job(Puppet[:runinterval], true, splaylimit) do |job|
163
+ if job.splay != 0
164
+ Puppet.info "Running agent every #{job.run_interval} seconds with splay #{job.splay} of #{job.splay_limit} seconds"
165
+ else
166
+ Puppet.info "Running agent every #{job.run_interval} seconds"
167
+ end
168
+
161
169
  # Splay for the daemon is handled in the scheduler
162
170
  agent.run(:splay => false)
163
171
  end
@@ -165,6 +173,9 @@ class Puppet::Daemon
165
173
  reparse_run = Puppet::Scheduler.create_job(Puppet[:filetimeout]) do
166
174
  Puppet.settings.reparse_config_files
167
175
  agent_run.run_interval = Puppet[:runinterval]
176
+ # Puppet[:splaylimit] defaults to Puppet[:runinterval] so if runinterval
177
+ # changes, but splaylimit doesn't, we'll still recalculate splay
178
+ agent_run.splay_limit = Puppet[:splay] ? Puppet[:splaylimit] : 0
168
179
  if Puppet[:filetimeout] == 0
169
180
  reparse_run.disable
170
181
  else
@@ -181,6 +192,7 @@ class Puppet::Daemon
181
192
 
182
193
  reparse_run.disable if Puppet[:filetimeout] == 0
183
194
 
195
+ # these are added in a different order than they are defined
184
196
  @scheduler.run_loop([reparse_run, agent_run, signal_loop])
185
197
  end
186
198
  end
@@ -1803,9 +1803,11 @@ EOT
1803
1803
  :desc => "The soft limit for the number of top level facts.",
1804
1804
  },
1805
1805
  :number_of_facts_soft_limit => {
1806
- :default => 2048,
1806
+ :default => 10_240,
1807
1807
  :type => :integer,
1808
- :desc => "The soft limit for the total number of facts.",
1808
+ :desc => "The soft limit for the total number of fact values. This counts the
1809
+ child elements of all facts (e.g. all items of an array or a hash), not just top
1810
+ level facts.",
1809
1811
  },
1810
1812
  :payload_soft_limit => {
1811
1813
  :default => 16 * 1024 * 1024,
@@ -2,8 +2,4 @@
2
2
 
3
3
  require_relative '../../puppet/util/feature'
4
4
 
5
- Puppet.features.add :telnet do
6
- require 'net/telnet'
7
- rescue LoadError
8
- false
9
- end
5
+ Puppet.features.add(:telnet, :libs => %(net/telnet))
@@ -160,7 +160,7 @@ Puppet::Type.type(:package).provide :pip, :parent => ::Puppet::Provider::Package
160
160
  command = resource_or_provider_command
161
161
  self.class.validate_command(command)
162
162
 
163
- command_and_options = [self.class.quote(command), 'install', "#{@resource[:name]}==versionplease"]
163
+ command_and_options = [self.class.quote(command), 'install', "#{@resource[:name]}==9!0dev0+x"]
164
164
  extra_arg = list_extra_flags(command_version)
165
165
  command_and_options << extra_arg if extra_arg
166
166
  command_and_options << install_options if @resource[:install_options]
@@ -31,6 +31,7 @@ Puppet::Type.type(:service).provide :systemd, :parent => :base do
31
31
  defaultfor 'os.name' => :ubuntu
32
32
  notdefaultfor 'os.name' => :ubuntu, 'os.release.major' => ["10.04", "12.04", "14.04", "14.10"] # These are using upstart
33
33
  defaultfor 'os.name' => :cumuluslinux, 'os.release.major' => %w[3 4]
34
+ defaultfor 'os.name' => :raspbian, 'os.release.major' => %w[12]
34
35
 
35
36
  def self.instances
36
37
  i = []
@@ -112,7 +112,7 @@ class Puppet::Resource
112
112
  # To get stringified parameter values the flag :stringify_rich can be set
113
113
  # in the puppet context.
114
114
  #
115
- stringify = Puppet.lookup(:stringify_rich) { false }
115
+ stringify = Puppet.lookup(:stringify_rich)
116
116
  converter = stringify ? Puppet::Pops::Serialization::ToStringifiedConverter.new : nil
117
117
 
118
118
  params = {}
@@ -2,10 +2,10 @@
2
2
 
3
3
  module Puppet::Scheduler
4
4
  class SplayJob < Job
5
- attr_reader :splay
5
+ attr_reader :splay, :splay_limit
6
6
 
7
7
  def initialize(run_interval, splay_limit, &block)
8
- @splay = calculate_splay(splay_limit)
8
+ @splay, @splay_limit = calculate_splay(splay_limit)
9
9
  super(run_interval, &block)
10
10
  end
11
11
 
@@ -25,10 +25,21 @@ module Puppet::Scheduler
25
25
  end
26
26
  end
27
27
 
28
+ # Recalculates splay.
29
+ #
30
+ # @param splay_limit [Integer] the maximum time (in seconds) to delay before an agent's first run.
31
+ # @return @splay [Integer] a random integer less than or equal to the splay limit that represents the seconds to
32
+ # delay before next agent run.
33
+ def splay_limit=(splay_limit)
34
+ if @splay_limit != splay_limit
35
+ @splay, @splay_limit = calculate_splay(splay_limit)
36
+ end
37
+ end
38
+
28
39
  private
29
40
 
30
41
  def calculate_splay(limit)
31
- rand(limit + 1)
42
+ [rand(limit + 1), limit]
32
43
  end
33
44
  end
34
45
  end
@@ -358,7 +358,7 @@ class Puppet::SSL::StateMachine
358
358
  Wait.new(@machine)
359
359
  else
360
360
  to_error(_("Failed to retrieve certificate for %{certname}: %{message}") %
361
- { certname: Puppet[:certname], message: e.response.message }, e)
361
+ { certname: Puppet[:certname], message: e.message }, e)
362
362
  end
363
363
  end
364
364
  end
@@ -391,7 +391,7 @@ class Puppet::SSL::StateMachine
391
391
  end
392
392
  Done.new(@machine, @ssl_context)
393
393
  rescue => e
394
- Puppet.warning(_("Unable to automatically renew certificate: %{message}") % { message: e })
394
+ Puppet.warning(_("Unable to automatically renew certificate: %{message}") % { message: e.message })
395
395
  Done.new(@machine, @ssl_context)
396
396
  end
397
397
  end
@@ -32,7 +32,9 @@ Puppet::Type.newtype(:tidy) do
32
32
 
33
33
  newparam(:recurse) do
34
34
  desc "If target is a directory, recursively descend
35
- into the directory looking for files to tidy."
35
+ into the directory looking for files to tidy. Numeric values
36
+ specify a limit for the recursion depth, `true` means
37
+ unrestricted recursion."
36
38
 
37
39
  newvalues(:true, :false, :inf, /^[0-9]+$/)
38
40
 
@@ -8,7 +8,7 @@
8
8
  # Raketasks and such to set the version based on the output of `git describe`
9
9
 
10
10
  module Puppet
11
- PUPPETVERSION = '8.9.0'
11
+ PUPPETVERSION = '8.10.0'
12
12
 
13
13
  ##
14
14
  # version is a public API method intended to always provide a fast and
data/lib/puppet.rb CHANGED
@@ -237,7 +237,11 @@ module Puppet
237
237
  :ssl_context => proc { Puppet.runtime[:http].default_ssl_context },
238
238
  :http_session => proc { Puppet.runtime[:http].create_session },
239
239
  :plugins => proc { Puppet::Plugins::Configuration.load_plugins },
240
- :rich_data => false
240
+ :rich_data => Puppet[:rich_data],
241
+ # `stringify_rich` controls whether `rich_data` is stringified into a lossy format
242
+ # instead of a lossless format. Catalogs should not be stringified, though to_yaml
243
+ # and the resource application have uses for a lossy, user friendly format.
244
+ :stringify_rich => false
241
245
  }
242
246
  end
243
247
 
data/locales/puppet.pot CHANGED
@@ -6,11 +6,11 @@
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: Puppet automation framework 8.8.0-49-gd70f906d86\n"
9
+ "Project-Id-Version: Puppet automation framework 8.8.0-75-g7e19ae9bed\n"
10
10
  "\n"
11
11
  "Report-Msgid-Bugs-To: https://tickets.puppetlabs.com\n"
12
- "POT-Creation-Date: 2024-08-29 16:36+0000\n"
13
- "PO-Revision-Date: 2024-08-29 16:36+0000\n"
12
+ "POT-Creation-Date: 2024-09-05 16:06+0000\n"
13
+ "PO-Revision-Date: 2024-09-05 16:06+0000\n"
14
14
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
15
15
  "Language-Team: LANGUAGE <LL@li.org>\n"
16
16
  "Language: \n"
@@ -535,7 +535,7 @@ msgid "Using cached catalog from environment '%{catalog_env}'"
535
535
  msgstr ""
536
536
 
537
537
  #: ../lib/puppet/configurer.rb:135
538
- msgid "The current total number of facts: %{size} exceeds the number of facts limit: %{max_size}"
538
+ msgid "The current total number of fact values: %{size} exceeds the fact values limit: %{max_size}"
539
539
  msgstr ""
540
540
 
541
541
  #: ../lib/puppet/configurer.rb:139
@@ -776,7 +776,7 @@ msgid "Invalid value '%{value}' for parameter %{name}. Allowed values are '%{all
776
776
  msgstr ""
777
777
 
778
778
  #. TRANSLATORS 'pluginsync' is a setting and should not be translated
779
- #: ../lib/puppet/defaults.rb:2042
779
+ #: ../lib/puppet/defaults.rb:2044
780
780
  msgid "Setting 'pluginsync' is deprecated."
781
781
  msgstr ""
782
782
 
@@ -1199,15 +1199,15 @@ msgstr ""
1199
1199
  msgid "Unable to load action %{actionname} from %{face}"
1200
1200
  msgstr ""
1201
1201
 
1202
- #: ../lib/puppet/face/help.rb:169
1202
+ #: ../lib/puppet/face/help.rb:159
1203
1203
  msgid "(Deprecated)"
1204
1204
  msgstr ""
1205
1205
 
1206
- #: ../lib/puppet/face/help.rb:172 ../lib/puppet/face/help.rb:184
1206
+ #: ../lib/puppet/face/help.rb:162 ../lib/puppet/face/help.rb:174
1207
1207
  msgid "!%{sub_command}! Subcommand unavailable due to error."
1208
1208
  msgstr ""
1209
1209
 
1210
- #: ../lib/puppet/face/help.rb:173 ../lib/puppet/face/help.rb:185
1210
+ #: ../lib/puppet/face/help.rb:163 ../lib/puppet/face/help.rb:175
1211
1211
  msgid "Check error logs."
1212
1212
  msgstr ""
1213
1213
 
@@ -1429,10 +1429,10 @@ When running in noop mode, Puppet will check whether each resource is in sync, l
1429
1429
  .IP "" 0
1430
1430
  .
1431
1431
  .SS "number_of_facts_soft_limit"
1432
- The soft limit for the total number of facts\.
1432
+ The soft limit for the total number of fact values\. This counts the child elements of all facts (e\.g\. all items of an array or a hash), not just top level facts\.
1433
1433
  .
1434
1434
  .IP "\(bu" 4
1435
- \fIDefault\fR: \fB2048\fR
1435
+ \fIDefault\fR: \fB10240\fR
1436
1436
  .
1437
1437
  .IP "" 0
1438
1438
  .
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.9.0
4
+ version: 8.10.0
5
5
  platform: universal-darwin
6
6
  authors:
7
7
  - Puppet Labs
@@ -1317,7 +1317,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1317
1317
  - !ruby/object:Gem::Version
1318
1318
  version: 1.3.1
1319
1319
  requirements: []
1320
- rubygems_version: 3.4.20
1320
+ rubygems_version: 3.5.19
1321
1321
  signing_key:
1322
1322
  specification_version: 4
1323
1323
  summary: Puppet, an automated configuration management tool