puppet 6.4.2-x64-mingw32 → 6.4.3-x64-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 (79) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +17 -17
  3. data/ext/solaris/smf/puppet.xml +2 -0
  4. data/lib/hiera/scope.rb +7 -0
  5. data/lib/puppet.rb +1 -1
  6. data/lib/puppet/application/agent.rb +16 -5
  7. data/lib/puppet/application/device.rb +12 -3
  8. data/lib/puppet/application/ssl.rb +2 -0
  9. data/lib/puppet/configurer.rb +1 -1
  10. data/lib/puppet/network/http/factory.rb +5 -0
  11. data/lib/puppet/pops/types/types.rb +5 -3
  12. data/lib/puppet/provider.rb +1 -2
  13. data/lib/puppet/provider/package.rb +2 -0
  14. data/lib/puppet/provider/package/dpkg.rb +15 -2
  15. data/lib/puppet/provider/package/gem.rb +65 -29
  16. data/lib/puppet/provider/package/pip.rb +135 -111
  17. data/lib/puppet/provider/package/pip3.rb +1 -1
  18. data/lib/puppet/provider/package/puppet_gem.rb +1 -1
  19. data/lib/puppet/provider/package/rpm.rb +27 -16
  20. data/lib/puppet/provider/package/yum.rb +1 -1
  21. data/lib/puppet/provider/package_targetable.rb +68 -0
  22. data/lib/puppet/provider/service/upstart.rb +5 -3
  23. data/lib/puppet/provider/user/useradd.rb +16 -13
  24. data/lib/puppet/settings/server_list_setting.rb +9 -0
  25. data/lib/puppet/ssl/host.rb +1 -1
  26. data/lib/puppet/ssl/state_machine.rb +99 -28
  27. data/lib/puppet/type/package.rb +46 -9
  28. data/lib/puppet/util/pidlock.rb +3 -2
  29. data/lib/puppet/util/windows/process.rb +8 -8
  30. data/lib/puppet/util/windows/registry.rb +7 -1
  31. data/lib/puppet/util/windows/user.rb +14 -4
  32. data/lib/puppet/version.rb +1 -1
  33. data/locales/puppet.pot +115 -103
  34. data/man/man5/puppet.conf.5 +2 -2
  35. data/man/man8/puppet-agent.8 +1 -1
  36. data/man/man8/puppet-apply.8 +1 -1
  37. data/man/man8/puppet-catalog.8 +1 -1
  38. data/man/man8/puppet-config.8 +1 -1
  39. data/man/man8/puppet-describe.8 +1 -1
  40. data/man/man8/puppet-device.8 +1 -1
  41. data/man/man8/puppet-doc.8 +1 -1
  42. data/man/man8/puppet-epp.8 +1 -1
  43. data/man/man8/puppet-facts.8 +1 -1
  44. data/man/man8/puppet-filebucket.8 +1 -1
  45. data/man/man8/puppet-generate.8 +1 -1
  46. data/man/man8/puppet-help.8 +1 -1
  47. data/man/man8/puppet-key.8 +1 -1
  48. data/man/man8/puppet-lookup.8 +1 -1
  49. data/man/man8/puppet-man.8 +1 -1
  50. data/man/man8/puppet-module.8 +1 -1
  51. data/man/man8/puppet-node.8 +1 -1
  52. data/man/man8/puppet-parser.8 +1 -1
  53. data/man/man8/puppet-plugin.8 +1 -1
  54. data/man/man8/puppet-report.8 +1 -1
  55. data/man/man8/puppet-resource.8 +1 -1
  56. data/man/man8/puppet-script.8 +1 -1
  57. data/man/man8/puppet-ssl.8 +1 -1
  58. data/man/man8/puppet-status.8 +1 -1
  59. data/man/man8/puppet.8 +2 -2
  60. data/spec/integration/type/package_spec.rb +1 -1
  61. data/spec/integration/util/windows/registry_spec.rb +52 -0
  62. data/spec/integration/util/windows/user_spec.rb +19 -0
  63. data/spec/unit/application/agent_spec.rb +53 -32
  64. data/spec/unit/application/ssl_spec.rb +13 -0
  65. data/spec/unit/configurer_spec.rb +1 -1
  66. data/spec/unit/functions/new_spec.rb +15 -0
  67. data/spec/unit/hiera/scope_spec.rb +7 -0
  68. data/spec/unit/network/http/factory_spec.rb +6 -0
  69. data/spec/unit/provider/package/dpkg_spec.rb +18 -1
  70. data/spec/unit/provider/package/gem_spec.rb +101 -48
  71. data/spec/unit/provider/package/pip3_spec.rb +17 -0
  72. data/spec/unit/provider/package/pip_spec.rb +57 -67
  73. data/spec/unit/provider/package/puppet_gem_spec.rb +22 -6
  74. data/spec/unit/provider/package/rpm_spec.rb +116 -27
  75. data/spec/unit/provider/service/upstart_spec.rb +3 -22
  76. data/spec/unit/settings/server_list_setting_spec.rb +21 -0
  77. data/spec/unit/ssl/state_machine_spec.rb +206 -83
  78. data/spec/unit/util/pidlock_spec.rb +26 -0
  79. metadata +5 -2
@@ -122,21 +122,21 @@ module Puppet::Util::Windows::Process
122
122
  def get_process_image_name_by_pid(pid)
123
123
  image_name = ""
124
124
 
125
- open_process(PROCESS_QUERY_INFORMATION, false, pid) do |phandle|
125
+ open_process(PROCESS_QUERY_INFORMATION, false, pid) do |phandle|
126
126
 
127
- FFI::MemoryPointer.new(:dword, 1) do |exe_name_length_ptr|
128
- # Add 1 for the null terminator, and UTF is 2 bytes/char:
129
- max_path_length = (MAX_PATH_LENGTH + 1) * 2
130
- exe_name_length_ptr.write_dword(max_path_length)
131
- FFI::MemoryPointer.new(max_path_length) do |exe_name_ptr|
127
+ FFI::MemoryPointer.new(:dword, 1) do |exe_name_length_ptr|
128
+ # UTF is 2 bytes/char:
129
+ max_chars = MAX_PATH_LENGTH + 1
130
+ exe_name_length_ptr.write_dword(max_chars)
131
+ FFI::MemoryPointer.new(:wchar, max_chars) do |exe_name_ptr|
132
132
  use_win32_path_format = 0
133
133
  result = QueryFullProcessImageNameW(phandle, use_win32_path_format, exe_name_ptr, exe_name_length_ptr)
134
134
  if result == FFI::WIN32_FALSE
135
135
  raise Puppet::Util::Windows::Error.new(
136
136
  "QueryFullProcessImageNameW(phandle, #{use_win32_path_format}, " +
137
- "exe_name_ptr, #{max_path_length}")
137
+ "exe_name_ptr, #{max_chars}")
138
138
  end
139
- image_name = exe_name_ptr.read_wide_string(MAX_PATH_LENGTH + 1)
139
+ image_name = exe_name_ptr.read_wide_string(exe_name_length_ptr.read_dword)
140
140
  end
141
141
  end
142
142
  end
@@ -232,7 +232,7 @@ module Puppet::Util::Windows
232
232
  begin
233
233
  case type
234
234
  when Win32::Registry::REG_SZ, Win32::Registry::REG_EXPAND_SZ
235
- result = [ type, data_ptr.read_wide_string(string_length) ]
235
+ result = [ type, sanitize(data_ptr.read_wide_string(string_length)) ]
236
236
  when Win32::Registry::REG_MULTI_SZ
237
237
  result = [ type, data_ptr.read_wide_string(string_length).split(/\0/) ]
238
238
  when Win32::Registry::REG_BINARY
@@ -312,6 +312,12 @@ module Puppet::Util::Windows
312
312
  result
313
313
  end
314
314
 
315
+ def sanitize(value)
316
+ # Replace null bytes with a space
317
+ value.gsub!("\x00", ' ')
318
+ value
319
+ end
320
+
315
321
  ffi_convention :stdcall
316
322
 
317
323
  # https://msdn.microsoft.com/en-us/library/windows/desktop/ms724862(v=vs.85).aspx
@@ -75,15 +75,18 @@ module Puppet::Util::Windows::User
75
75
  module_function :password_is?
76
76
 
77
77
  def logon_user(name, password, &block)
78
- fLOGON32_LOGON_NETWORK = 3
79
78
  fLOGON32_PROVIDER_DEFAULT = 0
79
+ fLOGON32_LOGON_INTERACTIVE = 2
80
+ fLOGON32_LOGON_NETWORK = 3
80
81
 
81
82
  token = nil
82
83
  begin
83
84
  FFI::MemoryPointer.new(:handle, 1) do |token_pointer|
84
- if LogonUserW(wide_string(name), wide_string('.'), password.nil? ? FFI::Pointer::NULL : wide_string(password),
85
- fLOGON32_LOGON_NETWORK, fLOGON32_PROVIDER_DEFAULT, token_pointer) == FFI::WIN32_FALSE
86
- raise Puppet::Util::Windows::Error.new(_("Failed to logon user %{name}") % { name: name.inspect })
85
+ #try logon using network else try logon using interactive mode
86
+ if logon_user_by_logon_type(name, password, fLOGON32_LOGON_NETWORK, fLOGON32_PROVIDER_DEFAULT, token_pointer) == FFI::WIN32_FALSE
87
+ if logon_user_by_logon_type(name, password, fLOGON32_LOGON_INTERACTIVE, fLOGON32_PROVIDER_DEFAULT, token_pointer) == FFI::WIN32_FALSE
88
+ raise Puppet::Util::Windows::Error.new(_("Failed to logon user %{name}") % {name: name.inspect})
89
+ end
87
90
  end
88
91
 
89
92
  yield token = token_pointer.read_handle
@@ -95,8 +98,15 @@ module Puppet::Util::Windows::User
95
98
  # token has been closed by this point
96
99
  true
97
100
  end
101
+
98
102
  module_function :logon_user
99
103
 
104
+ def self.logon_user_by_logon_type(name, password, logon_type, logon_provider, token)
105
+ LogonUserW(wide_string(name), wide_string('.'), password.nil? ? FFI::Pointer::NULL : wide_string(password), logon_type, logon_provider, token)
106
+ end
107
+
108
+ private_class_method :logon_user_by_logon_type
109
+
100
110
  def load_profile(user, password)
101
111
  logon_user(user, password) do |token|
102
112
  FFI::MemoryPointer.from_string_to_wide_string(user) do |lpUserName|
@@ -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 = '6.4.2'
9
+ PUPPETVERSION = '6.4.3'
10
10
 
11
11
  ##
12
12
  # version is a public API method intended to always provide a fast and
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 6.4.0-81-gcb43a63\n"
9
+ "Project-Id-Version: Puppet automation framework 6.4.2-144-gb0bc814\n"
10
10
  "\n"
11
11
  "Report-Msgid-Bugs-To: https://tickets.puppetlabs.com\n"
12
- "POT-Creation-Date: 2019-04-04 23:31+0000\n"
13
- "PO-Revision-Date: 2019-04-04 23:31+0000\n"
12
+ "POT-Creation-Date: 2019-06-18 01:01+0000\n"
13
+ "PO-Revision-Date: 2019-06-18 01:01+0000\n"
14
14
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
15
15
  "Language-Team: LANGUAGE <LL@li.org>\n"
16
16
  "Language: \n"
@@ -28,11 +28,11 @@ msgstr ""
28
28
  msgid "See https://puppet.com/docs/puppet/%{minor_version}/deprecated_language.html"
29
29
  msgstr ""
30
30
 
31
- #: ../lib/hiera/scope.rb:43 ../lib/puppet/parser/scope.rb:535
31
+ #: ../lib/hiera/scope.rb:46 ../lib/puppet/parser/scope.rb:535
32
32
  msgid "Variable: %{name}"
33
33
  msgstr ""
34
34
 
35
- #: ../lib/hiera/scope.rb:44 ../lib/hiera/scope.rb:46 ../lib/puppet/parser/scope.rb:536 ../lib/puppet/parser/scope.rb:538
35
+ #: ../lib/hiera/scope.rb:47 ../lib/hiera/scope.rb:49 ../lib/puppet/parser/scope.rb:536 ../lib/puppet/parser/scope.rb:538
36
36
  msgid "Undefined variable '%{name}'; %{reason}"
37
37
  msgstr ""
38
38
 
@@ -48,10 +48,6 @@ msgstr ""
48
48
  msgid "Config file %{hiera_config} not found, using Hiera defaults"
49
49
  msgstr ""
50
50
 
51
- #: ../lib/puppet.rb:4
52
- msgid "Puppet %{version} requires ruby 2.3.0 or greater."
53
- msgstr ""
54
-
55
51
  #: ../lib/puppet.rb:130
56
52
  msgid "Support for ruby version %{version} is deprecated and will be removed in a future release. See https://puppet.com/docs/puppet/latest/system_requirements.html for a list of supported ruby versions."
57
53
  msgstr ""
@@ -186,15 +182,19 @@ msgstr ""
186
182
  msgid "The puppet agent daemon"
187
183
  msgstr ""
188
184
 
189
- #: ../lib/puppet/application/agent.rb:365
190
- msgid "Fingerprint asked but no certificate nor certificate request have yet been issued"
185
+ #: ../lib/puppet/application/agent.rb:371
186
+ msgid "Fingerprint asked but neither the certificate, nor the certificate request have been issued"
187
+ msgstr ""
188
+
189
+ #: ../lib/puppet/application/agent.rb:376
190
+ msgid "Failed to generate fingerprint: %{message}"
191
191
  msgstr ""
192
192
 
193
- #: ../lib/puppet/application/agent.rb:388
193
+ #: ../lib/puppet/application/agent.rb:399
194
194
  msgid "Starting Puppet client version %{version}"
195
195
  msgstr ""
196
196
 
197
- #: ../lib/puppet/application/agent.rb:404
197
+ #: ../lib/puppet/application/agent.rb:415
198
198
  msgid "The puppet agent command does not take parameters"
199
199
  msgstr ""
200
200
 
@@ -272,23 +272,23 @@ msgstr ""
272
272
  msgid "No device found in %{config}"
273
273
  msgstr ""
274
274
 
275
- #: ../lib/puppet/application/device.rb:297
275
+ #: ../lib/puppet/application/device.rb:306
276
276
  msgid "retrieving resource: %{resource} from %{target} at %{scheme}%{url_host}%{port}%{url_path}"
277
277
  msgstr ""
278
278
 
279
- #: ../lib/puppet/application/device.rb:312
279
+ #: ../lib/puppet/application/device.rb:321
280
280
  msgid "retrieving facts from %{target} at %{scheme}%{url_host}%{port}%{url_path}"
281
281
  msgstr ""
282
282
 
283
- #: ../lib/puppet/application/device.rb:335
283
+ #: ../lib/puppet/application/device.rb:344
284
284
  msgid "starting applying configuration to %{target} at %{scheme}%{url_host}%{port}%{url_path}"
285
285
  msgstr ""
286
286
 
287
- #: ../lib/puppet/application/device.rb:372 ../lib/puppet/application/resource.rb:196
287
+ #: ../lib/puppet/application/device.rb:381 ../lib/puppet/application/resource.rb:196
288
288
  msgid "You must specify the type to display"
289
289
  msgstr ""
290
290
 
291
- #: ../lib/puppet/application/device.rb:373 ../lib/puppet/application/resource.rb:197
291
+ #: ../lib/puppet/application/device.rb:382 ../lib/puppet/application/resource.rb:197
292
292
  msgid "Could not find type %{type}"
293
293
  msgstr ""
294
294
 
@@ -463,51 +463,51 @@ msgstr ""
463
463
  msgid "An action must be specified."
464
464
  msgstr ""
465
465
 
466
- #: ../lib/puppet/application/ssl.rb:123 ../lib/puppet/application/ssl.rb:130
466
+ #: ../lib/puppet/application/ssl.rb:125 ../lib/puppet/application/ssl.rb:132
467
467
  msgid "The certificate for '%{name}' has not yet been signed"
468
468
  msgstr ""
469
469
 
470
- #: ../lib/puppet/application/ssl.rb:141
470
+ #: ../lib/puppet/application/ssl.rb:143
471
471
  msgid "Completed SSL initialization"
472
472
  msgstr ""
473
473
 
474
- #: ../lib/puppet/application/ssl.rb:143
474
+ #: ../lib/puppet/application/ssl.rb:145
475
475
  msgid "Unknown action '%{action}'"
476
476
  msgstr ""
477
477
 
478
- #: ../lib/puppet/application/ssl.rb:150 ../lib/puppet/ssl/key.rb:24 ../lib/puppet/ssl/state_machine.rb:113
478
+ #: ../lib/puppet/application/ssl.rb:152 ../lib/puppet/ssl/key.rb:24 ../lib/puppet/ssl/state_machine.rb:123
479
479
  msgid "Creating a new SSL key for %{name}"
480
480
  msgstr ""
481
481
 
482
- #: ../lib/puppet/application/ssl.rb:158
482
+ #: ../lib/puppet/application/ssl.rb:160
483
483
  msgid "Submitted certificate request for '%{name}' to https://%{server}:%{port}"
484
484
  msgstr ""
485
485
 
486
- #: ../lib/puppet/application/ssl.rb:163
486
+ #: ../lib/puppet/application/ssl.rb:165
487
487
  msgid "Could not submit certificate request for '%{name}' to https://%{server}:%{port} due to a conflict on the server"
488
488
  msgstr ""
489
489
 
490
- #: ../lib/puppet/application/ssl.rb:165 ../lib/puppet/application/ssl.rb:168
490
+ #: ../lib/puppet/application/ssl.rb:167 ../lib/puppet/application/ssl.rb:170
491
491
  msgid "Failed to submit certificate request: %{message}"
492
492
  msgstr ""
493
493
 
494
- #: ../lib/puppet/application/ssl.rb:174
494
+ #: ../lib/puppet/application/ssl.rb:176
495
495
  msgid "Downloading certificate '%{name}' from https://%{server}:%{port}"
496
496
  msgstr ""
497
497
 
498
- #: ../lib/puppet/application/ssl.rb:181 ../lib/puppet/application/ssl.rb:189
498
+ #: ../lib/puppet/application/ssl.rb:183 ../lib/puppet/application/ssl.rb:191
499
499
  msgid "Downloaded certificate '%{name}' with fingerprint %{fingerprint}"
500
500
  msgstr ""
501
501
 
502
- #: ../lib/puppet/application/ssl.rb:197 ../lib/puppet/application/ssl.rb:200
502
+ #: ../lib/puppet/application/ssl.rb:199 ../lib/puppet/application/ssl.rb:202
503
503
  msgid "Failed to download certificate: %{message}"
504
504
  msgstr ""
505
505
 
506
- #: ../lib/puppet/application/ssl.rb:227 ../lib/puppet/application/ssl.rb:230
506
+ #: ../lib/puppet/application/ssl.rb:229 ../lib/puppet/application/ssl.rb:232
507
507
  msgid "Failed to connect to the CA to determine if certificate %{certname} has been cleaned"
508
508
  msgstr ""
509
509
 
510
- #: ../lib/puppet/application/ssl.rb:234
510
+ #: ../lib/puppet/application/ssl.rb:236
511
511
  msgid ""
512
512
  "The certificate %{certname} must be cleaned from the CA first. To fix this,\n"
513
513
  "run the following commands on the CA:\n"
@@ -515,7 +515,7 @@ msgid ""
515
515
  " puppet ssl clean\n"
516
516
  msgstr ""
517
517
 
518
- #: ../lib/puppet/application/ssl.rb:254
518
+ #: ../lib/puppet/application/ssl.rb:256
519
519
  msgid "Removed %{label} %{path}"
520
520
  msgstr ""
521
521
 
@@ -6222,65 +6222,65 @@ msgstr ""
6222
6222
  msgid "Unknown type <%{type}>"
6223
6223
  msgstr ""
6224
6224
 
6225
- #: ../lib/puppet/pops/types/types.rb:928
6225
+ #: ../lib/puppet/pops/types/types.rb:930
6226
6226
  msgid "The string '%{str}' cannot be converted to Numeric"
6227
6227
  msgstr ""
6228
6228
 
6229
- #: ../lib/puppet/pops/types/types.rb:931
6229
+ #: ../lib/puppet/pops/types/types.rb:933
6230
6230
  msgid "Value of type %{type} cannot be converted to Numeric"
6231
6231
  msgstr ""
6232
6232
 
6233
- #: ../lib/puppet/pops/types/types.rb:1169
6233
+ #: ../lib/puppet/pops/types/types.rb:1171
6234
6234
  msgid "The string '%{str}' cannot be converted to Integer"
6235
6235
  msgstr ""
6236
6236
 
6237
- #: ../lib/puppet/pops/types/types.rb:1172
6237
+ #: ../lib/puppet/pops/types/types.rb:1174
6238
6238
  msgid "Value of type %{type} cannot be converted to Integer"
6239
6239
  msgstr ""
6240
6240
 
6241
- #: ../lib/puppet/pops/types/types.rb:1180
6241
+ #: ../lib/puppet/pops/types/types.rb:1182
6242
6242
  msgid "Illegal radix: %{radix}, expected 2, 8, 10, 16, or default"
6243
6243
  msgstr ""
6244
6244
 
6245
- #: ../lib/puppet/pops/types/types.rb:1293
6245
+ #: ../lib/puppet/pops/types/types.rb:1295
6246
6246
  msgid "The string '%{str}' cannot be converted to Float"
6247
6247
  msgstr ""
6248
6248
 
6249
- #: ../lib/puppet/pops/types/types.rb:1296
6249
+ #: ../lib/puppet/pops/types/types.rb:1298
6250
6250
  msgid "Value of type %{type} cannot be converted to Float"
6251
6251
  msgstr ""
6252
6252
 
6253
6253
  #. TRANSLATORS 'PStringType#initialize' is a class and method name and should not be translated
6254
- #: ../lib/puppet/pops/types/types.rb:1513
6254
+ #: ../lib/puppet/pops/types/types.rb:1515
6255
6255
  msgid "Passing more than one argument to PStringType#initialize is deprecated"
6256
6256
  msgstr ""
6257
6257
 
6258
6258
  #. TRANSLATORS 'PStringType#values' and '#value' are classes and method names and should not be translated
6259
- #: ../lib/puppet/pops/types/types.rb:1567
6259
+ #: ../lib/puppet/pops/types/types.rb:1569
6260
6260
  msgid "Method PStringType#values is deprecated. Use #value instead"
6261
6261
  msgstr ""
6262
6262
 
6263
- #: ../lib/puppet/pops/types/types.rb:1892
6263
+ #: ../lib/puppet/pops/types/types.rb:1894
6264
6264
  msgid "The string '%{str}' cannot be converted to Boolean"
6265
6265
  msgstr ""
6266
6266
 
6267
- #: ../lib/puppet/pops/types/types.rb:1895
6267
+ #: ../lib/puppet/pops/types/types.rb:1897
6268
6268
  msgid "Value of type %{type} cannot be converted to Boolean"
6269
6269
  msgstr ""
6270
6270
 
6271
- #: ../lib/puppet/pops/types/types.rb:2623
6271
+ #: ../lib/puppet/pops/types/types.rb:2625
6272
6272
  msgid "Value of type %{type} cannot be converted to Array"
6273
6273
  msgstr ""
6274
6274
 
6275
- #: ../lib/puppet/pops/types/types.rb:2693
6275
+ #: ../lib/puppet/pops/types/types.rb:2695
6276
6276
  msgid "Puppet::Pops::Types::PHashType#element_type is deprecated, use #value_type instead"
6277
6277
  msgstr ""
6278
6278
 
6279
- #: ../lib/puppet/pops/types/types.rb:2830
6279
+ #: ../lib/puppet/pops/types/types.rb:2832
6280
6280
  msgid "odd number of arguments for Hash"
6281
6281
  msgstr ""
6282
6282
 
6283
- #: ../lib/puppet/pops/types/types.rb:2841
6283
+ #: ../lib/puppet/pops/types/types.rb:2843
6284
6284
  msgid "Value of type %{type} cannot be converted to Hash"
6285
6285
  msgstr ""
6286
6286
 
@@ -6364,7 +6364,7 @@ msgid "No command %{command} defined for provider %{provider}"
6364
6364
  msgstr ""
6365
6365
 
6366
6366
  #: ../lib/puppet/provider.rb:398
6367
- msgid "Provider %{provider} has not defined the 'instances' class method"
6367
+ msgid "To support listing resources of this type the '%{provider}' provider needs to implement an 'instances' class method returning the current set of resources. We recommend porting your module to the simpler Resource API instead: https://puppet.com/search/docs?keys=resource+api"
6368
6368
  msgstr ""
6369
6369
 
6370
6370
  #: ../lib/puppet/provider.rb:470
@@ -6575,7 +6575,7 @@ msgstr ""
6575
6575
  msgid "Could not list installed Packages: %{detail}"
6576
6576
  msgstr ""
6577
6577
 
6578
- #: ../lib/puppet/provider/package/aix.rb:139 ../lib/puppet/provider/package/yum.rb:247
6578
+ #: ../lib/puppet/provider/package/aix.rb:139 ../lib/puppet/provider/package/yum.rb:248
6579
6579
  msgid "Tried to get latest on a missing package"
6580
6580
  msgstr ""
6581
6581
 
@@ -6607,7 +6607,7 @@ msgstr ""
6607
6607
  msgid "No responsefile specified or non existent, not preseeding anything"
6608
6608
  msgstr ""
6609
6609
 
6610
- #: ../lib/puppet/provider/package/aptitude.rb:21 ../lib/puppet/provider/package/ports.rb:20 ../lib/puppet/provider/package/portupgrade.rb:93 ../lib/puppet/provider/package/portupgrade.rb:151 ../lib/puppet/provider/package/rug.rb:28 ../lib/puppet/provider/package/up2date.rb:17 ../lib/puppet/provider/package/yum.rb:228 ../lib/puppet/provider/package/zypper.rb:109
6610
+ #: ../lib/puppet/provider/package/aptitude.rb:21 ../lib/puppet/provider/package/ports.rb:20 ../lib/puppet/provider/package/portupgrade.rb:93 ../lib/puppet/provider/package/portupgrade.rb:151 ../lib/puppet/provider/package/rug.rb:28 ../lib/puppet/provider/package/up2date.rb:17 ../lib/puppet/provider/package/yum.rb:229 ../lib/puppet/provider/package/zypper.rb:109
6611
6611
  msgid "Could not find package %{name}"
6612
6612
  msgstr ""
6613
6613
 
@@ -6639,7 +6639,7 @@ msgstr ""
6639
6639
  msgid "You cannot install dpkg packages without a source"
6640
6640
  msgstr ""
6641
6641
 
6642
- #: ../lib/puppet/provider/package/dpkg.rb:108
6642
+ #: ../lib/puppet/provider/package/dpkg.rb:107
6643
6643
  msgid "source doesn't contain named package, but %{name}"
6644
6644
  msgstr ""
6645
6645
 
@@ -6647,27 +6647,27 @@ msgstr ""
6647
6647
  msgid "source is defined but does not have trailing slash, ignoring %{source}"
6648
6648
  msgstr ""
6649
6649
 
6650
- #: ../lib/puppet/provider/package/gem.rb:42
6650
+ #: ../lib/puppet/provider/package/gem.rb:94
6651
6651
  msgid "Could not list gems: %{detail}"
6652
6652
  msgstr ""
6653
6653
 
6654
- #: ../lib/puppet/provider/package/gem.rb:68
6654
+ #: ../lib/puppet/provider/package/gem.rb:120
6655
6655
  msgid "Could not match %{desc}"
6656
6656
  msgstr ""
6657
6657
 
6658
- #: ../lib/puppet/provider/package/gem.rb:109
6658
+ #: ../lib/puppet/provider/package/gem.rb:168
6659
6659
  msgid "Invalid source '%{uri}': %{detail}"
6660
6660
  msgstr ""
6661
6661
 
6662
- #: ../lib/puppet/provider/package/gem.rb:120
6662
+ #: ../lib/puppet/provider/package/gem.rb:179
6663
6663
  msgid "puppet:// URLs are not supported as gem sources"
6664
6664
  msgstr ""
6665
6665
 
6666
- #: ../lib/puppet/provider/package/gem.rb:136
6666
+ #: ../lib/puppet/provider/package/gem.rb:195
6667
6667
  msgid "Could not install: %{output}"
6668
6668
  msgstr ""
6669
6669
 
6670
- #: ../lib/puppet/provider/package/gem.rb:161
6670
+ #: ../lib/puppet/provider/package/gem.rb:221
6671
6671
  msgid "Could not uninstall: %{output}"
6672
6672
  msgstr ""
6673
6673
 
@@ -6918,26 +6918,34 @@ msgstr ""
6918
6918
  msgid "Don't know how to install '%{source}'"
6919
6919
  msgstr ""
6920
6920
 
6921
- #: ../lib/puppet/provider/package/yum.rb:28
6921
+ #: ../lib/puppet/provider/package/yum.rb:29
6922
6922
  msgid "The yum provider can only be used as root"
6923
6923
  msgstr ""
6924
6924
 
6925
- #: ../lib/puppet/provider/package/yum.rb:82
6925
+ #: ../lib/puppet/provider/package/yum.rb:83
6926
6926
  msgid "Could not check for updates, '%{cmd} check-update' exited with %{status}"
6927
6927
  msgstr ""
6928
6928
 
6929
- #: ../lib/puppet/provider/package/yum.rb:116
6929
+ #: ../lib/puppet/provider/package/yum.rb:117
6930
6930
  msgid "Failed to parse package name and architecture from '%{pkgname}'"
6931
6931
  msgstr ""
6932
6932
 
6933
- #: ../lib/puppet/provider/package/yum.rb:222
6933
+ #: ../lib/puppet/provider/package/yum.rb:223
6934
6934
  msgid "Could not find package %{wanted}"
6935
6935
  msgstr ""
6936
6936
 
6937
- #: ../lib/puppet/provider/package/yum.rb:233
6937
+ #: ../lib/puppet/provider/package/yum.rb:234
6938
6938
  msgid "Failed to update to version %{should}, got version %{version} instead"
6939
6939
  msgstr ""
6940
6940
 
6941
+ #: ../lib/puppet/provider/package_targetable.rb:53
6942
+ msgid "Provider %{name} package command is not functional on this host"
6943
+ msgstr ""
6944
+
6945
+ #: ../lib/puppet/provider/package_targetable.rb:56
6946
+ msgid "Provider %{name} package command '%{cmd}' does not exist on this host"
6947
+ msgstr ""
6948
+
6941
6949
  #: ../lib/puppet/provider/parsedfile.rb:52
6942
6950
  msgid "Invalid filetype %{type}"
6943
6951
  msgstr ""
@@ -7572,7 +7580,7 @@ msgstr ""
7572
7580
  msgid "Invalid priority format '%{value}' for parameter: %{name}"
7573
7581
  msgstr ""
7574
7582
 
7575
- #: ../lib/puppet/settings/server_list_setting.rb:16
7583
+ #: ../lib/puppet/settings/server_list_setting.rb:25
7576
7584
  msgid "Expected an Array of String, got a %{klass}"
7577
7585
  msgstr ""
7578
7586
 
@@ -7692,15 +7700,15 @@ msgstr ""
7692
7700
  msgid "Server hostname '%{host}' did not match server certificate; %{expected_certnames}"
7693
7701
  msgstr ""
7694
7702
 
7695
- #: ../lib/puppet/ssl/host.rb:164
7703
+ #: ../lib/puppet/ssl/host.rb:152
7696
7704
  msgid "No certificate to validate."
7697
7705
  msgstr ""
7698
7706
 
7699
- #: ../lib/puppet/ssl/host.rb:165
7707
+ #: ../lib/puppet/ssl/host.rb:153
7700
7708
  msgid "No private key with which to validate certificate with fingerprint: %{fingerprint}"
7701
7709
  msgstr ""
7702
7710
 
7703
- #: ../lib/puppet/ssl/host.rb:167
7711
+ #: ../lib/puppet/ssl/host.rb:155
7704
7712
  msgid ""
7705
7713
  "The certificate retrieved from the master does not match the agent's private key. Did you forget to run as root?\n"
7706
7714
  "Certificate fingerprint: %{fingerprint}\n"
@@ -7712,7 +7720,7 @@ msgid ""
7712
7720
  " 2. puppet %{puppet_params}\n"
7713
7721
  msgstr ""
7714
7722
 
7715
- #: ../lib/puppet/ssl/host.rb:218
7723
+ #: ../lib/puppet/ssl/host.rb:206
7716
7724
  msgid ""
7717
7725
  "The CSR retrieved from the master does not match the agent's public key.\n"
7718
7726
  "CSR fingerprint: %{fingerprint}\n"
@@ -7726,53 +7734,53 @@ msgid ""
7726
7734
  " 2. puppet %{puppet_params}\n"
7727
7735
  msgstr ""
7728
7736
 
7729
- #: ../lib/puppet/ssl/host.rb:272 ../lib/puppet/ssl/host.rb:293
7737
+ #: ../lib/puppet/ssl/host.rb:260 ../lib/puppet/ssl/host.rb:281
7730
7738
  msgid "Could not request certificate: %{message}"
7731
7739
  msgstr ""
7732
7740
 
7733
- #: ../lib/puppet/ssl/host.rb:274
7741
+ #: ../lib/puppet/ssl/host.rb:262
7734
7742
  msgid "Exiting; failed to retrieve certificate and waitforcert is disabled"
7735
7743
  msgstr ""
7736
7744
 
7737
- #: ../lib/puppet/ssl/host.rb:283
7745
+ #: ../lib/puppet/ssl/host.rb:271
7738
7746
  msgid "Exiting; no certificate found and waitforcert is disabled"
7739
7747
  msgstr ""
7740
7748
 
7741
- #: ../lib/puppet/ssl/host.rb:291
7749
+ #: ../lib/puppet/ssl/host.rb:279
7742
7750
  msgid "Did not receive certificate"
7743
7751
  msgstr ""
7744
7752
 
7745
- #: ../lib/puppet/ssl/host.rb:331
7753
+ #: ../lib/puppet/ssl/host.rb:319
7746
7754
  msgid "Response from the CA did not contain a valid certificate request: %{message}"
7747
7755
  msgstr ""
7748
7756
 
7749
- #: ../lib/puppet/ssl/host.rb:337
7757
+ #: ../lib/puppet/ssl/host.rb:325
7750
7758
  msgid "Could not download certificate request: %{message}"
7751
7759
  msgstr ""
7752
7760
 
7753
- #: ../lib/puppet/ssl/host.rb:364
7761
+ #: ../lib/puppet/ssl/host.rb:352
7754
7762
  msgid ""
7755
7763
  "Failed attempting to load CRL from %{crl_path}! The CRL below caused the error '%{error}':\n"
7756
7764
  "%{crl}"
7757
7765
  msgstr ""
7758
7766
 
7759
- #: ../lib/puppet/ssl/host.rb:396 ../lib/puppet/ssl/state_machine.rb:89
7767
+ #: ../lib/puppet/ssl/host.rb:384 ../lib/puppet/ssl/state_machine.rb:99
7760
7768
  msgid "Could not download CRLs: %{message}"
7761
7769
  msgstr ""
7762
7770
 
7763
- #: ../lib/puppet/ssl/host.rb:426
7771
+ #: ../lib/puppet/ssl/host.rb:414
7764
7772
  msgid "The certificate at %{file_path} is invalid. Could not load."
7765
7773
  msgstr ""
7766
7774
 
7767
- #: ../lib/puppet/ssl/host.rb:447
7775
+ #: ../lib/puppet/ssl/host.rb:435
7768
7776
  msgid "Response from the CA did not contain a valid certificate for %{cert_name}."
7769
7777
  msgstr ""
7770
7778
 
7771
- #: ../lib/puppet/ssl/host.rb:451
7779
+ #: ../lib/puppet/ssl/host.rb:439
7772
7780
  msgid "No certificate for %{cert_name} on CA"
7773
7781
  msgstr ""
7774
7782
 
7775
- #: ../lib/puppet/ssl/host.rb:454
7783
+ #: ../lib/puppet/ssl/host.rb:442
7776
7784
  msgid "Could not download host certificate: %{message}"
7777
7785
  msgstr ""
7778
7786
 
@@ -7868,59 +7876,63 @@ msgstr ""
7868
7876
  msgid "Certificate '%{subject}' failed verification (%{err}): %{err_utf8}"
7869
7877
  msgstr ""
7870
7878
 
7871
- #: ../lib/puppet/ssl/state_machine.rb:50
7879
+ #: ../lib/puppet/ssl/state_machine.rb:58
7872
7880
  msgid "CA certificate is missing from the server"
7873
7881
  msgstr ""
7874
7882
 
7875
- #: ../lib/puppet/ssl/state_machine.rb:52
7883
+ #: ../lib/puppet/ssl/state_machine.rb:60
7876
7884
  msgid "Could not download CA certificate: %{message}"
7877
7885
  msgstr ""
7878
7886
 
7879
- #: ../lib/puppet/ssl/state_machine.rb:87
7887
+ #: ../lib/puppet/ssl/state_machine.rb:97
7880
7888
  msgid "CRL is missing from the server"
7881
7889
  msgstr ""
7882
7890
 
7883
- #: ../lib/puppet/ssl/state_machine.rb:101
7891
+ #: ../lib/puppet/ssl/state_machine.rb:111
7884
7892
  msgid "Loading/generating private key"
7885
7893
  msgstr ""
7886
7894
 
7887
- #: ../lib/puppet/ssl/state_machine.rb:141
7895
+ #: ../lib/puppet/ssl/state_machine.rb:151
7888
7896
  msgid "Generating and submitting a CSR"
7889
7897
  msgstr ""
7890
7898
 
7891
- #: ../lib/puppet/ssl/state_machine.rb:149
7899
+ #: ../lib/puppet/ssl/state_machine.rb:161
7892
7900
  msgid "Failed to submit the CSR, HTTP response was %{code}"
7893
7901
  msgstr ""
7894
7902
 
7895
- #: ../lib/puppet/ssl/state_machine.rb:160
7903
+ #: ../lib/puppet/ssl/state_machine.rb:170
7896
7904
  msgid "Downloading client certificate"
7897
7905
  msgstr ""
7898
7906
 
7899
- #: ../lib/puppet/ssl/state_machine.rb:176
7907
+ #: ../lib/puppet/ssl/state_machine.rb:185
7900
7908
  msgid "Failed to parse certificate: %{message}"
7901
7909
  msgstr ""
7902
7910
 
7903
- #: ../lib/puppet/ssl/state_machine.rb:180
7911
+ #: ../lib/puppet/ssl/state_machine.rb:188
7904
7912
  msgid "Certificate for %{certname} has not been signed yet"
7905
7913
  msgstr ""
7906
7914
 
7907
- #: ../lib/puppet/ssl/state_machine.rb:182
7915
+ #: ../lib/puppet/ssl/state_machine.rb:189
7916
+ msgid "Couldn't fetch certificate from CA server; you might still need to sign this agent's certificate (%{name})."
7917
+ msgstr ""
7918
+
7919
+ #: ../lib/puppet/ssl/state_machine.rb:192
7908
7920
  msgid "Failed to retrieve certificate for %{certname}: %{message}"
7909
7921
  msgstr ""
7910
7922
 
7911
- #: ../lib/puppet/ssl/state_machine.rb:195
7912
- msgid "Couldn't fetch certificate from CA server; you might still need to sign this agent's certificate (%{name}). Exiting now because the waitforcert setting is set to 0."
7923
+ #: ../lib/puppet/ssl/state_machine.rb:208
7924
+ msgid "Exiting now because the waitforcert setting is set to 0."
7913
7925
  msgstr ""
7914
7926
 
7915
- #: ../lib/puppet/ssl/state_machine.rb:198
7916
- msgid "Couldn't fetch certificate from CA server; you might still need to sign this agent's certificate (%{name}). Will try again in %{time} seconds."
7927
+ #: ../lib/puppet/ssl/state_machine.rb:211
7928
+ msgid "Will try again in %{time} seconds."
7917
7929
  msgstr ""
7918
7930
 
7919
- #: ../lib/puppet/ssl/state_machine.rb:241
7931
+ #: ../lib/puppet/ssl/state_machine.rb:294
7920
7932
  msgid "Verified client certificate '%{subject}' fingerprint %{digest}"
7921
7933
  msgstr ""
7922
7934
 
7923
- #: ../lib/puppet/ssl/state_machine.rb:243
7935
+ #: ../lib/puppet/ssl/state_machine.rb:296
7924
7936
  msgid "Verified CA certificate '%{subject}' fingerprint %{digest}"
7925
7937
  msgstr ""
7926
7938
 
@@ -8459,15 +8471,15 @@ msgstr ""
8459
8471
  msgid "Invalid GID %{gid}"
8460
8472
  msgstr ""
8461
8473
 
8462
- #: ../lib/puppet/type/package.rb:114 ../lib/puppet/type/package.rb:128
8474
+ #: ../lib/puppet/type/package.rb:116 ../lib/puppet/type/package.rb:130
8463
8475
  msgid "Could not update: %{detail}"
8464
8476
  msgstr ""
8465
8477
 
8466
- #: ../lib/puppet/type/package.rb:163
8478
+ #: ../lib/puppet/type/package.rb:165
8467
8479
  msgid "Could not get latest version: %{detail}"
8468
8480
  msgstr ""
8469
8481
 
8470
- #: ../lib/puppet/type/package.rb:263
8482
+ #: ../lib/puppet/type/package.rb:265
8471
8483
  msgid "Name must be a String not %{klass}"
8472
8484
  msgstr ""
8473
8485
 
@@ -8511,15 +8523,15 @@ msgstr ""
8511
8523
  msgid "Invalid minute '%{n}'"
8512
8524
  msgstr ""
8513
8525
 
8514
- #: ../lib/puppet/type/schedule.rb:278
8526
+ #: ../lib/puppet/type/schedule.rb:282
8515
8527
  msgid "Repeat must be a number"
8516
8528
  msgstr ""
8517
8529
 
8518
- #: ../lib/puppet/type/schedule.rb:287
8530
+ #: ../lib/puppet/type/schedule.rb:291
8519
8531
  msgid "Repeat must be 1 unless periodmatch is 'distance', not '%{period}'"
8520
8532
  msgstr ""
8521
8533
 
8522
- #: ../lib/puppet/type/schedule.rb:331
8534
+ #: ../lib/puppet/type/schedule.rb:335
8523
8535
  msgid "%{value} is not a valid day of the week"
8524
8536
  msgstr ""
8525
8537
 
@@ -9921,15 +9933,15 @@ msgstr ""
9921
9933
  msgid "Failed to check membership"
9922
9934
  msgstr ""
9923
9935
 
9924
- #: ../lib/puppet/util/windows/user.rb:86
9936
+ #: ../lib/puppet/util/windows/user.rb:88
9925
9937
  msgid "Failed to logon user %{name}"
9926
9938
  msgstr ""
9927
9939
 
9928
- #: ../lib/puppet/util/windows/user.rb:110
9940
+ #: ../lib/puppet/util/windows/user.rb:120
9929
9941
  msgid "Failed to load user profile %{user}"
9930
9942
  msgstr ""
9931
9943
 
9932
- #: ../lib/puppet/util/windows/user.rb:116
9944
+ #: ../lib/puppet/util/windows/user.rb:126
9933
9945
  msgid "Failed to unload user profile %{user}"
9934
9946
  msgstr ""
9935
9947