chef 13.12.3 → 13.12.14

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
- SHA1:
3
- metadata.gz: 7695157c9c19cba7968d427ab11d7e61d5a66419
4
- data.tar.gz: a884dce4ff2cb72bf6e2bd10a673620aca1f7f0e
2
+ SHA256:
3
+ metadata.gz: '00128f3ec11c15ea9f0b0f42e63167681a5b90727fad36eb3b710cce54d3f506'
4
+ data.tar.gz: 842520661ffe956d0d885148f8f4cb03904e83c78cf3e9bba03156ef11985266
5
5
  SHA512:
6
- metadata.gz: 99a20971bb8aa97e45c5d09ab07ce86f0819349d6a325e6d53530f254f9f5dba2bc0f1cbc5180e543f3cd00b8b9b6a5760f6f63a1fd28ed0ff590db6397c2c7a
7
- data.tar.gz: 9572a4f6b5193c39f2774e18f049eb9eae2c747b1cc05101d43140c9f7d620f1613453389f039b24a071ef6fb8d77bc4a40d008dbc40817d4dabb77f4657fb2c
6
+ metadata.gz: 5deaba35da29db2c5246df4f9fd5f1924b257f47982aad7fae0cd5b5fe7f48b0351c8b82823f5ae2f10c3320a92f377780e216d48d79b2cf1688f76474a24149
7
+ data.tar.gz: c15de3cb555b449d63f423d9f214b8476e855ddba2c3dd5671a6cde4f9470ef3d4a389d0bff5512dc34ac7dbb5962e2a508d677d44ebe21f88a60f03bb09c7b5
@@ -285,6 +285,10 @@ class Chef
285
285
  def inspect
286
286
  "#{message}\n#{location}"
287
287
  end
288
+
289
+ def target
290
+ "property.html"
291
+ end
288
292
  end
289
293
 
290
294
  class Generic < Base
@@ -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-2016 Chef Software, Inc.
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-direct.chef.io/chef/install.sh" %>"
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]}")
@@ -23,7 +23,7 @@ require "chef/version_string"
23
23
 
24
24
  class Chef
25
25
  CHEF_ROOT = File.expand_path("../..", __FILE__)
26
- VERSION = Chef::VersionString.new("13.12.3")
26
+ VERSION = Chef::VersionString.new("13.12.14")
27
27
  end
28
28
 
29
29
  #
@@ -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{^/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$})
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.3
4
+ version: 13.12.14
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-01 00:00:00.000000000 Z
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.3
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.3
26
+ version: 13.12.14
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mixlib-cli
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -2421,7 +2421,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
2421
2421
  version: '0'
2422
2422
  requirements: []
2423
2423
  rubyforge_project:
2424
- rubygems_version: 2.6.14
2424
+ rubygems_version: 2.7.9
2425
2425
  signing_key:
2426
2426
  specification_version: 4
2427
2427
  summary: A systems integration framework, built to bring the benefits of configuration