chef 17.2.29 → 17.3.48

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +4 -3
  3. data/chef.gemspec +1 -0
  4. data/lib/chef/client.rb +1 -1
  5. data/lib/chef/data_bag.rb +1 -2
  6. data/lib/chef/data_bag_item.rb +1 -2
  7. data/lib/chef/deprecated.rb +10 -4
  8. data/lib/chef/dsl.rb +1 -0
  9. data/lib/chef/dsl/render_helpers.rb +44 -0
  10. data/lib/chef/dsl/secret.rb +64 -0
  11. data/lib/chef/dsl/toml.rb +116 -0
  12. data/lib/chef/dsl/universal.rb +5 -0
  13. data/lib/chef/exceptions.rb +22 -0
  14. data/lib/chef/handler/slow_report.rb +1 -1
  15. data/lib/chef/json_compat.rb +1 -1
  16. data/lib/chef/policy_builder/policyfile.rb +88 -45
  17. data/lib/chef/provider/file.rb +2 -2
  18. data/lib/chef/provider/lwrp_base.rb +1 -1
  19. data/lib/chef/provider/package/habitat.rb +168 -0
  20. data/lib/chef/provider/package/powershell.rb +5 -0
  21. data/lib/chef/providers.rb +1 -0
  22. data/lib/chef/resource/chef_client_config.rb +7 -2
  23. data/lib/chef/resource/chef_client_cron.rb +1 -1
  24. data/lib/chef/resource/chef_client_launchd.rb +1 -1
  25. data/lib/chef/resource/chef_client_scheduled_task.rb +1 -1
  26. data/lib/chef/resource/chef_client_systemd_timer.rb +1 -1
  27. data/lib/chef/resource/chef_client_trusted_certificate.rb +2 -2
  28. data/lib/chef/resource/chef_vault_secret.rb +2 -2
  29. data/lib/chef/resource/dsc_resource.rb +1 -1
  30. data/lib/chef/resource/execute.rb +3 -3
  31. data/lib/chef/resource/gem_package.rb +2 -1
  32. data/lib/chef/resource/habitat/_habitat_shared.rb +28 -0
  33. data/lib/chef/resource/habitat/habitat_package.rb +129 -0
  34. data/lib/chef/resource/habitat/habitat_sup.rb +329 -0
  35. data/lib/chef/resource/habitat/habitat_sup_systemd.rb +67 -0
  36. data/lib/chef/resource/habitat/habitat_sup_windows.rb +90 -0
  37. data/lib/chef/resource/habitat_config.rb +107 -0
  38. data/lib/chef/resource/habitat_install.rb +247 -0
  39. data/lib/chef/resource/habitat_service.rb +451 -0
  40. data/lib/chef/resource/habitat_user_toml.rb +92 -0
  41. data/lib/chef/resource/lwrp_base.rb +1 -1
  42. data/lib/chef/resource/support/HabService.dll.config.erb +19 -0
  43. data/lib/chef/resource/support/client.erb +8 -1
  44. data/lib/chef/resource/support/sup.toml.erb +179 -0
  45. data/lib/chef/resource/windows_defender.rb +163 -0
  46. data/lib/chef/resource/windows_defender_exclusion.rb +125 -0
  47. data/lib/chef/resource/windows_printer.rb +78 -44
  48. data/lib/chef/resource/windows_printer_port.rb +1 -1
  49. data/lib/chef/resource/windows_update_settings.rb +259 -0
  50. data/lib/chef/resources.rb +12 -1
  51. data/lib/chef/secret_fetcher.rb +54 -0
  52. data/lib/chef/secret_fetcher/aws_secrets_manager.rb +53 -0
  53. data/lib/chef/secret_fetcher/azure_key_vault.rb +56 -0
  54. data/lib/chef/secret_fetcher/base.rb +72 -0
  55. data/lib/chef/secret_fetcher/example.rb +46 -0
  56. data/lib/chef/version.rb +1 -1
  57. data/spec/functional/mixin/from_file_spec.rb +1 -1
  58. data/spec/integration/recipes/recipe_dsl_spec.rb +1 -1
  59. data/spec/integration/recipes/resource_action_spec.rb +4 -4
  60. data/spec/support/shared/unit/provider/file.rb +2 -8
  61. data/spec/unit/data_bag_item_spec.rb +2 -2
  62. data/spec/unit/data_bag_spec.rb +1 -1
  63. data/spec/unit/dsl/render_helpers_spec.rb +102 -0
  64. data/spec/unit/dsl/secret_spec.rb +65 -0
  65. data/spec/unit/policy_builder/dynamic_spec.rb +0 -5
  66. data/spec/unit/policy_builder/policyfile_spec.rb +144 -56
  67. data/spec/unit/provider/apt_update_spec.rb +3 -1
  68. data/spec/unit/provider/mount/aix_spec.rb +1 -1
  69. data/spec/unit/provider/package/powershell_spec.rb +74 -12
  70. data/spec/unit/resource/windows_defender_exclusion_spec.rb +62 -0
  71. data/spec/unit/resource/windows_defender_spec.rb +71 -0
  72. data/spec/unit/resource/windows_update_settings_spec.rb +64 -0
  73. data/spec/unit/secret_fetcher/azure_key_vault_spec.rb +63 -0
  74. data/spec/unit/secret_fetcher_spec.rb +82 -0
  75. metadata +51 -7
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef
3
3
  version: !ruby/object:Gem::Version
4
- version: 17.2.29
4
+ version: 17.3.48
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Jacob
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-09 00:00:00.000000000 Z
11
+ date: 2021-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef-config
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 17.2.29
19
+ version: 17.3.48
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 17.2.29
26
+ version: 17.3.48
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: chef-utils
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 17.2.29
33
+ version: 17.3.48
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 17.2.29
40
+ version: 17.3.48
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: train-core
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -440,6 +440,20 @@ dependencies:
440
440
  - - "~>"
441
441
  - !ruby/object:Gem::Version
442
442
  version: '1.0'
443
+ - !ruby/object:Gem::Dependency
444
+ name: aws-sdk-secretsmanager
445
+ requirement: !ruby/object:Gem::Requirement
446
+ requirements:
447
+ - - "~>"
448
+ - !ruby/object:Gem::Version
449
+ version: '1.46'
450
+ type: :runtime
451
+ prerelease: false
452
+ version_requirements: !ruby/object:Gem::Requirement
453
+ requirements:
454
+ - - "~>"
455
+ - !ruby/object:Gem::Version
456
+ version: '1.46'
443
457
  description: A systems integration framework, built to bring the benefits of configuration
444
458
  management to your entire infrastructure.
445
459
  email: adam@chef.io
@@ -628,7 +642,10 @@ files:
628
642
  - lib/chef/dsl/reboot_pending.rb
629
643
  - lib/chef/dsl/recipe.rb
630
644
  - lib/chef/dsl/registry_helper.rb
645
+ - lib/chef/dsl/render_helpers.rb
631
646
  - lib/chef/dsl/resources.rb
647
+ - lib/chef/dsl/secret.rb
648
+ - lib/chef/dsl/toml.rb
632
649
  - lib/chef/dsl/universal.rb
633
650
  - lib/chef/encrypted_data_bag_item.rb
634
651
  - lib/chef/encrypted_data_bag_item/assertions.rb
@@ -834,6 +851,7 @@ files:
834
851
  - lib/chef/provider/package/freebsd/base.rb
835
852
  - lib/chef/provider/package/freebsd/pkgng.rb
836
853
  - lib/chef/provider/package/freebsd/port.rb
854
+ - lib/chef/provider/package/habitat.rb
837
855
  - lib/chef/provider/package/homebrew.rb
838
856
  - lib/chef/provider/package/ips.rb
839
857
  - lib/chef/provider/package/macports.rb
@@ -967,6 +985,15 @@ files:
967
985
  - lib/chef/resource/freebsd_package.rb
968
986
  - lib/chef/resource/gem_package.rb
969
987
  - lib/chef/resource/group.rb
988
+ - lib/chef/resource/habitat/_habitat_shared.rb
989
+ - lib/chef/resource/habitat/habitat_package.rb
990
+ - lib/chef/resource/habitat/habitat_sup.rb
991
+ - lib/chef/resource/habitat/habitat_sup_systemd.rb
992
+ - lib/chef/resource/habitat/habitat_sup_windows.rb
993
+ - lib/chef/resource/habitat_config.rb
994
+ - lib/chef/resource/habitat_install.rb
995
+ - lib/chef/resource/habitat_service.rb
996
+ - lib/chef/resource/habitat_user_toml.rb
970
997
  - lib/chef/resource/helpers/cron_validations.rb
971
998
  - lib/chef/resource/homebrew_cask.rb
972
999
  - lib/chef/resource/homebrew_package.rb
@@ -1037,11 +1064,13 @@ files:
1037
1064
  - lib/chef/resource/solaris_package.rb
1038
1065
  - lib/chef/resource/ssh_known_hosts_entry.rb
1039
1066
  - lib/chef/resource/sudo.rb
1067
+ - lib/chef/resource/support/HabService.dll.config.erb
1040
1068
  - lib/chef/resource/support/client.erb
1041
1069
  - lib/chef/resource/support/cron.d.erb
1042
1070
  - lib/chef/resource/support/cron_access.erb
1043
1071
  - lib/chef/resource/support/ssh_known_hosts.erb
1044
1072
  - lib/chef/resource/support/sudoer.erb
1073
+ - lib/chef/resource/support/sup.toml.erb
1045
1074
  - lib/chef/resource/support/ulimit.erb
1046
1075
  - lib/chef/resource/swap_file.rb
1047
1076
  - lib/chef/resource/sysctl.rb
@@ -1061,6 +1090,8 @@ files:
1061
1090
  - lib/chef/resource/windows_audit_policy.rb
1062
1091
  - lib/chef/resource/windows_auto_run.rb
1063
1092
  - lib/chef/resource/windows_certificate.rb
1093
+ - lib/chef/resource/windows_defender.rb
1094
+ - lib/chef/resource/windows_defender_exclusion.rb
1064
1095
  - lib/chef/resource/windows_dfs_folder.rb
1065
1096
  - lib/chef/resource/windows_dfs_namespace.rb
1066
1097
  - lib/chef/resource/windows_dfs_server.rb
@@ -1085,6 +1116,7 @@ files:
1085
1116
  - lib/chef/resource/windows_shortcut.rb
1086
1117
  - lib/chef/resource/windows_task.rb
1087
1118
  - lib/chef/resource/windows_uac.rb
1119
+ - lib/chef/resource/windows_update_settings.rb
1088
1120
  - lib/chef/resource/windows_user_privilege.rb
1089
1121
  - lib/chef/resource/windows_workgroup.rb
1090
1122
  - lib/chef/resource/yum_package.rb
@@ -1116,6 +1148,11 @@ files:
1116
1148
  - lib/chef/sandbox.rb
1117
1149
  - lib/chef/scan_access_control.rb
1118
1150
  - lib/chef/search/query.rb
1151
+ - lib/chef/secret_fetcher.rb
1152
+ - lib/chef/secret_fetcher/aws_secrets_manager.rb
1153
+ - lib/chef/secret_fetcher/azure_key_vault.rb
1154
+ - lib/chef/secret_fetcher/base.rb
1155
+ - lib/chef/secret_fetcher/example.rb
1119
1156
  - lib/chef/server_api.rb
1120
1157
  - lib/chef/server_api_versions.rb
1121
1158
  - lib/chef/shell.rb
@@ -1830,7 +1867,9 @@ files:
1830
1867
  - spec/unit/dsl/reboot_pending_spec.rb
1831
1868
  - spec/unit/dsl/recipe_spec.rb
1832
1869
  - spec/unit/dsl/registry_helper_spec.rb
1870
+ - spec/unit/dsl/render_helpers_spec.rb
1833
1871
  - spec/unit/dsl/resources_spec.rb
1872
+ - spec/unit/dsl/secret_spec.rb
1834
1873
  - spec/unit/encrypted_data_bag_item/check_encrypted_spec.rb
1835
1874
  - spec/unit/encrypted_data_bag_item_spec.rb
1836
1875
  - spec/unit/environment_spec.rb
@@ -2167,6 +2206,8 @@ files:
2167
2206
  - spec/unit/resource/windows_audit_policy_spec.rb
2168
2207
  - spec/unit/resource/windows_auto_run_spec.rb
2169
2208
  - spec/unit/resource/windows_certificate_spec.rb
2209
+ - spec/unit/resource/windows_defender_exclusion_spec.rb
2210
+ - spec/unit/resource/windows_defender_spec.rb
2170
2211
  - spec/unit/resource/windows_dfs_folder_spec.rb
2171
2212
  - spec/unit/resource/windows_dfs_namespace_spec.rb
2172
2213
  - spec/unit/resource/windows_dfs_server_spec.rb
@@ -2189,6 +2230,7 @@ files:
2189
2230
  - spec/unit/resource/windows_shortcut_spec.rb
2190
2231
  - spec/unit/resource/windows_task_spec.rb
2191
2232
  - spec/unit/resource/windows_uac_spec.rb
2233
+ - spec/unit/resource/windows_update_settings_spec.rb
2192
2234
  - spec/unit/resource/windows_user_privilege_spec.rb
2193
2235
  - spec/unit/resource/windows_workgroup_spec.rb
2194
2236
  - spec/unit/resource/yum_package_spec.rb
@@ -2218,6 +2260,8 @@ files:
2218
2260
  - spec/unit/runner_spec.rb
2219
2261
  - spec/unit/scan_access_control_spec.rb
2220
2262
  - spec/unit/search/query_spec.rb
2263
+ - spec/unit/secret_fetcher/azure_key_vault_spec.rb
2264
+ - spec/unit/secret_fetcher_spec.rb
2221
2265
  - spec/unit/server_api_spec.rb
2222
2266
  - spec/unit/server_api_versions_spec.rb
2223
2267
  - spec/unit/shell/model_wrapper_spec.rb
@@ -2274,7 +2318,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
2274
2318
  - !ruby/object:Gem::Version
2275
2319
  version: '0'
2276
2320
  requirements: []
2277
- rubygems_version: 3.2.15
2321
+ rubygems_version: 3.2.22
2278
2322
  signing_key:
2279
2323
  specification_version: 4
2280
2324
  summary: A systems integration framework, built to bring the benefits of configuration