puppet 5.5.20-universal-darwin → 5.5.21-universal-darwin

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 (92) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +19 -19
  3. data/lib/puppet/agent.rb +3 -3
  4. data/lib/puppet/application/agent.rb +3 -1
  5. data/lib/puppet/daemon.rb +1 -1
  6. data/lib/puppet/defaults.rb +2 -2
  7. data/lib/puppet/file_system/uniquefile.rb +4 -0
  8. data/lib/puppet/network/http/api/indirected_routes.rb +1 -1
  9. data/lib/puppet/network/http/api/master/v3/environment.rb +3 -0
  10. data/lib/puppet/parser/compiler/catalog_validator/env_relationship_validator.rb +2 -0
  11. data/lib/puppet/parser/compiler/catalog_validator/site_validator.rb +2 -0
  12. data/lib/puppet/parser/environment_compiler.rb +3 -0
  13. data/lib/puppet/parser/resource.rb +3 -2
  14. data/lib/puppet/parser/resource/param.rb +6 -0
  15. data/lib/puppet/pops/issues.rb +5 -0
  16. data/lib/puppet/pops/resource/resource_type_impl.rb +2 -0
  17. data/lib/puppet/pops/validation/checker4_0.rb +10 -0
  18. data/lib/puppet/pops/validation/validator_factory_4_0.rb +1 -0
  19. data/lib/puppet/provider/package/dnfmodule.rb +24 -4
  20. data/lib/puppet/provider/package/pip.rb +6 -4
  21. data/lib/puppet/provider/package/zypper.rb +1 -0
  22. data/lib/puppet/provider/service/systemd.rb +22 -4
  23. data/lib/puppet/provider/user/useradd.rb +16 -5
  24. data/lib/puppet/resource/type.rb +8 -0
  25. data/lib/puppet/test/test_helper.rb +8 -10
  26. data/lib/puppet/type.rb +6 -0
  27. data/lib/puppet/type/package.rb +16 -1
  28. data/lib/puppet/type/service.rb +1 -7
  29. data/lib/puppet/type/user.rb +1 -7
  30. data/lib/puppet/util.rb +12 -13
  31. data/lib/puppet/util/log/destinations.rb +1 -10
  32. data/lib/puppet/util/windows/api_types.rb +45 -32
  33. data/lib/puppet/util/windows/eventlog.rb +1 -6
  34. data/lib/puppet/util/windows/principal.rb +8 -6
  35. data/lib/puppet/util/windows/registry.rb +11 -11
  36. data/lib/puppet/version.rb +1 -1
  37. data/locales/puppet.pot +97 -93
  38. data/man/man5/puppet.conf.5 +2 -2
  39. data/man/man8/puppet-agent.8 +2 -2
  40. data/man/man8/puppet-apply.8 +1 -1
  41. data/man/man8/puppet-ca.8 +1 -1
  42. data/man/man8/puppet-catalog.8 +1 -1
  43. data/man/man8/puppet-cert.8 +1 -1
  44. data/man/man8/puppet-certificate.8 +1 -1
  45. data/man/man8/puppet-certificate_request.8 +1 -1
  46. data/man/man8/puppet-certificate_revocation_list.8 +1 -1
  47. data/man/man8/puppet-config.8 +1 -1
  48. data/man/man8/puppet-describe.8 +1 -1
  49. data/man/man8/puppet-device.8 +1 -1
  50. data/man/man8/puppet-doc.8 +1 -1
  51. data/man/man8/puppet-epp.8 +1 -1
  52. data/man/man8/puppet-facts.8 +1 -1
  53. data/man/man8/puppet-filebucket.8 +1 -1
  54. data/man/man8/puppet-generate.8 +1 -1
  55. data/man/man8/puppet-help.8 +1 -1
  56. data/man/man8/puppet-key.8 +1 -1
  57. data/man/man8/puppet-lookup.8 +1 -1
  58. data/man/man8/puppet-man.8 +1 -1
  59. data/man/man8/puppet-master.8 +1 -1
  60. data/man/man8/puppet-module.8 +1 -1
  61. data/man/man8/puppet-node.8 +1 -1
  62. data/man/man8/puppet-parser.8 +1 -1
  63. data/man/man8/puppet-plugin.8 +1 -1
  64. data/man/man8/puppet-report.8 +1 -1
  65. data/man/man8/puppet-resource.8 +1 -1
  66. data/man/man8/puppet-script.8 +1 -1
  67. data/man/man8/puppet-status.8 +1 -1
  68. data/man/man8/puppet.8 +2 -2
  69. data/spec/fixtures/unit/provider/package/dnfmodule/{dnf-module-list-enabled.txt → dnf-module-list.txt} +6 -0
  70. data/spec/fixtures/unit/provider/service/systemd/list_unit_files_services +9 -0
  71. data/spec/integration/defaults_spec.rb +1 -2
  72. data/spec/integration/parser/compiler_spec.rb +11 -0
  73. data/spec/integration/util/windows/adsi_spec.rb +5 -0
  74. data/spec/integration/util/windows/registry_spec.rb +7 -7
  75. data/spec/unit/agent_spec.rb +1 -1
  76. data/spec/unit/daemon_spec.rb +0 -1
  77. data/spec/unit/file_system/uniquefile_spec.rb +11 -0
  78. data/spec/unit/network/http/api/indirected_routes_spec.rb +2 -1
  79. data/spec/unit/parser/environment_compiler_spec.rb +7 -0
  80. data/spec/unit/provider/package/dnfmodule_spec.rb +25 -5
  81. data/spec/unit/provider/package/pip_spec.rb +42 -16
  82. data/spec/unit/provider/package/zypper_spec.rb +13 -0
  83. data/spec/unit/provider/service/systemd_spec.rb +93 -20
  84. data/spec/unit/provider/user/openbsd_spec.rb +1 -0
  85. data/spec/unit/provider/user/useradd_spec.rb +30 -16
  86. data/spec/unit/test/test_helper_spec.rb +17 -0
  87. data/spec/unit/type/service_spec.rb +9 -8
  88. data/spec/unit/type/user_spec.rb +19 -13
  89. data/spec/unit/util/log/destinations_spec.rb +1 -29
  90. data/spec/unit/util/windows/api_types_spec.rb +104 -40
  91. metadata +7 -7
  92. data/spec/integration/test/test_helper_spec.rb +0 -31
@@ -140,12 +140,7 @@ class Puppet::Util::Windows::EventLog
140
140
  # @api private
141
141
  def from_string_to_wide_string(str, &block)
142
142
  str = wide_string(str)
143
- FFI::MemoryPointer.new(:uchar, str.bytesize) do |ptr|
144
- # uchar here is synonymous with byte
145
- ptr.put_array_of_uchar(0, str.bytes.to_a)
146
-
147
- yield ptr
148
- end
143
+ FFI::MemoryPointer.from_wide_string(str) { |ptr| yield ptr }
149
144
 
150
145
  # ptr has already had free called, so nothing to return
151
146
  nil
@@ -41,6 +41,7 @@ module Puppet::Util::Windows::SID
41
41
  # = 8 + max sub identifiers (15) * 4
42
42
  MAXIMUM_SID_BYTE_LENGTH = 68
43
43
 
44
+ ERROR_INVALID_PARAMETER = 87
44
45
  ERROR_INSUFFICIENT_BUFFER = 122
45
46
 
46
47
  def self.lookup_account_name(system_name = nil, account_name)
@@ -48,9 +49,7 @@ module Puppet::Util::Windows::SID
48
49
  begin
49
50
  if system_name
50
51
  system_name_wide = Puppet::Util::Windows::String.wide_string(system_name)
51
- # uchar here is synonymous with byte
52
- system_name_ptr = FFI::MemoryPointer.new(:byte, system_name_wide.bytesize)
53
- system_name_ptr.put_array_of_uchar(0, system_name_wide.bytes.to_a)
52
+ system_name_ptr = FFI::MemoryPointer.from_wide_string(system_name_wide)
54
53
  end
55
54
 
56
55
  FFI::MemoryPointer.from_string_to_wide_string(account_name) do |account_name_ptr|
@@ -101,9 +100,7 @@ module Puppet::Util::Windows::SID
101
100
  begin
102
101
  if system_name
103
102
  system_name_wide = Puppet::Util::Windows::String.wide_string(system_name)
104
- # uchar here is synonymous with byte
105
- system_name_ptr = FFI::MemoryPointer.new(:byte, system_name_wide.bytesize)
106
- system_name_ptr.put_array_of_uchar(0, system_name_wide.bytes.to_a)
103
+ system_name_ptr = FFI::MemoryPointer.from_wide_string(system_name_wide)
107
104
  end
108
105
 
109
106
  FFI::MemoryPointer.new(:byte, sid_bytes.length) do |sid_ptr|
@@ -112,6 +109,11 @@ module Puppet::Util::Windows::SID
112
109
  FFI::MemoryPointer.new(:uint32, 1) do |name_use_enum_ptr|
113
110
 
114
111
  sid_ptr.write_array_of_uchar(sid_bytes)
112
+
113
+ if Puppet::Util::Windows::SID.IsValidSid(sid_ptr) == FFI::WIN32_FALSE
114
+ raise Puppet::Util::Windows::Error.new(_('Byte array for lookup_account_sid is invalid: %{sid_bytes}') % { sid_bytes: sid_bytes }, ERROR_INVALID_PARAMETER)
115
+ end
116
+
115
117
  success = LookupAccountSidW(system_name_ptr, sid_ptr, FFI::Pointer::NULL, name_length_ptr,
116
118
  FFI::Pointer::NULL, domain_length_ptr, name_use_enum_ptr)
117
119
  last_error = FFI.errno
@@ -110,13 +110,16 @@ module Puppet::Util::Windows
110
110
 
111
111
  private
112
112
 
113
- def reg_enum_key(key, index, max_key_length = Win32::Registry::Constants::MAX_KEY_LENGTH)
113
+ # max number of wide characters including NULL terminator
114
+ MAX_KEY_CHAR_LENGTH = 255 + 1
115
+
116
+ def reg_enum_key(key, index, max_key_char_length = MAX_KEY_CHAR_LENGTH)
114
117
  subkey, filetime = nil, nil
115
118
 
116
119
  FFI::MemoryPointer.new(:dword) do |subkey_length_ptr|
117
120
  FFI::MemoryPointer.new(FFI::WIN32::FILETIME.size) do |filetime_ptr|
118
- FFI::MemoryPointer.new(:wchar, max_key_length) do |subkey_ptr|
119
- subkey_length_ptr.write_dword(max_key_length)
121
+ FFI::MemoryPointer.new(:wchar, max_key_char_length) do |subkey_ptr|
122
+ subkey_length_ptr.write_dword(max_key_char_length)
120
123
 
121
124
  # RegEnumKeyEx cannot be called twice to properly size the buffer
122
125
  result = RegEnumKeyExW(key.hkey, index,
@@ -141,7 +144,10 @@ module Puppet::Util::Windows
141
144
  [subkey, filetime]
142
145
  end
143
146
 
144
- def reg_enum_value(key, index, max_value_length = Win32::Registry::Constants::MAX_VALUE_LENGTH)
147
+ # max number of wide characters including NULL terminator
148
+ MAX_VALUE_CHAR_LENGTH = 16383 + 1
149
+
150
+ def reg_enum_value(key, index, max_value_length = MAX_VALUE_CHAR_LENGTH)
145
151
  subkey, type, data = nil, nil, nil
146
152
 
147
153
  FFI::MemoryPointer.new(:dword) do |subkey_length_ptr|
@@ -234,7 +240,7 @@ module Puppet::Util::Windows
234
240
  begin
235
241
  case type
236
242
  when Win32::Registry::REG_SZ, Win32::Registry::REG_EXPAND_SZ
237
- result = [ type, sanitize(data_ptr.read_wide_string(string_length)) ]
243
+ result = [ type, data_ptr.read_wide_string(string_length, Encoding::UTF_8, true) ]
238
244
  when Win32::Registry::REG_MULTI_SZ
239
245
  result = [ type, data_ptr.read_wide_string(string_length).split(/\0/) ]
240
246
  when Win32::Registry::REG_BINARY
@@ -314,12 +320,6 @@ module Puppet::Util::Windows
314
320
  result
315
321
  end
316
322
 
317
- def sanitize(value)
318
- # Replace null bytes with a space
319
- value.tr!("\x00", ' ')
320
- value
321
- end
322
-
323
323
  ffi_convention :stdcall
324
324
 
325
325
  # https://msdn.microsoft.com/en-us/library/windows/desktop/ms724862(v=vs.85).aspx
@@ -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 = '5.5.20'
9
+ PUPPETVERSION = '5.5.21'
10
10
 
11
11
  ##
12
12
  # version is a public API method intended to always provide a fast and
@@ -6,11 +6,11 @@
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: Puppet automation framework 5.5.19-48-g3415147ded\n"
9
+ "Project-Id-Version: Puppet automation framework 5.5.20-62-g352a8c16bd\n"
10
10
  "\n"
11
11
  "Report-Msgid-Bugs-To: https://tickets.puppetlabs.com\n"
12
- "POT-Creation-Date: 2020-04-24 10:01+0000\n"
13
- "PO-Revision-Date: 2020-04-24 10:01+0000\n"
12
+ "POT-Creation-Date: 2020-06-19 16:16+0000\n"
13
+ "PO-Revision-Date: 2020-06-19 16:16+0000\n"
14
14
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
15
15
  "Language-Team: LANGUAGE <LL@li.org>\n"
16
16
  "Language: \n"
@@ -176,19 +176,19 @@ msgstr ""
176
176
  msgid "The puppet agent daemon"
177
177
  msgstr ""
178
178
 
179
- #: ../lib/puppet/application/agent.rb:372
179
+ #: ../lib/puppet/application/agent.rb:374
180
180
  msgid "Fingerprint asked but no certificate nor certificate request have yet been issued"
181
181
  msgstr ""
182
182
 
183
- #: ../lib/puppet/application/agent.rb:377
183
+ #: ../lib/puppet/application/agent.rb:379
184
184
  msgid "Could not get fingerprint for digest '%{digest}'"
185
185
  msgstr ""
186
186
 
187
- #: ../lib/puppet/application/agent.rb:401
187
+ #: ../lib/puppet/application/agent.rb:403
188
188
  msgid "Starting Puppet client version %{version}"
189
189
  msgstr ""
190
190
 
191
- #: ../lib/puppet/application/agent.rb:417
191
+ #: ../lib/puppet/application/agent.rb:419
192
192
  msgid "The puppet agent command does not take parameters"
193
193
  msgstr ""
194
194
 
@@ -4090,19 +4090,19 @@ msgstr ""
4090
4090
  msgid "Not a valid indirection type"
4091
4091
  msgstr ""
4092
4092
 
4093
- #: ../lib/puppet/network/http/api/master/v3/environment.rb:11
4093
+ #: ../lib/puppet/network/http/api/master/v3/environment.rb:14
4094
4094
  msgid "%{env_name} is not a known environment"
4095
4095
  msgstr ""
4096
4096
 
4097
- #: ../lib/puppet/network/http/api/master/v3/environment.rb:40
4097
+ #: ../lib/puppet/network/http/api/master/v3/environment.rb:43
4098
4098
  msgid "Application %{application} assigns nodes to non-existent components: %{component_list}"
4099
4099
  msgstr ""
4100
4100
 
4101
- #: ../lib/puppet/network/http/api/master/v3/environment.rb:46
4101
+ #: ../lib/puppet/network/http/api/master/v3/environment.rb:49
4102
4102
  msgid "Application %{application} has components without assigned nodes: %{component_list}"
4103
4103
  msgstr ""
4104
4104
 
4105
- #: ../lib/puppet/network/http/api/master/v3/environment.rb:55
4105
+ #: ../lib/puppet/network/http/api/master/v3/environment.rb:58
4106
4106
  msgid "Application %{app} assigns multiple nodes to component %{comp}"
4107
4107
  msgstr ""
4108
4108
 
@@ -4398,7 +4398,7 @@ msgid "For more information, see https://puppet.com/docs/puppet/latest/environme
4398
4398
  msgstr ""
4399
4399
 
4400
4400
  #. TRANSLATORS "stage" is a keyword in Puppet and should not be translated
4401
- #: ../lib/puppet/parser/compiler.rb:98 ../lib/puppet/parser/environment_compiler.rb:134
4401
+ #: ../lib/puppet/parser/compiler.rb:98 ../lib/puppet/parser/environment_compiler.rb:137
4402
4402
  msgid "Only classes can set 'stage'; normal resources like %{resource} cannot change run stage"
4403
4403
  msgstr ""
4404
4404
 
@@ -4533,11 +4533,11 @@ msgstr ""
4533
4533
  msgid "For initializing compiler"
4534
4534
  msgstr ""
4535
4535
 
4536
- #: ../lib/puppet/parser/compiler/catalog_validator/env_relationship_validator.rb:17
4536
+ #: ../lib/puppet/parser/compiler/catalog_validator/env_relationship_validator.rb:19
4537
4537
  msgid "Capability '%{cap}' referenced by '%{param}' is never exported"
4538
4538
  msgstr ""
4539
4539
 
4540
- #: ../lib/puppet/parser/compiler/catalog_validator/env_relationship_validator.rb:56
4540
+ #: ../lib/puppet/parser/compiler/catalog_validator/env_relationship_validator.rb:58
4541
4541
  msgid "'%{value}' is exported by both '%{hash}' and '%{resource}'"
4542
4542
  msgstr ""
4543
4543
 
@@ -4549,55 +4549,55 @@ msgstr ""
4549
4549
  msgid "Could not find resource '%{res}' in parameter '%{param}'"
4550
4550
  msgstr ""
4551
4551
 
4552
- #: ../lib/puppet/parser/compiler/catalog_validator/site_validator.rb:14
4552
+ #: ../lib/puppet/parser/compiler/catalog_validator/site_validator.rb:16
4553
4553
  msgid "Only application components can appear inside a site - %{res} is not allowed"
4554
4554
  msgstr ""
4555
4555
 
4556
- #: ../lib/puppet/parser/environment_compiler.rb:12
4556
+ #: ../lib/puppet/parser/environment_compiler.rb:13
4557
4557
  msgid "%{detail} in environment %{env}"
4558
4558
  msgstr ""
4559
4559
 
4560
- #: ../lib/puppet/parser/environment_compiler.rb:59
4560
+ #: ../lib/puppet/parser/environment_compiler.rb:62
4561
4561
  msgid "For compiling environment catalog %{env}"
4562
4562
  msgstr ""
4563
4563
 
4564
- #: ../lib/puppet/parser/environment_compiler.rb:62
4564
+ #: ../lib/puppet/parser/environment_compiler.rb:65
4565
4565
  msgid "Env Compile: Created settings scope"
4566
4566
  msgstr ""
4567
4567
 
4568
- #: ../lib/puppet/parser/environment_compiler.rb:64
4568
+ #: ../lib/puppet/parser/environment_compiler.rb:67
4569
4569
  msgid "Env Compile: Evaluated main"
4570
4570
  msgstr ""
4571
4571
 
4572
- #: ../lib/puppet/parser/environment_compiler.rb:66
4572
+ #: ../lib/puppet/parser/environment_compiler.rb:69
4573
4573
  msgid "Env Compile: Evaluated site"
4574
4574
  msgstr ""
4575
4575
 
4576
- #: ../lib/puppet/parser/environment_compiler.rb:68
4576
+ #: ../lib/puppet/parser/environment_compiler.rb:71
4577
4577
  msgid "Env Compile: Evaluated application instances"
4578
4578
  msgstr ""
4579
4579
 
4580
- #: ../lib/puppet/parser/environment_compiler.rb:70
4580
+ #: ../lib/puppet/parser/environment_compiler.rb:73
4581
4581
  msgid "Env Compile: Prune"
4582
4582
  msgstr ""
4583
4583
 
4584
- #: ../lib/puppet/parser/environment_compiler.rb:72
4584
+ #: ../lib/puppet/parser/environment_compiler.rb:75
4585
4585
  msgid "Env Compile: Validate Catalog pre-finish"
4586
4586
  msgstr ""
4587
4587
 
4588
- #: ../lib/puppet/parser/environment_compiler.rb:76
4588
+ #: ../lib/puppet/parser/environment_compiler.rb:79
4589
4589
  msgid "Env Compile: Finished catalog"
4590
4590
  msgstr ""
4591
4591
 
4592
- #: ../lib/puppet/parser/environment_compiler.rb:80
4592
+ #: ../lib/puppet/parser/environment_compiler.rb:83
4593
4593
  msgid "Env Compile: Validate Catalog final"
4594
4594
  msgstr ""
4595
4595
 
4596
- #: ../lib/puppet/parser/environment_compiler.rb:156
4596
+ #: ../lib/puppet/parser/environment_compiler.rb:159
4597
4597
  msgid "Environment Compiler: Could not find a site definition to evaluate"
4598
4598
  msgstr ""
4599
4599
 
4600
- #: ../lib/puppet/parser/environment_compiler.rb:162
4600
+ #: ../lib/puppet/parser/environment_compiler.rb:165
4601
4601
  msgid "Evaluated application %{resource}"
4602
4602
  msgstr ""
4603
4603
 
@@ -4755,23 +4755,23 @@ msgstr ""
4755
4755
  msgid "Attempt to reassign attribute '%{name}' in '%{resource}' caused by multiple consumed mappings to the same attribute"
4756
4756
  msgstr ""
4757
4757
 
4758
- #: ../lib/puppet/parser/resource.rb:362
4758
+ #: ../lib/puppet/parser/resource.rb:363
4759
4759
  msgid "Parameter '%{name}' is already set on %{resource}; cannot redefine"
4760
4760
  msgstr ""
4761
4761
 
4762
- #: ../lib/puppet/parser/resource.rb:365
4762
+ #: ../lib/puppet/parser/resource.rb:366
4763
4763
  msgid "Parameter '%{name}' is already set on %{resource} at %{error_location}; cannot redefine"
4764
4764
  msgstr ""
4765
4765
 
4766
- #: ../lib/puppet/parser/resource.rb:370
4766
+ #: ../lib/puppet/parser/resource.rb:371
4767
4767
  msgid "Parameter '%{name}' is already set on %{resource} by %{source}; cannot redefine"
4768
4768
  msgstr ""
4769
4769
 
4770
- #: ../lib/puppet/parser/resource.rb:373
4770
+ #: ../lib/puppet/parser/resource.rb:374
4771
4771
  msgid "Parameter '%{name}' is already set on %{resource} by %{source} at %{error_location}; cannot redefine"
4772
4772
  msgstr ""
4773
4773
 
4774
- #: ../lib/puppet/parser/resource.rb:412
4774
+ #: ../lib/puppet/parser/resource.rb:413
4775
4775
  msgid "Duplicate parameter '%{param}' for on %{resource}"
4776
4776
  msgstr ""
4777
4777
 
@@ -5793,6 +5793,10 @@ msgstr ""
5793
5793
  msgid "Failed to load: %{type_name}"
5794
5794
  msgstr ""
5795
5795
 
5796
+ #: ../lib/puppet/pops/issues.rb:918
5797
+ msgid "Use of the application-orchestration %{expr} is deprecated. See https://puppet.com/docs/puppet/5.5/deprecated_language.html"
5798
+ msgstr ""
5799
+
5796
5800
  #: ../lib/puppet/pops/label_provider.rb:76
5797
5801
  msgid "<%{string}> does not appear to contain a word"
5798
5802
  msgstr ""
@@ -6162,7 +6166,7 @@ msgstr ""
6162
6166
  msgid "digit expected"
6163
6167
  msgstr ""
6164
6168
 
6165
- #: ../lib/puppet/pops/resource/resource_type_impl.rb:167 ../lib/puppet/type.rb:428
6169
+ #: ../lib/puppet/pops/resource/resource_type_impl.rb:167 ../lib/puppet/type.rb:432
6166
6170
  msgid "you must specify title patterns when there are two or more key attributes"
6167
6171
  msgstr ""
6168
6172
 
@@ -7006,7 +7010,7 @@ msgstr ""
7006
7010
  msgid "No responsefile specified or non existent, not preseeding anything"
7007
7011
  msgstr ""
7008
7012
 
7009
- #: ../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:235 ../lib/puppet/provider/package/zypper.rb:109
7013
+ #: ../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:235 ../lib/puppet/provider/package/zypper.rb:110
7010
7014
  msgid "Could not find package %{name}"
7011
7015
  msgstr ""
7012
7016
 
@@ -7699,67 +7703,67 @@ msgstr ""
7699
7703
  msgid "Could not evaluate: %{detail}"
7700
7704
  msgstr ""
7701
7705
 
7702
- #: ../lib/puppet/resource/type.rb:78
7706
+ #: ../lib/puppet/resource/type.rb:81
7703
7707
  msgid "Invalid export in %{reference}: %{ex} is not a resource"
7704
7708
  msgstr ""
7705
7709
 
7706
- #: ../lib/puppet/resource/type.rb:79
7710
+ #: ../lib/puppet/resource/type.rb:82
7707
7711
  msgid "Invalid export in %{reference}: %{ex} is not a capability resource"
7708
7712
  msgstr ""
7709
7713
 
7710
- #: ../lib/puppet/resource/type.rb:83
7714
+ #: ../lib/puppet/resource/type.rb:86
7711
7715
  msgid "Resource type %{res_type} does not produce %{ex_type}"
7712
7716
  msgstr ""
7713
7717
 
7714
- #: ../lib/puppet/resource/type.rb:143
7718
+ #: ../lib/puppet/resource/type.rb:146
7715
7719
  msgid "Invalid resource supertype '%{type}'"
7716
7720
  msgstr ""
7717
7721
 
7718
- #: ../lib/puppet/resource/type.rb:190
7722
+ #: ../lib/puppet/resource/type.rb:197
7719
7723
  msgid "%{name} is not a class; cannot add code to it"
7720
7724
  msgstr ""
7721
7725
 
7722
- #: ../lib/puppet/resource/type.rb:191
7726
+ #: ../lib/puppet/resource/type.rb:198
7723
7727
  msgid "%{name} is not a class; cannot add code from it"
7724
7728
  msgstr ""
7725
7729
 
7726
- #: ../lib/puppet/resource/type.rb:195
7730
+ #: ../lib/puppet/resource/type.rb:202
7727
7731
  msgid "Cannot have code outside of a class/node/define because 'freeze_main' is enabled"
7728
7732
  msgstr ""
7729
7733
 
7730
- #: ../lib/puppet/resource/type.rb:199
7734
+ #: ../lib/puppet/resource/type.rb:206
7731
7735
  msgid "Cannot merge classes with different parent classes (%{name} => %{parent} vs. %{other_name} => %{other_parent})"
7732
7736
  msgstr ""
7733
7737
 
7734
- #: ../lib/puppet/resource/type.rb:230
7738
+ #: ../lib/puppet/resource/type.rb:237
7735
7739
  msgid "Cannot create resources for defined resource types"
7736
7740
  msgstr ""
7737
7741
 
7738
- #: ../lib/puppet/resource/type.rb:284
7742
+ #: ../lib/puppet/resource/type.rb:292
7739
7743
  msgid "The method Puppet::Resource::Type.assign_parameter_values is deprecated and will be removed in the next major release of Puppet."
7740
7744
  msgstr ""
7741
7745
 
7742
- #: ../lib/puppet/resource/type.rb:300
7746
+ #: ../lib/puppet/resource/type.rb:308
7743
7747
  msgid "Could not find parent resource type '%{parent}' of type %{parent_type} in %{env}"
7744
7748
  msgstr ""
7745
7749
 
7746
- #: ../lib/puppet/resource/type.rb:427
7750
+ #: ../lib/puppet/resource/type.rb:435
7747
7751
  msgid "Parameter '%{name}' is given a type, but is not a valid parameter."
7748
7752
  msgstr ""
7749
7753
 
7750
- #: ../lib/puppet/resource/type.rb:430
7754
+ #: ../lib/puppet/resource/type.rb:438
7751
7755
  msgid "Parameter '%{name}' is given a type that is not a Puppet Type, got %{class_name}"
7752
7756
  msgstr ""
7753
7757
 
7754
- #: ../lib/puppet/resource/type.rb:470
7758
+ #: ../lib/puppet/resource/type.rb:478
7755
7759
  msgid "Could not find scope for %{class_name}"
7756
7760
  msgstr ""
7757
7761
 
7758
- #: ../lib/puppet/resource/type.rb:491
7762
+ #: ../lib/puppet/resource/type.rb:499
7759
7763
  msgid "%{param} is a metaparam; this value will inherit to all contained resources in the %{name} definition"
7760
7764
  msgstr ""
7761
7765
 
7762
- #: ../lib/puppet/resource/type.rb:493
7766
+ #: ../lib/puppet/resource/type.rb:501
7763
7767
  msgid "%{param} is a metaparameter; please choose another parameter name in the %{name} definition"
7764
7768
  msgstr ""
7765
7769
 
@@ -8543,77 +8547,77 @@ msgstr ""
8543
8547
  msgid "audit change: newly-recorded value %s"
8544
8548
  msgstr ""
8545
8549
 
8546
- #: ../lib/puppet/type.rb:503
8550
+ #: ../lib/puppet/type.rb:507
8547
8551
  msgid "Options must be a hash, not %{type}"
8548
8552
  msgstr ""
8549
8553
 
8550
- #: ../lib/puppet/type.rb:506
8554
+ #: ../lib/puppet/type.rb:510
8551
8555
  msgid "Class %{class_name} already has a property named %{property}"
8552
8556
  msgstr ""
8553
8557
 
8554
- #: ../lib/puppet/type.rb:592
8558
+ #: ../lib/puppet/type.rb:596
8555
8559
  msgid "Class %{class_name} has not defined parameters"
8556
8560
  msgstr ""
8557
8561
 
8558
- #: ../lib/puppet/type.rb:676
8562
+ #: ../lib/puppet/type.rb:680
8559
8563
  msgid "Parameter %{name} failed on %{ref}: %{detail}"
8560
8564
  msgstr ""
8561
8565
 
8562
- #: ../lib/puppet/type.rb:699
8566
+ #: ../lib/puppet/type.rb:703
8563
8567
  msgid "Undefined attribute '%{attribute}' in %{name}"
8564
8568
  msgstr ""
8565
8569
 
8566
8570
  #. TRANSLATORS 'is' is a variable name and should not be translated
8567
8571
  #. TRANSLATORS 'is' is a variable name and should not be translated
8568
- #: ../lib/puppet/type.rb:1022 ../lib/puppet/type.rb:1033
8572
+ #: ../lib/puppet/type.rb:1026 ../lib/puppet/type.rb:1037
8569
8573
  msgid "The 'is' value is not in the 'is' array for '%{name}'"
8570
8574
  msgstr ""
8571
8575
 
8572
- #: ../lib/puppet/type.rb:1159
8576
+ #: ../lib/puppet/type.rb:1163
8573
8577
  msgid "%{name} has no providers and has not overridden 'instances'"
8574
8578
  msgstr ""
8575
8579
 
8576
- #: ../lib/puppet/type.rb:1418
8580
+ #: ../lib/puppet/type.rb:1422
8577
8581
  msgid "Cannot add aliases without a catalog"
8578
8582
  msgstr ""
8579
8583
 
8580
- #: ../lib/puppet/type.rb:1497
8584
+ #: ../lib/puppet/type.rb:1501
8581
8585
  msgid "Could not find %{description} %{ref} for %{resource}"
8582
8586
  msgstr ""
8583
8587
 
8584
- #: ../lib/puppet/type.rb:1770
8588
+ #: ../lib/puppet/type.rb:1776
8585
8589
  msgid "Found multiple default providers for %{name}: %{provider_list}; using %{selected_provider}"
8586
8590
  msgstr ""
8587
8591
 
8588
- #: ../lib/puppet/type.rb:1855
8592
+ #: ../lib/puppet/type.rb:1861
8589
8593
  msgid "Could not find parent provider %{parent} of %{name}"
8590
8594
  msgstr ""
8591
8595
 
8592
- #: ../lib/puppet/type.rb:1929
8596
+ #: ../lib/puppet/type.rb:1935
8593
8597
  msgid "Invalid %{resource} provider '%{provider_class}'"
8594
8598
  msgstr ""
8595
8599
 
8596
- #: ../lib/puppet/type.rb:2012
8600
+ #: ../lib/puppet/type.rb:2018
8597
8601
  msgid "Could not find %{name} provider of %{provider}"
8598
8602
  msgstr ""
8599
8603
 
8600
- #: ../lib/puppet/type.rb:2129
8604
+ #: ../lib/puppet/type.rb:2135
8601
8605
  msgid "You cannot add relationships without a catalog"
8602
8606
  msgstr ""
8603
8607
 
8604
- #: ../lib/puppet/type.rb:2436
8608
+ #: ../lib/puppet/type.rb:2442
8605
8609
  msgid "Unable to mark '%{name}' as sensitive: %{name} is a parameter and not a property, and cannot be automatically redacted."
8606
8610
  msgstr ""
8607
8611
 
8608
- #: ../lib/puppet/type.rb:2439
8612
+ #: ../lib/puppet/type.rb:2445
8609
8613
  msgid "Unable to mark '%{name}' as sensitive: the property itself was not assigned a value."
8610
8614
  msgstr ""
8611
8615
 
8612
- #: ../lib/puppet/type.rb:2441
8616
+ #: ../lib/puppet/type.rb:2447
8613
8617
  msgid "Unable to mark '%{name}' as sensitive: the property itself is not defined on %{type}."
8614
8618
  msgstr ""
8615
8619
 
8616
- #: ../lib/puppet/type.rb:2499
8620
+ #: ../lib/puppet/type.rb:2505
8617
8621
  msgid "Could not set %{attribute} on %{class_name}: %{detail}"
8618
8622
  msgstr ""
8619
8623
 
@@ -8934,27 +8938,35 @@ msgstr ""
8934
8938
  msgid "name must not contain whitespace: %{value}"
8935
8939
  msgstr ""
8936
8940
 
8937
- #: ../lib/puppet/type/package.rb:118 ../lib/puppet/type/package.rb:132
8941
+ #: ../lib/puppet/type/package.rb:125 ../lib/puppet/type/package.rb:139
8938
8942
  msgid "Could not update: %{detail}"
8939
8943
  msgstr ""
8940
8944
 
8941
- #: ../lib/puppet/type/package.rb:167
8945
+ #: ../lib/puppet/type/package.rb:174
8942
8946
  msgid "Could not get latest version: %{detail}"
8943
8947
  msgstr ""
8944
8948
 
8945
- #: ../lib/puppet/type/package.rb:267
8949
+ #: ../lib/puppet/type/package.rb:274
8946
8950
  msgid "Name must be a String not %{klass}"
8947
8951
  msgstr ""
8948
8952
 
8949
- #: ../lib/puppet/type/package.rb:503
8953
+ #: ../lib/puppet/type/package.rb:416
8954
+ msgid "Cannot have both `ensure => disabled` and `flavor`"
8955
+ msgstr ""
8956
+
8957
+ #: ../lib/puppet/type/package.rb:515
8950
8958
  msgid "Cannot have both `enable_only => true` and `flavor`"
8951
8959
  msgstr ""
8952
8960
 
8953
- #: ../lib/puppet/type/package.rb:655
8961
+ #: ../lib/puppet/type/package.rb:518
8962
+ msgid "Cannot have both `ensure => disabled` and `enable_only => true`"
8963
+ msgstr ""
8964
+
8965
+ #: ../lib/puppet/type/package.rb:670
8954
8966
  msgid "Invalid hold value %{value}. %{doc}"
8955
8967
  msgstr ""
8956
8968
 
8957
- #: ../lib/puppet/type/package.rb:685
8969
+ #: ../lib/puppet/type/package.rb:700
8958
8970
  msgid "You cannot use \"mark\" property while \"ensure\" is one of [\"absent\", \"purged\", \"held\"]"
8959
8971
  msgstr ""
8960
8972
 
@@ -9026,7 +9038,7 @@ msgstr ""
9026
9038
  msgid "Invalid value %{value}. %{doc}"
9027
9039
  msgstr ""
9028
9040
 
9029
- #: ../lib/puppet/type/service.rb:94
9041
+ #: ../lib/puppet/type/service.rb:88
9030
9042
  msgid "Setting enable to %{value} is only supported on Microsoft Windows."
9031
9043
  msgstr ""
9032
9044
 
@@ -9163,15 +9175,7 @@ msgstr ""
9163
9175
  msgid "purge_ssh_keys must be true, false, or an array of file names, not %{value}"
9164
9176
  msgstr ""
9165
9177
 
9166
- #: ../lib/puppet/type/user.rb:724
9167
- msgid "purge_ssh_keys can only be true for users with a defined home directory"
9168
- msgstr ""
9169
-
9170
- #: ../lib/puppet/type/user.rb:731
9171
- msgid "purge_ssh_keys value '%{value}' meta character ~ or %{home_placeholder} only allowed for users with a defined home directory"
9172
- msgstr ""
9173
-
9174
- #: ../lib/puppet/type/user.rb:745
9178
+ #: ../lib/puppet/type/user.rb:739
9175
9179
  msgid "Class name must be provided."
9176
9180
  msgstr ""
9177
9181
 
@@ -9810,10 +9814,6 @@ msgstr ""
9810
9814
  msgid "Creating log directory %{dir}"
9811
9815
  msgstr ""
9812
9816
 
9813
- #: ../lib/puppet/util/log/destinations.rb:101
9814
- msgid "Unable to set ownership to %{user}:%{group} for log file: %{path}"
9815
- msgstr ""
9816
-
9817
9817
  #: ../lib/puppet/util/logging.rb:80 ../lib/puppet/util/logging.rb:104
9818
9818
  msgid "Wrapped exception:"
9819
9819
  msgstr ""
@@ -10161,11 +10161,11 @@ msgstr ""
10161
10161
  msgid "Cannot create group if user '%{name}' exists."
10162
10162
  msgstr ""
10163
10163
 
10164
- #: ../lib/puppet/util/windows/api_types.rb:72
10164
+ #: ../lib/puppet/util/windows/api_types.rb:79
10165
10165
  msgid "Unable to read wide strings with %{null_terminator} terminal nulls"
10166
10166
  msgstr ""
10167
10167
 
10168
- #: ../lib/puppet/util/windows/api_types.rb:203
10168
+ #: ../lib/puppet/util/windows/api_types.rb:210
10169
10169
  msgid "Bad GUID format."
10170
10170
  msgstr ""
10171
10171
 
@@ -10220,16 +10220,20 @@ msgstr ""
10220
10220
  msgid "Failed to call GetLongPathName"
10221
10221
  msgstr ""
10222
10222
 
10223
- #: ../lib/puppet/util/windows/principal.rb:68 ../lib/puppet/util/windows/principal.rb:75
10223
+ #: ../lib/puppet/util/windows/principal.rb:69 ../lib/puppet/util/windows/principal.rb:76
10224
10224
  msgid "Failed to call LookupAccountNameW with account: %{account_name}"
10225
10225
  msgstr ""
10226
10226
 
10227
10227
  #. TRANSLATORS `lookup_account_sid` is a variable name and should not be translated
10228
- #: ../lib/puppet/util/windows/principal.rb:98
10228
+ #: ../lib/puppet/util/windows/principal.rb:99
10229
10229
  msgid "Byte array for lookup_account_sid must not be nil and must be at least 1 byte long"
10230
10230
  msgstr ""
10231
10231
 
10232
- #: ../lib/puppet/util/windows/principal.rb:120 ../lib/puppet/util/windows/principal.rb:127
10232
+ #: ../lib/puppet/util/windows/principal.rb:118
10233
+ msgid "Byte array for lookup_account_sid is invalid: %{sid_bytes}"
10234
+ msgstr ""
10235
+
10236
+ #: ../lib/puppet/util/windows/principal.rb:126 ../lib/puppet/util/windows/principal.rb:133
10233
10237
  msgid "Failed to call LookupAccountSidW with bytes: %{sid_bytes}"
10234
10238
  msgstr ""
10235
10239