chef 13.12.3-universal-mingw32 → 13.12.14-universal-mingw32
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7d32c80fb2917db8cdd064e6a0d981b6d3f2564c7b3570c03af37574ece1ee9e
|
4
|
+
data.tar.gz: 4891751cc51dd9d90624ad9d874952c6063e62e6271e69763d252a0e3995659b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c338e5c0f79c6f5bff45702a0a769fd2729df7a756ca26e74b43d30bf44bece8fee67a04703afce3fd43c293d2a9ff20fff1bbe4e545bd41d6aec129921953ad
|
7
|
+
data.tar.gz: 39865034b1dc623e54771f6d6749ac7037733069e3b091ebd3d9a2f2f22d2f7d0b21f90c8381c6c583edf60f1b40836db6c282005e1c00207b39830dbf60940d
|
data/lib/chef/deprecated.rb
CHANGED
data/lib/chef/dsl/universal.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#--
|
2
2
|
# Author:: Adam Jacob (<adam@chef.io>)
|
3
3
|
# Author:: Christopher Walters (<cw@chef.io>)
|
4
|
-
# Copyright:: Copyright 2008-
|
4
|
+
# Copyright:: Copyright 2008-2019, Chef Software Inc.
|
5
5
|
# License:: Apache License, Version 2.0
|
6
6
|
#
|
7
7
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -20,6 +20,7 @@
|
|
20
20
|
require "chef/dsl/platform_introspection"
|
21
21
|
require "chef/mixin/powershell_out"
|
22
22
|
require "chef/mixin/shell_out"
|
23
|
+
require "chef/mixin/lazy_module_include"
|
23
24
|
|
24
25
|
class Chef
|
25
26
|
module DSL
|
@@ -45,6 +46,7 @@ class Chef
|
|
45
46
|
include Chef::DSL::PlatformIntrospection
|
46
47
|
include Chef::Mixin::PowershellOut
|
47
48
|
include Chef::Mixin::ShellOut
|
49
|
+
extend Chef::Mixin::LazyModuleInclude
|
48
50
|
end
|
49
51
|
end
|
50
52
|
end
|
@@ -165,7 +165,7 @@ do_download() {
|
|
165
165
|
<% if knife_config[:bootstrap_install_command] %>
|
166
166
|
<%= knife_config[:bootstrap_install_command] %>
|
167
167
|
<% else %>
|
168
|
-
install_sh="<%= knife_config[:bootstrap_url] ? knife_config[:bootstrap_url] : "https://omnitruck
|
168
|
+
install_sh="<%= knife_config[:bootstrap_url] ? knife_config[:bootstrap_url] : "https://omnitruck.chef.io/chef/install.sh" %>"
|
169
169
|
if test -f /usr/bin/chef-client; then
|
170
170
|
echo "-----> Existing Chef installation detected"
|
171
171
|
else
|
@@ -164,7 +164,7 @@ class Chef
|
|
164
164
|
disable_fs
|
165
165
|
end
|
166
166
|
::File.open("/etc/filesystems", "a") do |fstab|
|
167
|
-
fstab.puts("#{@new_resource.mount_point}:")
|
167
|
+
fstab.puts("\n\n#{@new_resource.mount_point}:")
|
168
168
|
if network_device?
|
169
169
|
device_details = device_fstab.split(":")
|
170
170
|
fstab.puts("\tdev\t\t= #{device_details[1]}")
|
data/lib/chef/version.rb
CHANGED
@@ -202,12 +202,20 @@ WRONG
|
|
202
202
|
it "should enable mount if it is mounted and not enabled" do
|
203
203
|
@new_resource.options("nodev,rw")
|
204
204
|
stub_mounted_enabled(@provider, @mounted_output, "")
|
205
|
+
# Add existing mount to test enable action appends additional mount with seperating blank line
|
205
206
|
filesystems = StringIO.new
|
207
|
+
filesystems.puts <<~ETCFILESYSTEMS
|
208
|
+
/tmp/abc:
|
209
|
+
dev = /dev/sdz2
|
210
|
+
vfs = jfs2
|
211
|
+
mount = true
|
212
|
+
options = rw
|
213
|
+
ETCFILESYSTEMS
|
206
214
|
allow(::File).to receive(:open).with("/etc/filesystems", "a").and_yield(filesystems)
|
207
215
|
|
208
216
|
@provider.run_action(:enable)
|
209
217
|
|
210
|
-
expect(filesystems.string).to match(%r{
|
218
|
+
expect(filesystems.string).to match(%r{^\n\n/tmp/foo:\n\tdev\t\t= /dev/sdz1\n\tvfs\t\t= jfs2\n\tmount\t\t= false\n\toptions\t\t= nodev,rw\n$})
|
211
219
|
end
|
212
220
|
|
213
221
|
it "should not enable mount if it is mounted and already enabled and mount options are unchanged" do
|
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: 13.12.
|
4
|
+
version: 13.12.14
|
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:
|
11
|
+
date: 2019-03-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: 13.12.
|
19
|
+
version: 13.12.14
|
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: 13.12.
|
26
|
+
version: 13.12.14
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mixlib-cli
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -2583,7 +2583,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
2583
2583
|
version: '0'
|
2584
2584
|
requirements: []
|
2585
2585
|
rubyforge_project:
|
2586
|
-
rubygems_version: 2.
|
2586
|
+
rubygems_version: 2.7.9
|
2587
2587
|
signing_key:
|
2588
2588
|
specification_version: 4
|
2589
2589
|
summary: A systems integration framework, built to bring the benefits of configuration
|