chef 14.6.47-universal-mingw32 → 14.7.17-universal-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/chef-universal-mingw32.gemspec +1 -0
  3. data/lib/chef/application/apply.rb +6 -4
  4. data/lib/chef/knife/config_list_profiles.rb +1 -1
  5. data/lib/chef/knife/list.rb +1 -1
  6. data/lib/chef/knife/raw.rb +1 -1
  7. data/lib/chef/knife/role_env_run_list_clear.rb +1 -1
  8. data/lib/chef/knife/role_env_run_list_remove.rb +1 -1
  9. data/lib/chef/knife/role_env_run_list_replace.rb +1 -1
  10. data/lib/chef/knife/role_env_run_list_set.rb +1 -1
  11. data/lib/chef/knife/role_run_list_clear.rb +1 -1
  12. data/lib/chef/knife/role_run_list_remove.rb +1 -1
  13. data/lib/chef/knife/role_run_list_replace.rb +1 -1
  14. data/lib/chef/knife/role_run_list_set.rb +1 -1
  15. data/lib/chef/knife/show.rb +1 -1
  16. data/lib/chef/knife/upload.rb +1 -1
  17. data/lib/chef/knife/xargs.rb +1 -1
  18. data/lib/chef/node/attribute.rb +189 -185
  19. data/lib/chef/platform/rebooter.rb +1 -0
  20. data/lib/chef/property.rb +25 -1
  21. data/lib/chef/provider/windows_task.rb +19 -6
  22. data/lib/chef/resource.rb +17 -2
  23. data/lib/chef/resource/apt_preference.rb +2 -1
  24. data/lib/chef/resource/apt_repository.rb +1 -1
  25. data/lib/chef/resource/apt_update.rb +1 -0
  26. data/lib/chef/resource/build_essential.rb +1 -1
  27. data/lib/chef/resource/cab_package.rb +1 -1
  28. data/lib/chef/resource/chef_gem.rb +1 -1
  29. data/lib/chef/resource/cookbook_file.rb +2 -1
  30. data/lib/chef/resource/cron_d.rb +1 -1
  31. data/lib/chef/resource/dmg_package.rb +52 -40
  32. data/lib/chef/resource/execute.rb +2 -2
  33. data/lib/chef/resource/file.rb +1 -1
  34. data/lib/chef/resource/group.rb +2 -2
  35. data/lib/chef/resource/homebrew_cask.rb +3 -2
  36. data/lib/chef/resource/homebrew_tap.rb +2 -2
  37. data/lib/chef/resource/hostname.rb +2 -2
  38. data/lib/chef/resource/kernel_module.rb +19 -13
  39. data/lib/chef/resource/locale.rb +1 -0
  40. data/lib/chef/resource/macos_userdefaults.rb +7 -6
  41. data/lib/chef/resource/mdadm.rb +3 -2
  42. data/lib/chef/resource/mount.rb +3 -3
  43. data/lib/chef/resource/openssl_dhparam.rb +1 -1
  44. data/lib/chef/resource/openssl_ec_private_key.rb +1 -1
  45. data/lib/chef/resource/openssl_ec_public_key.rb +3 -3
  46. data/lib/chef/resource/openssl_rsa_private_key.rb +2 -2
  47. data/lib/chef/resource/openssl_rsa_public_key.rb +3 -3
  48. data/lib/chef/resource/openssl_x509_certificate.rb +1 -1
  49. data/lib/chef/resource/openssl_x509_crl.rb +1 -1
  50. data/lib/chef/resource/openssl_x509_request.rb +1 -1
  51. data/lib/chef/resource/package.rb +1 -1
  52. data/lib/chef/resource/powershell_package.rb +1 -1
  53. data/lib/chef/resource/remote_directory.rb +2 -2
  54. data/lib/chef/resource/rhsm_errata.rb +1 -1
  55. data/lib/chef/resource/rhsm_errata_level.rb +1 -1
  56. data/lib/chef/resource/rhsm_register.rb +7 -7
  57. data/lib/chef/resource/rhsm_repo.rb +1 -1
  58. data/lib/chef/resource/rhsm_subscription.rb +1 -1
  59. data/lib/chef/resource/sudo.rb +8 -8
  60. data/lib/chef/resource/swap_file.rb +1 -1
  61. data/lib/chef/resource/sysctl.rb +2 -2
  62. data/lib/chef/resource/systemd_unit.rb +19 -11
  63. data/lib/chef/resource/timezone.rb +60 -32
  64. data/lib/chef/resource/windows_ad_join.rb +1 -1
  65. data/lib/chef/resource/windows_auto_run.rb +1 -1
  66. data/lib/chef/resource/windows_certificate.rb +269 -0
  67. data/lib/chef/resource/windows_env.rb +12 -3
  68. data/lib/chef/resource/windows_feature.rb +6 -11
  69. data/lib/chef/resource/windows_feature_dism.rb +2 -2
  70. data/lib/chef/resource/windows_feature_powershell.rb +5 -9
  71. data/lib/chef/resource/windows_firewall_rule.rb +205 -0
  72. data/lib/chef/resource/windows_path.rb +3 -1
  73. data/lib/chef/resource/windows_printer.rb +2 -2
  74. data/lib/chef/resource/windows_printer_port.rb +3 -3
  75. data/lib/chef/resource/windows_service.rb +1 -0
  76. data/lib/chef/resource/windows_share.rb +315 -0
  77. data/lib/chef/resource/windows_task.rb +4 -0
  78. data/lib/chef/resource/windows_workgroup.rb +6 -4
  79. data/lib/chef/resource/yum_repository.rb +13 -7
  80. data/lib/chef/resource/zypper_package.rb +2 -2
  81. data/lib/chef/resource/zypper_repository.rb +2 -1
  82. data/lib/chef/resource_inspector.rb +4 -4
  83. data/lib/chef/resources.rb +3 -0
  84. data/lib/chef/version.rb +1 -1
  85. data/spec/functional/resource/windows_task_spec.rb +39 -0
  86. data/spec/support/platform_helpers.rb +2 -1
  87. data/spec/unit/resource/windows_certificate.rb +46 -0
  88. data/spec/unit/resource/windows_firewall_rule_spec.rb +401 -0
  89. data/spec/unit/resource/windows_share.rb +39 -0
  90. metadata +24 -4
@@ -0,0 +1,39 @@
1
+ #
2
+ # Copyright:: Copyright 2018, Chef Software, Inc.
3
+ # License:: Apache License, Version 2.0
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+ #
17
+
18
+ require "spec_helper"
19
+
20
+ describe Chef::Resource::WindowsShare do
21
+ let(:resource) { Chef::Resource::WindowsShare.new("foobar") }
22
+
23
+ it "sets resource name as :windows_share" do
24
+ expect(resource.resource_name).to eql(:windows_share)
25
+ end
26
+
27
+ it "the share_name property is the name_property" do
28
+ expect(resource.share_name).to eql("foobar")
29
+ end
30
+
31
+ it "sets the default action as :create" do
32
+ expect(resource.action).to eql([:create])
33
+ end
34
+
35
+ it "supports :create and :delete actions" do
36
+ expect { resource.action :create }.not_to raise_error
37
+ expect { resource.action :delete }.not_to raise_error
38
+ end
39
+ end
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: 14.6.47
4
+ version: 14.7.17
5
5
  platform: universal-mingw32
6
6
  authors:
7
7
  - Adam Jacob
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-26 00:00:00.000000000 Z
11
+ date: 2018-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef-config
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 14.6.47
19
+ version: 14.7.17
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: 14.6.47
26
+ version: 14.7.17
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mixlib-cli
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -620,6 +620,20 @@ dependencies:
620
620
  - - "~>"
621
621
  - !ruby/object:Gem::Version
622
622
  version: 0.12.1
623
+ - !ruby/object:Gem::Dependency
624
+ name: win32-certstore
625
+ requirement: !ruby/object:Gem::Requirement
626
+ requirements:
627
+ - - ">="
628
+ - !ruby/object:Gem::Version
629
+ version: 0.1.8
630
+ type: :runtime
631
+ prerelease: false
632
+ version_requirements: !ruby/object:Gem::Requirement
633
+ requirements:
634
+ - - ">="
635
+ - !ruby/object:Gem::Version
636
+ version: 0.1.8
623
637
  description: A systems integration framework, built to bring the benefits of configuration
624
638
  management to your entire infrastructure.
625
639
  email: adam@chef.io
@@ -1408,10 +1422,12 @@ files:
1408
1422
  - lib/chef/resource/whyrun_safe_ruby_block.rb
1409
1423
  - lib/chef/resource/windows_ad_join.rb
1410
1424
  - lib/chef/resource/windows_auto_run.rb
1425
+ - lib/chef/resource/windows_certificate.rb
1411
1426
  - lib/chef/resource/windows_env.rb
1412
1427
  - lib/chef/resource/windows_feature.rb
1413
1428
  - lib/chef/resource/windows_feature_dism.rb
1414
1429
  - lib/chef/resource/windows_feature_powershell.rb
1430
+ - lib/chef/resource/windows_firewall_rule.rb
1415
1431
  - lib/chef/resource/windows_font.rb
1416
1432
  - lib/chef/resource/windows_package.rb
1417
1433
  - lib/chef/resource/windows_pagefile.rb
@@ -1420,6 +1436,7 @@ files:
1420
1436
  - lib/chef/resource/windows_printer_port.rb
1421
1437
  - lib/chef/resource/windows_script.rb
1422
1438
  - lib/chef/resource/windows_service.rb
1439
+ - lib/chef/resource/windows_share.rb
1423
1440
  - lib/chef/resource/windows_shortcut.rb
1424
1441
  - lib/chef/resource/windows_task.rb
1425
1442
  - lib/chef/resource/windows_workgroup.rb
@@ -2618,10 +2635,12 @@ files:
2618
2635
  - spec/unit/resource/user_spec.rb
2619
2636
  - spec/unit/resource/windows_ad_join_spec.rb
2620
2637
  - spec/unit/resource/windows_auto_run_spec.rb
2638
+ - spec/unit/resource/windows_certificate.rb
2621
2639
  - spec/unit/resource/windows_env_spec.rb
2622
2640
  - spec/unit/resource/windows_feature.rb
2623
2641
  - spec/unit/resource/windows_feature_dism.rb
2624
2642
  - spec/unit/resource/windows_feature_powershell.rb
2643
+ - spec/unit/resource/windows_firewall_rule_spec.rb
2625
2644
  - spec/unit/resource/windows_font_spec.rb
2626
2645
  - spec/unit/resource/windows_package_spec.rb
2627
2646
  - spec/unit/resource/windows_pagefile_spec.rb
@@ -2629,6 +2648,7 @@ files:
2629
2648
  - spec/unit/resource/windows_printer_port_spec.rb
2630
2649
  - spec/unit/resource/windows_printer_spec.rb
2631
2650
  - spec/unit/resource/windows_service_spec.rb
2651
+ - spec/unit/resource/windows_share.rb
2632
2652
  - spec/unit/resource/windows_shortcut_spec.rb
2633
2653
  - spec/unit/resource/windows_task_spec.rb
2634
2654
  - spec/unit/resource/windows_workgroup_spec.rb