chef 15.14.0 → 15.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/chef.gemspec +9 -0
- data/lib/chef/resource/cron_d.rb +1 -0
- data/lib/chef/resource/homebrew_cask.rb +3 -3
- data/lib/chef/resource/locale.rb +1 -1
- data/lib/chef/version.rb +1 -1
- data/spec/functional/shell_spec.rb +5 -5
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcc08d354ca7fa1200a0eb3cac4c86bec517ceb346a0f2bc023b1f9abaf87920
|
4
|
+
data.tar.gz: bf949036d55a3ec0ea2892f952d0ad5eab0044e6d6848af805ac39798e17b6d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9547afde6d37ca3b3eaa6b3c87c7e6130996d001a8d9895385bcdd26a17bc88e9680cc95ca4dbfdb3ac2dfbc1ede68c022fc5b97c7694acfdb8334a0d1e6e9cb
|
7
|
+
data.tar.gz: 223528572bf22ca87d57dd90755fdc5a61dc7f70e1655124928e055d9b36403a3388518ae068fde648ce543834c3d620a60c10b4789aa74e9e8735b86c35a5f2
|
data/chef.gemspec
CHANGED
@@ -62,4 +62,13 @@ Gem::Specification.new do |s|
|
|
62
62
|
Dir.glob("{lib,spec}/**/*", File::FNM_DOTMATCH).reject { |f| File.directory?(f) } +
|
63
63
|
Dir.glob("*.gemspec") +
|
64
64
|
Dir.glob("tasks/rspec.rb")
|
65
|
+
|
66
|
+
s.metadata = {
|
67
|
+
"bug_tracker_uri" => "https://github.com/chef/chef/issues",
|
68
|
+
"changelog_uri" => "https://github.com/chef/chef/blob/master/CHANGELOG.md",
|
69
|
+
"documentation_uri" => "https://docs.chef.io/",
|
70
|
+
"homepage_uri" => "https://www.chef.io",
|
71
|
+
"mailing_list_uri" => "https://discourse.chef.io/",
|
72
|
+
"source_code_uri" => "https://github.com/chef/chef/",
|
73
|
+
}
|
65
74
|
end
|
data/lib/chef/resource/cron_d.rb
CHANGED
@@ -59,7 +59,7 @@ class Chef
|
|
59
59
|
|
60
60
|
unless casked?
|
61
61
|
converge_by("install cask #{new_resource.cask_name} #{new_resource.options}") do
|
62
|
-
shell_out!("#{new_resource.homebrew_path} cask
|
62
|
+
shell_out!("#{new_resource.homebrew_path} install --cask #{new_resource.cask_name} #{new_resource.options}",
|
63
63
|
user: new_resource.owner,
|
64
64
|
env: { "HOME" => ::Dir.home(new_resource.owner), "USER" => new_resource.owner },
|
65
65
|
cwd: ::Dir.home(new_resource.owner))
|
@@ -74,7 +74,7 @@ class Chef
|
|
74
74
|
|
75
75
|
if casked?
|
76
76
|
converge_by("uninstall cask #{new_resource.cask_name}") do
|
77
|
-
shell_out!("#{new_resource.homebrew_path} cask
|
77
|
+
shell_out!("#{new_resource.homebrew_path} uninstall --cask #{new_resource.cask_name}",
|
78
78
|
user: new_resource.owner,
|
79
79
|
env: { "HOME" => ::Dir.home(new_resource.owner), "USER" => new_resource.owner },
|
80
80
|
cwd: ::Dir.home(new_resource.owner))
|
@@ -92,7 +92,7 @@ class Chef
|
|
92
92
|
# @return [Boolean]
|
93
93
|
def casked?
|
94
94
|
unscoped_name = new_resource.cask_name.split("/").last
|
95
|
-
shell_out!("#{new_resource.homebrew_path} cask
|
95
|
+
shell_out!("#{new_resource.homebrew_path} list --cask 2>/dev/null",
|
96
96
|
user: new_resource.owner,
|
97
97
|
env: { "HOME" => ::Dir.home(new_resource.owner), "USER" => new_resource.owner },
|
98
98
|
cwd: ::Dir.home(new_resource.owner)).stdout.split.include?(unscoped_name)
|
data/lib/chef/resource/locale.rb
CHANGED
@@ -97,7 +97,7 @@ class Chef
|
|
97
97
|
# @raise [Mixlib::ShellOut::ShellCommandFailed] not a supported language or locale
|
98
98
|
#
|
99
99
|
def generate_locales
|
100
|
-
shell_out!("locale-gen #{unavailable_locales.join(" ")}")
|
100
|
+
shell_out!("locale-gen #{unavailable_locales.join(" ")}", timeout: 1800)
|
101
101
|
end
|
102
102
|
|
103
103
|
# Updates system locale by appropriately writing them in /etc/locale.conf
|
data/lib/chef/version.rb
CHANGED
@@ -98,13 +98,13 @@ describe Shell do
|
|
98
98
|
[output, e.status]
|
99
99
|
end
|
100
100
|
|
101
|
-
it "boots correctly with -lauto" do
|
101
|
+
it "boots correctly with -lauto", :executables do
|
102
102
|
output, exitstatus = run_chef_shell_with("-lauto")
|
103
103
|
expect(output).to include("done")
|
104
104
|
expect(exitstatus).to eq(0)
|
105
105
|
end
|
106
106
|
|
107
|
-
it "sets the log_level from the command line" do
|
107
|
+
it "sets the log_level from the command line", :executables do
|
108
108
|
output, exitstatus = run_chef_shell_with("-lfatal") do |out, keyboard|
|
109
109
|
show_log_level_code = %q[puts "===#{Chef::Log.level}==="]
|
110
110
|
keyboard.puts(show_log_level_code)
|
@@ -115,13 +115,13 @@ describe Shell do
|
|
115
115
|
end
|
116
116
|
|
117
117
|
context "on solo mode" do
|
118
|
-
it "starts correctly" do
|
118
|
+
it "starts correctly", :executables do
|
119
119
|
output, exitstatus = run_chef_shell_with("--solo")
|
120
120
|
expect(output).to include("done")
|
121
121
|
expect(exitstatus).to eq(0)
|
122
122
|
end
|
123
123
|
|
124
|
-
it "should be able to use the API" do
|
124
|
+
it "should be able to use the API", :executables do
|
125
125
|
output, exitstatus = run_chef_shell_with("-s") do |out, keyboard|
|
126
126
|
simple_api_get = "api.get('data')"
|
127
127
|
keyboard.puts(simple_api_get)
|
@@ -132,7 +132,7 @@ describe Shell do
|
|
132
132
|
end
|
133
133
|
end
|
134
134
|
|
135
|
-
it "sets the override_runlist from the command line" do
|
135
|
+
it "sets the override_runlist from the command line", :executables do
|
136
136
|
output, exitstatus = run_chef_shell_with("-o 'override::foo,override::bar'") do |out, keyboard|
|
137
137
|
show_recipes_code = %q[puts "#{node["recipes"].inspect}"]
|
138
138
|
keyboard.puts(show_recipes_code)
|
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: 15.
|
4
|
+
version: 15.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Jacob
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-06 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: 15.
|
19
|
+
version: 15.15.0
|
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: 15.
|
26
|
+
version: 15.15.0
|
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: 15.
|
33
|
+
version: 15.15.0
|
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: 15.
|
40
|
+
version: 15.15.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: train-core
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -2628,7 +2628,13 @@ files:
|
|
2628
2628
|
homepage: https://www.chef.io
|
2629
2629
|
licenses:
|
2630
2630
|
- Apache-2.0
|
2631
|
-
metadata:
|
2631
|
+
metadata:
|
2632
|
+
bug_tracker_uri: https://github.com/chef/chef/issues
|
2633
|
+
changelog_uri: https://github.com/chef/chef/blob/master/CHANGELOG.md
|
2634
|
+
documentation_uri: https://docs.chef.io/
|
2635
|
+
homepage_uri: https://www.chef.io
|
2636
|
+
mailing_list_uri: https://discourse.chef.io/
|
2637
|
+
source_code_uri: https://github.com/chef/chef/
|
2632
2638
|
post_install_message:
|
2633
2639
|
rdoc_options: []
|
2634
2640
|
require_paths:
|