chef 12.16.42-universal-mingw32 → 12.17.44-universal-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -1
- data/README.md +20 -5
- data/Rakefile +17 -0
- data/VERSION +1 -1
- data/acceptance/Gemfile.lock +32 -23
- data/distro/common/markdown/man1/knife-configure.mkd +3 -2
- data/lib-backcompat/chef/chef_fs/file_system/already_exists_error.rb +1 -1
- data/lib-backcompat/chef/chef_fs/file_system/cookbook_frozen_error.rb +1 -1
- data/lib-backcompat/chef/chef_fs/file_system/default_environment_cannot_be_modified_error.rb +1 -1
- data/lib-backcompat/chef/chef_fs/file_system/file_system_error.rb +1 -1
- data/lib-backcompat/chef/chef_fs/file_system/must_delete_recursively_error.rb +1 -1
- data/lib-backcompat/chef/chef_fs/file_system/not_found_error.rb +1 -1
- data/lib-backcompat/chef/chef_fs/file_system/operation_failed_error.rb +1 -1
- data/lib-backcompat/chef/chef_fs/file_system/operation_not_allowed_error.rb +1 -1
- data/lib-backcompat/chef/chef_fs/file_system/repository/chef_repository_file_system_entry.rb +1 -1
- data/lib-backcompat/chef/chef_fs/file_system/repository/file_system_root_dir.rb +1 -1
- data/lib/chef/api_client.rb +1 -1
- data/lib/chef/application.rb +1 -1
- data/lib/chef/application/exit_code.rb +3 -3
- data/lib/chef/chef_class.rb +15 -5
- data/lib/chef/chef_fs/file_system/repository/chef_repository_file_system_root_dir.rb +12 -1
- data/lib/chef/chef_fs/file_system/repository/nodes_dir.rb +19 -0
- data/lib/chef/client.rb +1 -0
- data/lib/chef/cookbook/metadata.rb +2 -2
- data/lib/chef/cookbook_version.rb +4 -4
- data/lib/chef/data_bag.rb +1 -1
- data/lib/chef/data_bag_item.rb +1 -1
- data/lib/chef/data_collector.rb +20 -13
- data/lib/chef/data_collector/messages.rb +0 -1
- data/lib/chef/data_collector/messages/helpers.rb +2 -2
- data/lib/chef/decorator/unchain.rb +2 -2
- data/lib/chef/deprecated.rb +190 -0
- data/lib/chef/deprecation/provider/remote_directory.rb +1 -1
- data/lib/chef/deprecation/warnings.rb +3 -4
- data/lib/chef/dsl/method_missing.rb +2 -2
- data/lib/chef/dsl/resources.rb +2 -2
- data/lib/chef/environment.rb +1 -1
- data/lib/chef/exceptions.rb +1 -1
- data/lib/chef/formatters/base.rb +11 -1
- data/lib/chef/formatters/doc.rb +13 -4
- data/lib/chef/key.rb +1 -1
- data/lib/chef/knife/client_delete.rb +12 -9
- data/lib/chef/knife/configure.rb +1 -1
- data/lib/chef/knife/core/bootstrap_context.rb +25 -1
- data/lib/chef/knife/core/subcommand_loader.rb +3 -3
- data/lib/chef/knife/core/ui.rb +1 -1
- data/lib/chef/knife/node_delete.rb +6 -6
- data/lib/chef/log.rb +1 -1
- data/lib/chef/mixin/deprecation.rb +4 -10
- data/lib/chef/mixin/powershell_type_coercions.rb +19 -19
- data/lib/chef/mixin/shell_out.rb +1 -1
- data/lib/chef/node.rb +2 -2
- data/lib/chef/node/attribute.rb +3 -4
- data/lib/chef/node/common_api.rb +1 -1
- data/lib/chef/node/mixin/state_tracking.rb +5 -2
- data/lib/chef/node_map.rb +2 -2
- data/lib/chef/org.rb +1 -1
- data/lib/chef/platform/rebooter.rb +3 -1
- data/lib/chef/policy_builder/expand_node_object.rb +1 -1
- data/lib/chef/property.rb +5 -5
- data/lib/chef/provider.rb +4 -4
- data/lib/chef/provider/launchd.rb +1 -1
- data/lib/chef/provider/link.rb +6 -0
- data/lib/chef/provider/mount.rb +2 -0
- data/lib/chef/provider/mount/mount.rb +1 -1
- data/lib/chef/provider/ohai.rb +5 -3
- data/lib/chef/provider/package/cab.rb +1 -1
- data/lib/chef/provider/package/chocolatey.rb +2 -2
- data/lib/chef/provider/package/easy_install.rb +2 -2
- data/lib/chef/provider/package/msu.rb +162 -0
- data/lib/chef/provider/package/powershell.rb +114 -0
- data/lib/chef/provider/package/yum.rb +1 -1
- data/lib/chef/provider/yum_repository.rb +6 -7
- data/lib/chef/provider_resolver.rb +2 -2
- data/lib/chef/providers.rb +2 -0
- data/lib/chef/resource.rb +3 -5
- data/lib/chef/resource/apt_update.rb +1 -1
- data/lib/chef/resource/chef_gem.rb +2 -3
- data/lib/chef/resource/file/verification.rb +1 -1
- data/lib/chef/resource/launchd.rb +48 -8
- data/lib/chef/resource/mount.rb +1 -1
- data/lib/chef/resource/msu_package.rb +47 -0
- data/lib/chef/resource/ohai.rb +5 -25
- data/lib/chef/resource/powershell_package.rb +41 -0
- data/lib/chef/resource/reboot.rb +1 -1
- data/lib/chef/resource/user.rb +2 -2
- data/lib/chef/resource_builder.rb +4 -4
- data/lib/chef/resource_resolver.rb +2 -3
- data/lib/chef/resources.rb +2 -0
- data/lib/chef/rest.rb +1 -1
- data/lib/chef/role.rb +1 -1
- data/lib/chef/run_context.rb +3 -3
- data/lib/chef/shell/ext.rb +2 -2
- data/lib/chef/user.rb +3 -3
- data/lib/chef/user_v1.rb +1 -1
- data/lib/chef/version.rb +1 -1
- data/lib/chef/win32/api/security.rb +12 -12
- data/spec/data/sample_msu1.xml +10 -0
- data/spec/data/sample_msu2.xml +14 -0
- data/spec/data/sample_msu3.xml +16 -0
- data/spec/functional/rebooter_spec.rb +3 -3
- data/spec/functional/resource/link_spec.rb +62 -1
- data/spec/functional/resource/msu_package_spec.rb +84 -0
- data/spec/functional/resource/registry_spec.rb +3 -3
- data/spec/functional/resource/rpm_spec.rb +7 -10
- data/spec/integration/solo/solo_spec.rb +50 -0
- data/spec/spec_helper.rb +3 -0
- data/spec/support/platform_helpers.rb +16 -8
- data/spec/unit/application/exit_code_spec.rb +3 -15
- data/spec/unit/data_collector_spec.rb +6 -16
- data/spec/unit/deprecated_spec.rb +59 -0
- data/spec/unit/deprecation_spec.rb +1 -8
- data/spec/unit/handler_spec.rb +2 -2
- data/spec/unit/knife/client_delete_spec.rb +16 -0
- data/spec/unit/knife/configure_spec.rb +1 -1
- data/spec/unit/knife/cookbook_metadata_spec.rb +116 -113
- data/spec/unit/knife/core/bootstrap_context_spec.rb +55 -5
- data/spec/unit/knife/node_delete_spec.rb +19 -10
- data/spec/unit/mixin/shell_out_spec.rb +0 -1
- data/spec/unit/node/immutable_collections_spec.rb +5 -0
- data/spec/unit/node/vivid_mash_spec.rb +11 -0
- data/spec/unit/node_spec.rb +2 -2
- data/spec/unit/provider/launchd_spec.rb +81 -3
- data/spec/unit/provider/mount/mount_spec.rb +1 -1
- data/spec/unit/provider/mount_spec.rb +7 -0
- data/spec/unit/provider/package/chocolatey_spec.rb +5 -5
- data/spec/unit/provider/package/easy_install_spec.rb +6 -6
- data/spec/unit/provider/package/msu_spec.rb +283 -0
- data/spec/unit/provider/package/powershell_spec.rb +337 -0
- data/spec/unit/provider/service/macosx_spec.rb +1 -1
- data/spec/unit/provider/subversion_spec.rb +9 -0
- data/spec/unit/provider/user/linux_spec.rb +7 -1
- data/spec/unit/recipe_spec.rb +43 -11
- data/spec/unit/resource/apt_update_spec.rb +17 -25
- data/spec/unit/resource/file/verification_spec.rb +1 -1
- data/spec/unit/resource/mount_spec.rb +2 -1
- data/spec/unit/resource/msu_package_spec.rb +49 -0
- data/spec/unit/resource/ohai_spec.rb +1 -1
- data/spec/unit/resource/powershell_package_spec.rb +68 -0
- data/spec/unit/resource_reporter_spec.rb +4 -4
- data/spec/unit/run_status_spec.rb +1 -1
- data/tasks/announce.rb +58 -0
- data/tasks/changelog.rb +26 -6
- data/tasks/templates/prerelease.md.erb +35 -0
- data/tasks/templates/release.md.erb +34 -0
- metadata +21 -4
@@ -24,35 +24,27 @@ describe Chef::Resource::AptUpdate do
|
|
24
24
|
let(:run_context) { Chef::RunContext.new(node, {}, events) }
|
25
25
|
let(:resource) { Chef::Resource::AptUpdate.new("update", run_context) }
|
26
26
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
end
|
32
|
-
|
33
|
-
it "the default frequency should be 1 day" do
|
34
|
-
expect(resource.frequency).to eql(86_400)
|
35
|
-
end
|
27
|
+
it "should create a new Chef::Resource::AptUpdate" do
|
28
|
+
expect(resource).to be_a_kind_of(Chef::Resource)
|
29
|
+
expect(resource).to be_a_kind_of(Chef::Resource::AptUpdate)
|
30
|
+
end
|
36
31
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
end
|
32
|
+
it "the default frequency should be 1 day" do
|
33
|
+
expect(resource.frequency).to eql(86_400)
|
34
|
+
end
|
41
35
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
36
|
+
it "the frequency should accept integers" do
|
37
|
+
resource.frequency(400)
|
38
|
+
expect(resource.frequency).to eql(400)
|
39
|
+
end
|
46
40
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
end
|
41
|
+
it "should resolve to a Noop class when apt-get is not found" do
|
42
|
+
expect(Chef::Provider::AptUpdate).to receive(:which).with("apt-get").and_return(false)
|
43
|
+
expect(resource.provider_for_action(:add)).to be_a(Chef::Provider::Noop)
|
51
44
|
end
|
52
45
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
end
|
46
|
+
it "should resolve to a AptUpdate class when apt-get is found" do
|
47
|
+
expect(Chef::Provider::AptUpdate).to receive(:which).with("apt-get").and_return(true)
|
48
|
+
expect(resource.provider_for_action(:add)).to be_a(Chef::Provider::AptUpdate)
|
57
49
|
end
|
58
50
|
end
|
@@ -88,7 +88,7 @@ describe Chef::Resource::File::Verification do
|
|
88
88
|
end
|
89
89
|
|
90
90
|
it "warns about deprecation when \%{file} is used" do
|
91
|
-
expect(Chef
|
91
|
+
expect(Chef).to receive(:deprecated).with(:verify_file, /%{file} is deprecated/)
|
92
92
|
test_command = platform_specific_verify_command("file")
|
93
93
|
Chef::Resource::File::Verification.new(parent_resource, test_command, {})
|
94
94
|
.verify(temp_path)
|
@@ -41,9 +41,10 @@ describe Chef::Resource::Mount do
|
|
41
41
|
expect(@resource.action).to eql([:mount])
|
42
42
|
end
|
43
43
|
|
44
|
-
it "should accept mount, umount and remount as actions" do
|
44
|
+
it "should accept mount, umount, unmount and remount as actions" do
|
45
45
|
expect { @resource.action :mount }.not_to raise_error
|
46
46
|
expect { @resource.action :umount }.not_to raise_error
|
47
|
+
expect { @resource.action :unmount }.not_to raise_error
|
47
48
|
expect { @resource.action :remount }.not_to raise_error
|
48
49
|
expect { @resource.action :brooklyn }.to raise_error(ArgumentError)
|
49
50
|
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
#
|
2
|
+
# Author:: Nimisha Sharad (<nimisha.sharad@msystechnologies.com>)
|
3
|
+
# Copyright:: Copyright 2008-2016, Chef Software, Inc.
|
4
|
+
# License:: Apache License, Version 2.0
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require "spec_helper"
|
20
|
+
|
21
|
+
describe Chef::Resource::MsuPackage do
|
22
|
+
let(:resource) { Chef::Resource::MsuPackage.new("test_pkg") }
|
23
|
+
|
24
|
+
it "creates a new Chef::Resource::MsuPackage" do
|
25
|
+
expect(resource).to be_a_kind_of(Chef::Resource)
|
26
|
+
expect(resource).to be_a_kind_of(Chef::Resource::Package)
|
27
|
+
expect(resource).to be_a_instance_of(Chef::Resource::MsuPackage)
|
28
|
+
end
|
29
|
+
|
30
|
+
it "sets resource name as :msu_package" do
|
31
|
+
expect(resource.resource_name).to eql(:msu_package)
|
32
|
+
end
|
33
|
+
|
34
|
+
it "sets the source as it's name" do
|
35
|
+
expect(resource.source).to eql("test_pkg")
|
36
|
+
end
|
37
|
+
|
38
|
+
it "sets the default action as :install" do
|
39
|
+
expect(resource.action).to eql(:install)
|
40
|
+
end
|
41
|
+
|
42
|
+
it "raises error if invalid action is given" do
|
43
|
+
expect { resource.action "abc" }.to raise_error(Chef::Exceptions::ValidationFailed)
|
44
|
+
end
|
45
|
+
|
46
|
+
it "coerce its name to a package_name" do
|
47
|
+
expect(resource.package_name).to eql("test_pkg")
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
#
|
2
|
+
# Author:: Dheeraj Dubey(<dheeraj.dubey@msystechnologies.com>)
|
3
|
+
# Copyright:: Copyright 2008-2016, Chef Software, Inc.
|
4
|
+
# License:: Apache License, Version 2.0
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require "spec_helper"
|
20
|
+
|
21
|
+
describe Chef::Resource::PowershellPackage do
|
22
|
+
|
23
|
+
let(:resource) { Chef::Resource::PowershellPackage.new("test_package") }
|
24
|
+
|
25
|
+
it "should create a new Chef::Resource::PowershellPackage" do
|
26
|
+
expect(resource).to be_a_kind_of(Chef::Resource)
|
27
|
+
expect(resource).to be_a_kind_of(Chef::Resource::Package)
|
28
|
+
expect(resource).to be_a_instance_of(Chef::Resource::PowershellPackage)
|
29
|
+
end
|
30
|
+
|
31
|
+
#to check the value of resource.resource_name
|
32
|
+
it "should have a resource name of :python" do
|
33
|
+
expect(resource.resource_name).to eql(:powershell_package)
|
34
|
+
end
|
35
|
+
|
36
|
+
it "should coerce its name to a package_name array" do
|
37
|
+
expect(resource.package_name).to eql(["test_package"])
|
38
|
+
end
|
39
|
+
|
40
|
+
it "the package_name setter should coerce to arrays" do
|
41
|
+
resource.package_name("git")
|
42
|
+
expect(resource.package_name).to eql(["git"])
|
43
|
+
end
|
44
|
+
|
45
|
+
it "the package_name setter should accept arrays" do
|
46
|
+
resource.package_name(%w{git unzip})
|
47
|
+
expect(resource.package_name).to eql(%w{git unzip})
|
48
|
+
end
|
49
|
+
|
50
|
+
it "the name should accept arrays" do
|
51
|
+
resource = Chef::Resource::PowershellPackage.new(%w{git unzip})
|
52
|
+
expect(resource.package_name).to eql(%w{git unzip})
|
53
|
+
end
|
54
|
+
|
55
|
+
it "the default version should be nil" do
|
56
|
+
expect(resource.version).to eql(nil)
|
57
|
+
end
|
58
|
+
|
59
|
+
it "the version setter should coerce to arrays" do
|
60
|
+
resource.version("1.2.3")
|
61
|
+
expect(resource.version).to eql(["1.2.3"])
|
62
|
+
end
|
63
|
+
|
64
|
+
it "the version setter should accept arrays" do
|
65
|
+
resource.version(["1.2.3", "4.5.6"])
|
66
|
+
expect(resource.version).to eql(["1.2.3", "4.5.6"])
|
67
|
+
end
|
68
|
+
end
|
@@ -92,8 +92,8 @@ describe Chef::ResourceReporter do
|
|
92
92
|
|
93
93
|
context "when chef fails" do
|
94
94
|
before do
|
95
|
-
allow(@rest_client).to receive(:raw_request).and_return({ "result" => "ok" })
|
96
|
-
allow(@rest_client).to receive(:post).and_return({ "uri" => "https://example.com/reports/nodes/spitfire/runs/#{@run_id}" })
|
95
|
+
allow(@rest_client).to receive(:raw_request).and_return({ "result" => "ok" })
|
96
|
+
allow(@rest_client).to receive(:post).and_return({ "uri" => "https://example.com/reports/nodes/spitfire/runs/#{@run_id}" })
|
97
97
|
|
98
98
|
end
|
99
99
|
|
@@ -259,8 +259,8 @@ describe Chef::ResourceReporter do
|
|
259
259
|
describe "when generating a report for the server" do
|
260
260
|
|
261
261
|
before do
|
262
|
-
allow(@rest_client).to receive(:raw_request).and_return({ "result" => "ok" })
|
263
|
-
allow(@rest_client).to receive(:post).and_return({ "uri" => "https://example.com/reports/nodes/spitfire/runs/#{@run_id}" })
|
262
|
+
allow(@rest_client).to receive(:raw_request).and_return({ "result" => "ok" })
|
263
|
+
allow(@rest_client).to receive(:post).and_return({ "uri" => "https://example.com/reports/nodes/spitfire/runs/#{@run_id}" })
|
264
264
|
|
265
265
|
@resource_reporter.run_started(@run_status)
|
266
266
|
end
|
data/tasks/announce.rb
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
#
|
2
|
+
# Copyright:: Copyright (c) 2016 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 "date"
|
19
|
+
require "erb"
|
20
|
+
|
21
|
+
class ReleaseAnnouncement
|
22
|
+
include ERB::Util
|
23
|
+
attr_accessor :type, :version, :maj_minor, :date, :release_notes
|
24
|
+
|
25
|
+
def initialize(version, date, type)
|
26
|
+
@version = version
|
27
|
+
@maj_minor = version.split(".")[0..1].join(".")
|
28
|
+
@date = Date.parse(date) unless date.nil?
|
29
|
+
@release_notes = release_notes_from_file
|
30
|
+
@type = type
|
31
|
+
end
|
32
|
+
|
33
|
+
def render
|
34
|
+
puts "-" * 30
|
35
|
+
puts ERB.new(template_for(@type)).result(binding)
|
36
|
+
puts "-" * 30
|
37
|
+
end
|
38
|
+
|
39
|
+
def template_for(type)
|
40
|
+
File.read("tasks/templates/#{type}.md.erb")
|
41
|
+
end
|
42
|
+
|
43
|
+
def release_notes_from_file
|
44
|
+
File.read("RELEASE_NOTES.md").match(/^# Chef Client Release Notes #{@maj_minor}:\n\n(.*)/m)[1]
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
namespace :announce do
|
49
|
+
desc "Generate the Prerelease Announcement (version: X.Y.Z, release_date: YYYY-MM-DD)"
|
50
|
+
task :prerelease, :version, :release_date do |t, args|
|
51
|
+
ReleaseAnnouncement.new(args[:version], args[:release_date], "prerelease").render
|
52
|
+
end
|
53
|
+
|
54
|
+
desc "Generate the Release Announcement (version: X.Y.Z)"
|
55
|
+
task :release, :version do |t, args|
|
56
|
+
ReleaseAnnouncement.new(args[:version], nil, "release").render
|
57
|
+
end
|
58
|
+
end
|
data/tasks/changelog.rb
CHANGED
@@ -1,13 +1,33 @@
|
|
1
1
|
begin
|
2
2
|
require "github_changelog_generator/task"
|
3
|
+
require "mixlib/install"
|
3
4
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
namespace :changelog do
|
6
|
+
# Fetch the latest version from mixlib-install
|
7
|
+
latest_stable_version = Mixlib::Install.available_versions("chef", "stable").last
|
8
|
+
|
9
|
+
# Take the changelog from the latest stable release and put it into history.
|
10
|
+
task :archive do
|
11
|
+
changelog = Net::HTTP.get(URI("https://raw.githubusercontent.com/chef/chef/v#{latest_stable_version}/CHANGELOG.md")).chomp.split("\n")
|
12
|
+
File.open("HISTORY.md", "w+") { |f| f.write(changelog[2..-4].join("\n")) }
|
13
|
+
end
|
14
|
+
|
15
|
+
# Run this to just update the changelog for the current release. This will
|
16
|
+
# take what is in HISTORY and generate a changelog of PRs between the most
|
17
|
+
# recent stable version and HEAD.
|
18
|
+
GitHubChangelogGenerator::RakeTask.new :update do |config|
|
19
|
+
config.future_release = "v#{Chef::VERSION}"
|
20
|
+
config.between_tags = ["v#{latest_stable_version}", "v#{Chef::VERSION}"]
|
21
|
+
config.max_issues = 0
|
22
|
+
config.add_issues_wo_labels = false
|
23
|
+
config.enhancement_labels = "enhancement,Enhancement,New Feature,Feature".split(",")
|
24
|
+
config.bug_labels = "bug,Bug,Improvement,Upstream Bug".split(",")
|
25
|
+
config.exclude_labels = "duplicate,question,invalid,wontfix,no_changelog,Exclude From Changelog,Question,Discussion".split(",")
|
26
|
+
config.header = "This changelog reflects the current state of chef's master branch on github and may not reflect the current released version of chef, which is [![Gem Version](https://badge.fury.io/rb/chef.svg)](https://badge.fury.io/rb/chef)."
|
27
|
+
end
|
10
28
|
end
|
29
|
+
|
30
|
+
task :changelog => "changelog:update"
|
11
31
|
rescue LoadError
|
12
32
|
puts "github_changelog_generator is not available. gem install github_changelog_generator to generate changelogs"
|
13
33
|
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
Ohai Chefs!
|
2
|
+
|
3
|
+
We have selected <%= @version %> as our Chef v<%= @maj_minor %> release candidate which is scheduled for release on <%= @date.strftime('%A %B %-d, %Y') %>.
|
4
|
+
|
5
|
+
# Release Highlights
|
6
|
+
|
7
|
+
<%= @release_notes %>
|
8
|
+
|
9
|
+
Please see the [CHANGELOG](https://github.com/chef/chef/blob/master/CHANGELOG.md) for the complete list of changes.
|
10
|
+
|
11
|
+
# Get the Build
|
12
|
+
As always, you can download binaries directly from [downloads.chef.io](https://downloads.chef.io/chef-client) or by using the new `mixlib-install` command line utility available in ChefDK 0.19.6 or greater.
|
13
|
+
|
14
|
+
```shell
|
15
|
+
$ mixlib-install download chef -v <%= @version %> -c current
|
16
|
+
```
|
17
|
+
|
18
|
+
Alternatively, you can install Chef using one of the following command options:
|
19
|
+
|
20
|
+
```shell
|
21
|
+
# In Shell
|
22
|
+
$ curl https://omnitruck.chef.io/install.sh | sudo bash -s -- -P chef -v <%= @version %> -c current
|
23
|
+
|
24
|
+
# In Windows Powershell
|
25
|
+
. { iwr -useb https://omnitruck.chef.io/install.ps1 } | iex; install -project chef -version <%= @version %> -channel current
|
26
|
+
```
|
27
|
+
|
28
|
+
If you want to give this version a spin in Test Kitchen, create or add the following to a `.kitchen.local.yml` file:
|
29
|
+
|
30
|
+
```yaml
|
31
|
+
provisioner:
|
32
|
+
product_name: chef
|
33
|
+
channel: current
|
34
|
+
product_version: <%= @version %>
|
35
|
+
```
|
@@ -0,0 +1,34 @@
|
|
1
|
+
Ohai Chefs!
|
2
|
+
|
3
|
+
We're happy to announce the release of Chef v<%= @maj_minor %>!
|
4
|
+
|
5
|
+
# Release Highlights
|
6
|
+
|
7
|
+
<%= @release_notes %>
|
8
|
+
|
9
|
+
Please see the [CHANGELOG](https://github.com/chef/chef/blob/master/CHANGELOG.md) for the complete list of changes.
|
10
|
+
|
11
|
+
# Get the Build
|
12
|
+
As always, you can download binaries directly from [downloads.chef.io](https://downloads.chef.io/chef-client) or by using the new `mixlib-install` command line utility available in ChefDK 0.19.6 or greater.
|
13
|
+
|
14
|
+
```shell
|
15
|
+
$ mixlib-install download chef -v <%= @version %>
|
16
|
+
```
|
17
|
+
|
18
|
+
Alternatively, you can install Chef using one of the following command options:
|
19
|
+
|
20
|
+
```shell
|
21
|
+
# In Shell
|
22
|
+
$ curl https://omnitruck.chef.io/install.sh | sudo bash -s -- -P chef -v <%= @version %>
|
23
|
+
|
24
|
+
# In Windows Powershell
|
25
|
+
. { iwr -useb https://omnitruck.chef.io/install.ps1 } | iex; install -project chef -version <%= @version %>
|
26
|
+
```
|
27
|
+
|
28
|
+
If you want to give this version a spin in Test Kitchen, create or add the following to a `.kitchen.local.yml` file:
|
29
|
+
|
30
|
+
```yaml
|
31
|
+
provisioner:
|
32
|
+
product_name: chef
|
33
|
+
product_version: <%= @version %>
|
34
|
+
```
|
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: 12.
|
4
|
+
version: 12.17.44
|
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: 2016-
|
11
|
+
date: 2016-12-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: 12.
|
19
|
+
version: 12.17.44
|
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: 12.
|
26
|
+
version: 12.17.44
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mixlib-cli
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1041,6 +1041,7 @@ files:
|
|
1041
1041
|
- lib/chef/decorator/lazy_array.rb
|
1042
1042
|
- lib/chef/decorator/unchain.rb
|
1043
1043
|
- lib/chef/delayed_evaluator.rb
|
1044
|
+
- lib/chef/deprecated.rb
|
1044
1045
|
- lib/chef/deprecation/mixin/template.rb
|
1045
1046
|
- lib/chef/deprecation/provider/cookbook_file.rb
|
1046
1047
|
- lib/chef/deprecation/provider/file.rb
|
@@ -1433,10 +1434,12 @@ files:
|
|
1433
1434
|
- lib/chef/provider/package/homebrew.rb
|
1434
1435
|
- lib/chef/provider/package/ips.rb
|
1435
1436
|
- lib/chef/provider/package/macports.rb
|
1437
|
+
- lib/chef/provider/package/msu.rb
|
1436
1438
|
- lib/chef/provider/package/openbsd.rb
|
1437
1439
|
- lib/chef/provider/package/pacman.rb
|
1438
1440
|
- lib/chef/provider/package/paludis.rb
|
1439
1441
|
- lib/chef/provider/package/portage.rb
|
1442
|
+
- lib/chef/provider/package/powershell.rb
|
1440
1443
|
- lib/chef/provider/package/rpm.rb
|
1441
1444
|
- lib/chef/provider/package/rubygems.rb
|
1442
1445
|
- lib/chef/provider/package/smartos.rb
|
@@ -1553,6 +1556,7 @@ files:
|
|
1553
1556
|
- lib/chef/resource/macports_package.rb
|
1554
1557
|
- lib/chef/resource/mdadm.rb
|
1555
1558
|
- lib/chef/resource/mount.rb
|
1559
|
+
- lib/chef/resource/msu_package.rb
|
1556
1560
|
- lib/chef/resource/ohai.rb
|
1557
1561
|
- lib/chef/resource/openbsd_package.rb
|
1558
1562
|
- lib/chef/resource/osx_profile.rb
|
@@ -1561,6 +1565,7 @@ files:
|
|
1561
1565
|
- lib/chef/resource/paludis_package.rb
|
1562
1566
|
- lib/chef/resource/perl.rb
|
1563
1567
|
- lib/chef/resource/portage_package.rb
|
1568
|
+
- lib/chef/resource/powershell_package.rb
|
1564
1569
|
- lib/chef/resource/powershell_script.rb
|
1565
1570
|
- lib/chef/resource/python.rb
|
1566
1571
|
- lib/chef/resource/reboot.rb
|
@@ -1983,6 +1988,9 @@ files:
|
|
1983
1988
|
- spec/data/run_context/cookbooks/test/recipes/two.rb
|
1984
1989
|
- spec/data/run_context/cookbooks/test/resources/resource.rb
|
1985
1990
|
- spec/data/run_context/nodes/run_context.rb
|
1991
|
+
- spec/data/sample_msu1.xml
|
1992
|
+
- spec/data/sample_msu2.xml
|
1993
|
+
- spec/data/sample_msu3.xml
|
1986
1994
|
- spec/data/search_queries_to_transform.txt
|
1987
1995
|
- spec/data/shef-config.rb
|
1988
1996
|
- spec/data/ssl/5e707473.0
|
@@ -2058,6 +2066,7 @@ files:
|
|
2058
2066
|
- spec/functional/resource/ifconfig_spec.rb
|
2059
2067
|
- spec/functional/resource/link_spec.rb
|
2060
2068
|
- spec/functional/resource/mount_spec.rb
|
2069
|
+
- spec/functional/resource/msu_package_spec.rb
|
2061
2070
|
- spec/functional/resource/ohai_spec.rb
|
2062
2071
|
- spec/functional/resource/package_spec.rb
|
2063
2072
|
- spec/functional/resource/powershell_script_spec.rb
|
@@ -2273,6 +2282,7 @@ files:
|
|
2273
2282
|
- spec/unit/decorator/lazy_array_spec.rb
|
2274
2283
|
- spec/unit/decorator/lazy_spec.rb
|
2275
2284
|
- spec/unit/decorator_spec.rb
|
2285
|
+
- spec/unit/deprecated_spec.rb
|
2276
2286
|
- spec/unit/deprecation_spec.rb
|
2277
2287
|
- spec/unit/digester_spec.rb
|
2278
2288
|
- spec/unit/dsl/audit_spec.rb
|
@@ -2527,10 +2537,12 @@ files:
|
|
2527
2537
|
- spec/unit/provider/package/homebrew_spec.rb
|
2528
2538
|
- spec/unit/provider/package/ips_spec.rb
|
2529
2539
|
- spec/unit/provider/package/macports_spec.rb
|
2540
|
+
- spec/unit/provider/package/msu_spec.rb
|
2530
2541
|
- spec/unit/provider/package/openbsd_spec.rb
|
2531
2542
|
- spec/unit/provider/package/pacman_spec.rb
|
2532
2543
|
- spec/unit/provider/package/paludis_spec.rb
|
2533
2544
|
- spec/unit/provider/package/portage_spec.rb
|
2545
|
+
- spec/unit/provider/package/powershell_spec.rb
|
2534
2546
|
- spec/unit/provider/package/rpm_spec.rb
|
2535
2547
|
- spec/unit/provider/package/rubygems_spec.rb
|
2536
2548
|
- spec/unit/provider/package/smartos_spec.rb
|
@@ -2632,6 +2644,7 @@ files:
|
|
2632
2644
|
- spec/unit/resource/macports_package_spec.rb
|
2633
2645
|
- spec/unit/resource/mdadm_spec.rb
|
2634
2646
|
- spec/unit/resource/mount_spec.rb
|
2647
|
+
- spec/unit/resource/msu_package_spec.rb
|
2635
2648
|
- spec/unit/resource/ohai_spec.rb
|
2636
2649
|
- spec/unit/resource/openbsd_package_spec.rb
|
2637
2650
|
- spec/unit/resource/osx_profile_spec.rb
|
@@ -2639,6 +2652,7 @@ files:
|
|
2639
2652
|
- spec/unit/resource/pacman_package_spec.rb
|
2640
2653
|
- spec/unit/resource/perl_spec.rb
|
2641
2654
|
- spec/unit/resource/portage_package_spec.rb
|
2655
|
+
- spec/unit/resource/powershell_package_spec.rb
|
2642
2656
|
- spec/unit/resource/powershell_script_spec.rb
|
2643
2657
|
- spec/unit/resource/python_spec.rb
|
2644
2658
|
- spec/unit/resource/registry_key_spec.rb
|
@@ -2713,6 +2727,7 @@ files:
|
|
2713
2727
|
- spec/unit/version_constraint_spec.rb
|
2714
2728
|
- spec/unit/win32/registry_spec.rb
|
2715
2729
|
- spec/unit/windows_service_spec.rb
|
2730
|
+
- tasks/announce.rb
|
2716
2731
|
- tasks/bin/bundle-platform
|
2717
2732
|
- tasks/bin/bundle-platform.bat
|
2718
2733
|
- tasks/bin/bundler_patch.rb
|
@@ -2727,6 +2742,8 @@ files:
|
|
2727
2742
|
- tasks/gemfile_util.rb
|
2728
2743
|
- tasks/maintainers.rb
|
2729
2744
|
- tasks/rspec.rb
|
2745
|
+
- tasks/templates/prerelease.md.erb
|
2746
|
+
- tasks/templates/release.md.erb
|
2730
2747
|
homepage: http://www.chef.io
|
2731
2748
|
licenses:
|
2732
2749
|
- Apache-2.0
|