chef 14.4.56 → 14.5.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +0 -1
- data/VERSION +1 -1
- data/lib/.DS_Store +0 -0
- data/lib/chef/.DS_Store +0 -0
- data/lib/chef/client.rb +1 -1
- data/lib/chef/cookbook_version.rb +2 -2
- data/lib/chef/mixin/powershell_out.rb +1 -1
- data/lib/chef/node_map.rb +4 -10
- data/lib/chef/provider/.DS_Store +0 -0
- data/lib/chef/provider/dsc_resource.rb +2 -2
- data/lib/chef/provider/dsc_script.rb +4 -4
- data/lib/chef/provider/package/powershell.rb +1 -1
- data/lib/chef/provider/powershell_script.rb +3 -3
- data/lib/chef/provider/script.rb +2 -2
- data/lib/chef/resource/apt_package.rb +1 -0
- data/lib/chef/resource/apt_repository.rb +1 -1
- data/lib/chef/resource/build_essential.rb +38 -38
- data/lib/chef/resource/chef_gem.rb +4 -1
- data/lib/chef/resource/chocolatey_package.rb +2 -1
- data/lib/chef/resource/directory.rb +6 -2
- data/lib/chef/resource/dmg_package.rb +1 -4
- data/lib/chef/resource/dnf_package.rb +20 -23
- data/lib/chef/resource/dpkg_package.rb +1 -3
- data/lib/chef/resource/dsc_resource.rb +2 -5
- data/lib/chef/resource/dsc_script.rb +1 -8
- data/lib/chef/resource/execute.rb +4 -1
- data/lib/chef/resource/gem_package.rb +17 -19
- data/lib/chef/resource/git.rb +4 -4
- data/lib/chef/resource/homebrew_cask.rb +2 -2
- data/lib/chef/resource/homebrew_tap.rb +3 -3
- data/lib/chef/resource/hostname.rb +4 -4
- data/lib/chef/resource/http_request.rb +1 -3
- data/lib/chef/resource/ifconfig.rb +1 -1
- data/lib/chef/resource/locale.rb +93 -0
- data/lib/chef/resource/macos_userdefaults.rb +2 -4
- data/lib/chef/resource/macosx_service.rb +2 -3
- data/lib/chef/resource/mount.rb +45 -18
- data/lib/chef/resource/msu_package.rb +10 -7
- data/lib/chef/resource/ohai.rb +2 -4
- data/lib/chef/resource/ohai_hint.rb +3 -3
- data/lib/chef/resource/openssl_dhparam.rb +5 -5
- data/lib/chef/resource/openssl_ec_private_key.rb +5 -5
- data/lib/chef/resource/openssl_ec_public_key.rb +5 -5
- data/lib/chef/resource/openssl_rsa_private_key.rb +6 -6
- data/lib/chef/resource/openssl_rsa_public_key.rb +7 -7
- data/lib/chef/resource/openssl_x509_certificate.rb +11 -11
- data/lib/chef/resource/openssl_x509_crl.rb +2 -2
- data/lib/chef/resource/openssl_x509_request.rb +7 -7
- data/lib/chef/resource/osx_profile.rb +13 -8
- data/lib/chef/resource/package.rb +26 -8
- data/lib/chef/resource/paludis_package.rb +3 -1
- data/lib/chef/resource/portage_package.rb +2 -1
- data/lib/chef/resource/powershell_package.rb +17 -9
- data/lib/chef/resource/powershell_package_source.rb +1 -1
- data/lib/chef/resource/reboot.rb +7 -2
- data/lib/chef/resource/rhsm_errata_level.rb +1 -3
- data/lib/chef/resource/route.rb +1 -1
- data/lib/chef/resource/scm.rb +42 -14
- data/lib/chef/resource/subversion.rb +7 -0
- data/lib/chef/resource/sudo.rb +7 -7
- data/lib/chef/resource/swap_file.rb +2 -2
- data/lib/chef/resource/sysctl.rb +1 -1
- data/lib/chef/resource/systemd_unit.rb +2 -1
- data/lib/chef/resource/windows_ad_join.rb +9 -4
- data/lib/chef/resource/windows_auto_run.rb +5 -5
- data/lib/chef/resource/windows_env.rb +1 -3
- data/lib/chef/resource/windows_feature_dism.rb +4 -5
- data/lib/chef/resource/windows_font.rb +3 -5
- data/lib/chef/resource/windows_package.rb +1 -2
- data/lib/chef/resource/windows_printer.rb +7 -9
- data/lib/chef/resource/windows_printer_port.rb +1 -1
- data/lib/chef/resource/windows_service.rb +26 -21
- data/lib/chef/resource/windows_shortcut.rb +4 -4
- data/lib/chef/resource/windows_task.rb +82 -36
- data/lib/chef/resource/windows_workgroup.rb +101 -0
- data/lib/chef/resource/yum_package.rb +30 -20
- data/lib/chef/resource/yum_repository.rb +134 -45
- data/lib/chef/resource/zypper_package.rb +8 -4
- data/lib/chef/resource/zypper_repository.rb +58 -20
- data/lib/chef/resource_inspector.rb +5 -3
- data/lib/chef/resources.rb +2 -0
- data/lib/chef/util/powershell/cmdlet.rb +1 -1
- data/lib/chef/version.rb +1 -1
- data/spec/functional/resource/dsc_resource_spec.rb +3 -3
- data/spec/functional/resource/powershell_script_spec.rb +2 -2
- data/spec/functional/win32/crypto_spec.rb +1 -1
- data/spec/unit/cookbook_version_file_specificity_spec.rb +20 -0
- data/spec/unit/node_map_spec.rb +3 -3
- data/spec/unit/platform/query_helpers_spec.rb +4 -4
- data/spec/unit/provider/dsc_resource_spec.rb +2 -2
- data/spec/unit/provider/dsc_script_spec.rb +1 -1
- data/spec/unit/resource/dsc_resource_spec.rb +1 -1
- data/spec/unit/resource/locale_spec.rb +60 -0
- data/spec/unit/resource/scm_spec.rb +0 -10
- data/spec/unit/resource/windows_workgroup_spec.rb +47 -0
- data/tasks/dependencies.rb +2 -22
- data/tasks/templates/prerelease.md.erb +2 -2
- data/tasks/templates/release.md.erb +1 -1
- metadata +8 -5
- data/tasks/cbgb.rb +0 -84
data/tasks/dependencies.rb
CHANGED
@@ -20,24 +20,9 @@ require "bundler"
|
|
20
20
|
desc "Tasks to update and check dependencies"
|
21
21
|
namespace :dependencies do
|
22
22
|
|
23
|
-
# Running update_ci on your local system wont' work. The best way to update
|
24
|
-
# dependencies locally is by running the dependency update script.
|
25
|
-
desc "Update all dependencies. dependencies:update to update as little as possible."
|
26
|
-
task :update do |t, rake_args|
|
27
|
-
# FIXME: probably broken, and needs less indirection
|
28
|
-
system((File.join(Dir.pwd, "ci", "dependency_update.sh")).to_s)
|
29
|
-
end
|
30
|
-
|
31
|
-
desc "Force update (when adding new gems to Gemfiles)"
|
32
|
-
task :force_update do |t, rake_args|
|
33
|
-
# FIXME: probably broken, and needs less indirection
|
34
|
-
FileUtils.rm_f(File.join(Dir.pwd, ".bundle", "config"))
|
35
|
-
system((File.join(Dir.pwd, "ci", "dependency_update.sh")).to_s)
|
36
|
-
end
|
37
|
-
|
38
23
|
# Update all dependencies to the latest constraint-matching version
|
39
|
-
desc "Update all dependencies.
|
40
|
-
task
|
24
|
+
desc "Update all dependencies."
|
25
|
+
task update: %w{
|
41
26
|
dependencies:update_gemfile_lock
|
42
27
|
dependencies:update_omnibus_gemfile_lock
|
43
28
|
}
|
@@ -71,8 +56,3 @@ namespace :dependencies do
|
|
71
56
|
bundle_update_locked_multiplatform_task :update_omnibus_gemfile_lock, "omnibus"
|
72
57
|
|
73
58
|
end
|
74
|
-
|
75
|
-
desc "Update all dependencies and check for outdated gems."
|
76
|
-
task dependencies_ci: [ "dependencies:update_ci" ]
|
77
|
-
task dependencies: [ "dependencies:update" ]
|
78
|
-
task update: [ "dependencies:update" ]
|
@@ -9,7 +9,7 @@ We have selected <%= @version %> as our Chef v<%= @maj_minor %> release candidat
|
|
9
9
|
Please see the [CHANGELOG](https://github.com/chef/chef/blob/master/CHANGELOG.md) for the complete list of changes.
|
10
10
|
|
11
11
|
# Get the Build
|
12
|
-
As always, you can download binaries directly from [downloads.chef.io](https://downloads.chef.io/chef/current/<%= @version %>) or by using the
|
12
|
+
As always, you can download binaries directly from [downloads.chef.io](https://downloads.chef.io/chef/current/<%= @version %>) or by using the `mixlib-install` command line utility:
|
13
13
|
|
14
14
|
```shell
|
15
15
|
$ mixlib-install download chef -v <%= @version %> -c current
|
@@ -21,7 +21,7 @@ Alternatively, you can install Chef using one of the following command options:
|
|
21
21
|
# In Shell
|
22
22
|
$ curl https://omnitruck.chef.io/install.sh | sudo bash -s -- -P chef -v <%= @version %> -c current
|
23
23
|
|
24
|
-
# In Windows
|
24
|
+
# In Windows PowerShell
|
25
25
|
. { iwr -useb https://omnitruck.chef.io/install.ps1 } | iex; install -project chef -version <%= @version %> -channel current
|
26
26
|
```
|
27
27
|
|
@@ -9,7 +9,7 @@ We're happy to announce the release of Chef v<%= @maj_minor %>!
|
|
9
9
|
Please see the [CHANGELOG](https://github.com/chef/chef/blob/master/CHANGELOG.md) for the complete list of changes.
|
10
10
|
|
11
11
|
# Get the Build
|
12
|
-
As always, you can download binaries directly from [downloads.chef.io](https://downloads.chef.io/chef/<%= @version %>) or by using the
|
12
|
+
As always, you can download binaries directly from [downloads.chef.io](https://downloads.chef.io/chef/<%= @version %>) or by using the `mixlib-install` command line utility:
|
13
13
|
|
14
14
|
```shell
|
15
15
|
$ mixlib-install download chef -v <%= @version %>
|
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.5.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Jacob
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-21 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.5.27
|
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.5.27
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mixlib-cli
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1207,6 +1207,7 @@ files:
|
|
1207
1207
|
- lib/chef/resource/ksh.rb
|
1208
1208
|
- lib/chef/resource/launchd.rb
|
1209
1209
|
- lib/chef/resource/link.rb
|
1210
|
+
- lib/chef/resource/locale.rb
|
1210
1211
|
- lib/chef/resource/log.rb
|
1211
1212
|
- lib/chef/resource/lwrp_base.rb
|
1212
1213
|
- lib/chef/resource/macos_userdefaults.rb
|
@@ -1290,6 +1291,7 @@ files:
|
|
1290
1291
|
- lib/chef/resource/windows_service.rb
|
1291
1292
|
- lib/chef/resource/windows_shortcut.rb
|
1292
1293
|
- lib/chef/resource/windows_task.rb
|
1294
|
+
- lib/chef/resource/windows_workgroup.rb
|
1293
1295
|
- lib/chef/resource/yum_package.rb
|
1294
1296
|
- lib/chef/resource/yum_repository.rb
|
1295
1297
|
- lib/chef/resource/zypper_package.rb
|
@@ -2429,6 +2431,7 @@ files:
|
|
2429
2431
|
- spec/unit/resource/ksh_spec.rb
|
2430
2432
|
- spec/unit/resource/launchd_spec.rb
|
2431
2433
|
- spec/unit/resource/link_spec.rb
|
2434
|
+
- spec/unit/resource/locale_spec.rb
|
2432
2435
|
- spec/unit/resource/log_spec.rb
|
2433
2436
|
- spec/unit/resource/macos_user_defaults_spec.rb
|
2434
2437
|
- spec/unit/resource/macports_package_spec.rb
|
@@ -2498,6 +2501,7 @@ files:
|
|
2498
2501
|
- spec/unit/resource/windows_service_spec.rb
|
2499
2502
|
- spec/unit/resource/windows_shortcut_spec.rb
|
2500
2503
|
- spec/unit/resource/windows_task_spec.rb
|
2504
|
+
- spec/unit/resource/windows_workgroup_spec.rb
|
2501
2505
|
- spec/unit/resource/yum_package_spec.rb
|
2502
2506
|
- spec/unit/resource/yum_repository_spec.rb
|
2503
2507
|
- spec/unit/resource/zypper_package_spec.rb
|
@@ -2559,7 +2563,6 @@ files:
|
|
2559
2563
|
- tasks/.DS_Store
|
2560
2564
|
- tasks/announce.rb
|
2561
2565
|
- tasks/bin/run_external_test
|
2562
|
-
- tasks/cbgb.rb
|
2563
2566
|
- tasks/dependencies.rb
|
2564
2567
|
- tasks/maintainers.rb
|
2565
2568
|
- tasks/rspec.rb
|
data/tasks/cbgb.rb
DELETED
@@ -1,84 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Author:: Thom May (tmay@chef.io)
|
3
|
-
# Author:: Nathen Harvey (nharvey@chef.io)
|
4
|
-
# Copyright:: Copyright 2015-2016, Chef Software, Inc
|
5
|
-
# License:: Apache License, Version 2.0
|
6
|
-
#
|
7
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
-
# you may not use this file except in compliance with the License.
|
9
|
-
# You may obtain a copy of the License at
|
10
|
-
#
|
11
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
12
|
-
#
|
13
|
-
# Unless required by applicable law or agreed to in writing, software
|
14
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
-
# See the License for the specific language governing permissions and
|
17
|
-
# limitations under the License.
|
18
|
-
#
|
19
|
-
|
20
|
-
require "rake"
|
21
|
-
|
22
|
-
CBGB_SOURCE = File.join(File.dirname(__FILE__), "..", "CBGB.toml")
|
23
|
-
CBGB_TARGET = File.join(File.dirname(__FILE__), "..", "CBGB.md")
|
24
|
-
|
25
|
-
begin
|
26
|
-
require "tomlrb"
|
27
|
-
|
28
|
-
task default: :generate
|
29
|
-
|
30
|
-
namespace :cbgb do
|
31
|
-
desc "Generate MarkDown version of CBGB file"
|
32
|
-
task :generate do
|
33
|
-
cbgb = Tomlrb.load_file CBGB_SOURCE
|
34
|
-
out = "<!-- This is a generated file. Please do not edit directly -->\n"
|
35
|
-
out << "<!-- Modify CBGB.toml file and run `rake cbgb:generate` to regenerate -->\n\n"
|
36
|
-
out << "# " + cbgb["Preamble"]["title"] + "\n\n"
|
37
|
-
out << cbgb["Preamble"]["text"] + "\n"
|
38
|
-
out << "# Board of Governors\n\n"
|
39
|
-
out << "## " + cbgb["Org"]["Lead"]["title"] + "\n\n"
|
40
|
-
out << person(cbgb["people"], cbgb["Org"]["Lead"]["person"]) + "\n\n"
|
41
|
-
out << "### " + cbgb["Org"]["Contributors"]["title"] + "\n\n"
|
42
|
-
out << cbgb(cbgb["people"], cbgb["Org"]["Contributors"]["governers"]) + "\n\n"
|
43
|
-
out << "### " + cbgb["Org"]["Corporate-Contributors"]["title"] + "\n\n"
|
44
|
-
out << cbgb(cbgb["corporations"], cbgb["Org"]["Corporate-Contributors"]["governers"]) + "\n\n"
|
45
|
-
out << "### " + cbgb["Org"]["Lieutenants"]["title"] + "\n\n"
|
46
|
-
out << cbgb(cbgb["people"], cbgb["Org"]["Lieutenants"]["governers"]) + "\n\n"
|
47
|
-
File.open(CBGB_TARGET, "w") do |fn|
|
48
|
-
fn.write out
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
def components(list, cmp)
|
54
|
-
out = ""
|
55
|
-
cmp.each_value do |v|
|
56
|
-
out << "\n#### #{v['title'].gsub('#', '\\#')}\n"
|
57
|
-
out << cbgb(list, v["cbgb"])
|
58
|
-
end
|
59
|
-
out
|
60
|
-
end
|
61
|
-
|
62
|
-
def cbgb(list, people)
|
63
|
-
o = ""
|
64
|
-
people.each do |p|
|
65
|
-
o << person(list, p) + "\n"
|
66
|
-
end
|
67
|
-
o
|
68
|
-
end
|
69
|
-
|
70
|
-
def person(list, person)
|
71
|
-
if list[person].key?("GitHub")
|
72
|
-
out = "* [#{list[person]["Name"]}](https://github.com/#{list[person]["GitHub"]})"
|
73
|
-
else
|
74
|
-
out = "* #{list[person]["Name"]}"
|
75
|
-
end
|
76
|
-
if list[person].key?("Person")
|
77
|
-
out << " - #{list[person]["Person"]}"
|
78
|
-
end
|
79
|
-
out
|
80
|
-
end
|
81
|
-
|
82
|
-
rescue LoadError
|
83
|
-
STDERR.puts "\n*** TomlRb not available.\n\n"
|
84
|
-
end
|