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.
- checksums.yaml +4 -4
- data/chef-universal-mingw32.gemspec +1 -0
- data/lib/chef/application/apply.rb +6 -4
- data/lib/chef/knife/config_list_profiles.rb +1 -1
- data/lib/chef/knife/list.rb +1 -1
- data/lib/chef/knife/raw.rb +1 -1
- data/lib/chef/knife/role_env_run_list_clear.rb +1 -1
- data/lib/chef/knife/role_env_run_list_remove.rb +1 -1
- data/lib/chef/knife/role_env_run_list_replace.rb +1 -1
- data/lib/chef/knife/role_env_run_list_set.rb +1 -1
- data/lib/chef/knife/role_run_list_clear.rb +1 -1
- data/lib/chef/knife/role_run_list_remove.rb +1 -1
- data/lib/chef/knife/role_run_list_replace.rb +1 -1
- data/lib/chef/knife/role_run_list_set.rb +1 -1
- data/lib/chef/knife/show.rb +1 -1
- data/lib/chef/knife/upload.rb +1 -1
- data/lib/chef/knife/xargs.rb +1 -1
- data/lib/chef/node/attribute.rb +189 -185
- data/lib/chef/platform/rebooter.rb +1 -0
- data/lib/chef/property.rb +25 -1
- data/lib/chef/provider/windows_task.rb +19 -6
- data/lib/chef/resource.rb +17 -2
- data/lib/chef/resource/apt_preference.rb +2 -1
- data/lib/chef/resource/apt_repository.rb +1 -1
- data/lib/chef/resource/apt_update.rb +1 -0
- data/lib/chef/resource/build_essential.rb +1 -1
- data/lib/chef/resource/cab_package.rb +1 -1
- data/lib/chef/resource/chef_gem.rb +1 -1
- data/lib/chef/resource/cookbook_file.rb +2 -1
- data/lib/chef/resource/cron_d.rb +1 -1
- data/lib/chef/resource/dmg_package.rb +52 -40
- data/lib/chef/resource/execute.rb +2 -2
- data/lib/chef/resource/file.rb +1 -1
- data/lib/chef/resource/group.rb +2 -2
- data/lib/chef/resource/homebrew_cask.rb +3 -2
- data/lib/chef/resource/homebrew_tap.rb +2 -2
- data/lib/chef/resource/hostname.rb +2 -2
- data/lib/chef/resource/kernel_module.rb +19 -13
- data/lib/chef/resource/locale.rb +1 -0
- data/lib/chef/resource/macos_userdefaults.rb +7 -6
- data/lib/chef/resource/mdadm.rb +3 -2
- data/lib/chef/resource/mount.rb +3 -3
- data/lib/chef/resource/openssl_dhparam.rb +1 -1
- data/lib/chef/resource/openssl_ec_private_key.rb +1 -1
- data/lib/chef/resource/openssl_ec_public_key.rb +3 -3
- data/lib/chef/resource/openssl_rsa_private_key.rb +2 -2
- data/lib/chef/resource/openssl_rsa_public_key.rb +3 -3
- data/lib/chef/resource/openssl_x509_certificate.rb +1 -1
- data/lib/chef/resource/openssl_x509_crl.rb +1 -1
- data/lib/chef/resource/openssl_x509_request.rb +1 -1
- data/lib/chef/resource/package.rb +1 -1
- data/lib/chef/resource/powershell_package.rb +1 -1
- data/lib/chef/resource/remote_directory.rb +2 -2
- data/lib/chef/resource/rhsm_errata.rb +1 -1
- data/lib/chef/resource/rhsm_errata_level.rb +1 -1
- data/lib/chef/resource/rhsm_register.rb +7 -7
- data/lib/chef/resource/rhsm_repo.rb +1 -1
- data/lib/chef/resource/rhsm_subscription.rb +1 -1
- data/lib/chef/resource/sudo.rb +8 -8
- data/lib/chef/resource/swap_file.rb +1 -1
- data/lib/chef/resource/sysctl.rb +2 -2
- data/lib/chef/resource/systemd_unit.rb +19 -11
- data/lib/chef/resource/timezone.rb +60 -32
- data/lib/chef/resource/windows_ad_join.rb +1 -1
- data/lib/chef/resource/windows_auto_run.rb +1 -1
- data/lib/chef/resource/windows_certificate.rb +269 -0
- data/lib/chef/resource/windows_env.rb +12 -3
- data/lib/chef/resource/windows_feature.rb +6 -11
- data/lib/chef/resource/windows_feature_dism.rb +2 -2
- data/lib/chef/resource/windows_feature_powershell.rb +5 -9
- data/lib/chef/resource/windows_firewall_rule.rb +205 -0
- data/lib/chef/resource/windows_path.rb +3 -1
- data/lib/chef/resource/windows_printer.rb +2 -2
- data/lib/chef/resource/windows_printer_port.rb +3 -3
- data/lib/chef/resource/windows_service.rb +1 -0
- data/lib/chef/resource/windows_share.rb +315 -0
- data/lib/chef/resource/windows_task.rb +4 -0
- data/lib/chef/resource/windows_workgroup.rb +6 -4
- data/lib/chef/resource/yum_repository.rb +13 -7
- data/lib/chef/resource/zypper_package.rb +2 -2
- data/lib/chef/resource/zypper_repository.rb +2 -1
- data/lib/chef/resource_inspector.rb +4 -4
- data/lib/chef/resources.rb +3 -0
- data/lib/chef/version.rb +1 -1
- data/spec/functional/resource/windows_task_spec.rb +39 -0
- data/spec/support/platform_helpers.rb +2 -1
- data/spec/unit/resource/windows_certificate.rb +46 -0
- data/spec/unit/resource/windows_firewall_rule_spec.rb +401 -0
- data/spec/unit/resource/windows_share.rb +39 -0
- 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.
|
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-
|
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.
|
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.
|
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
|