chef-provisioning 1.0.0.rc.1 → 1.0.0.rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/chef/provisioning/convergence_strategy/install_cached.rb +2 -0
- data/lib/chef/provisioning/convergence_strategy/install_msi.rb +4 -2
- data/lib/chef/provisioning/version.rb +1 -1
- metadata +2 -4
- data/lib/chef/provisioning/convergence_strategy/preinstalled.rb +0 -10
- data/lib/chef/provisioning/transport/local.rb +0 -63
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55ad875ebe76a6ae2bc9a2ab836078862a05cc3a
|
4
|
+
data.tar.gz: 756479f750a3832e984a3602d2f5d4652d3e8070
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 289db0906556b5a767a313ed2733f4becdf9c713387ca59fa33d5e250e423434bbb4065f824915bee252b818a84a58a89e7db248110287ba10837641a5fad068
|
7
|
+
data.tar.gz: ea91e7efa08311d988a38c9be1334c31e08b4f3d183c690f746ca9302ed8a63949ddce23e929f6ca8f32fd27803a877e1f31e83408f098c273deb805b46a2050
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
# Chef Provisioning Changelog
|
2
2
|
|
3
|
-
## 1.0.rc.
|
3
|
+
## 1.0.0.rc.2 (4/1/2015)
|
4
|
+
|
5
|
+
- Fix an issue with vagrant second-converge failing
|
6
|
+
|
7
|
+
## 1.0.0.rc.1 (3/31/2015)
|
4
8
|
## 0.20 (3/27/2015)
|
5
9
|
|
6
10
|
- Marking machines `nil` in a load_balancer does not affect existing machines ([#299][])
|
@@ -5,15 +5,17 @@ class Chef
|
|
5
5
|
module Provisioning
|
6
6
|
class ConvergenceStrategy
|
7
7
|
class InstallMsi < PrecreateChefObjects
|
8
|
-
@@install_msi_cache = {}
|
9
|
-
|
10
8
|
def initialize(convergence_options, config)
|
11
9
|
super
|
10
|
+
@chef_version ||= convergence_options[:chef_version]
|
11
|
+
@prerelease ||= convergence_options[:prerelease]
|
12
12
|
@install_msi_url = convergence_options[:install_msi_url] || 'https://www.chef.io/chef/install.msi'
|
13
13
|
@install_msi_path = convergence_options[:install_msi_path] || "$env:TEMP\\#{File.basename(@install_msi_url)}"
|
14
14
|
@chef_client_timeout = convergence_options.has_key?(:chef_client_timeout) ? convergence_options[:chef_client_timeout] : 120*60 # Default: 2 hours
|
15
15
|
end
|
16
16
|
|
17
|
+
attr_reader :chef_version
|
18
|
+
attr_reader :prerelease
|
17
19
|
attr_reader :install_msi_url
|
18
20
|
attr_reader :install_msi_path
|
19
21
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-provisioning
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.rc.
|
4
|
+
version: 1.0.0.rc.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Keiser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|
@@ -153,7 +153,6 @@ files:
|
|
153
153
|
- lib/chef/provisioning/convergence_strategy/install_sh.rb
|
154
154
|
- lib/chef/provisioning/convergence_strategy/no_converge.rb
|
155
155
|
- lib/chef/provisioning/convergence_strategy/precreate_chef_objects.rb
|
156
|
-
- lib/chef/provisioning/convergence_strategy/preinstalled.rb
|
157
156
|
- lib/chef/provisioning/driver.rb
|
158
157
|
- lib/chef/provisioning/load_balancer_spec.rb
|
159
158
|
- lib/chef/provisioning/machine.rb
|
@@ -166,7 +165,6 @@ files:
|
|
166
165
|
- lib/chef/provisioning/managed_entry_store.rb
|
167
166
|
- lib/chef/provisioning/recipe_dsl.rb
|
168
167
|
- lib/chef/provisioning/transport.rb
|
169
|
-
- lib/chef/provisioning/transport/local.rb
|
170
168
|
- lib/chef/provisioning/transport/ssh.rb
|
171
169
|
- lib/chef/provisioning/transport/winrm.rb
|
172
170
|
- lib/chef/provisioning/version.rb
|
@@ -1,63 +0,0 @@
|
|
1
|
-
require 'chef/provisioning/transport'
|
2
|
-
require 'chef/mixin/shell_out'
|
3
|
-
require 'chef/log'
|
4
|
-
|
5
|
-
class Chef
|
6
|
-
module Provisioning
|
7
|
-
class Transport
|
8
|
-
class Local < Chef::Provisioning::Transport
|
9
|
-
include Chef::Mixin::ShellOut
|
10
|
-
|
11
|
-
#
|
12
|
-
# Create a new local transport.
|
13
|
-
#
|
14
|
-
# == Arguments
|
15
|
-
#
|
16
|
-
# - options: a hash of options for the transport itself, including:
|
17
|
-
# - :prefix: a prefix to send before each command (e.g. "sudo ")
|
18
|
-
# - global_config: an options hash that looks suspiciously similar to
|
19
|
-
# Chef::Config, containing at least the key :log_level.
|
20
|
-
#
|
21
|
-
# The options are used in
|
22
|
-
# Net::SSH.start(host, username, ssh_options)
|
23
|
-
|
24
|
-
def initialize(options, global_config)
|
25
|
-
@options = options
|
26
|
-
@config = global_config
|
27
|
-
end
|
28
|
-
|
29
|
-
attr_reader :options
|
30
|
-
attr_reader :config
|
31
|
-
|
32
|
-
def execute(command, execute_options = {})
|
33
|
-
Chef::Log.info("Executing #{options[:prefix]}#{command} locally")
|
34
|
-
result = shell_out!(command, execute_options)
|
35
|
-
Chef::Log.info("Completed #{command} on #{username}@#{host}: exit status #{exitstatus}")
|
36
|
-
Chef::Log.debug("Stdout was:\n#{stdout}") if stdout != '' && !options[:stream] && !options[:stream_stdout] && config[:log_level] != :debug
|
37
|
-
Chef::Log.info("Stderr was:\n#{stderr}") if stderr != '' && !options[:stream] && !options[:stream_stderr] && config[:log_level] != :debug
|
38
|
-
result
|
39
|
-
end
|
40
|
-
|
41
|
-
def read_file(path)
|
42
|
-
IO.read(path)
|
43
|
-
end
|
44
|
-
|
45
|
-
def write_file(path, content)
|
46
|
-
IO.write(path, content)
|
47
|
-
end
|
48
|
-
|
49
|
-
# TODO do we need to bind_to? Probably.
|
50
|
-
def make_url_available_to_remote(local_url, **options)
|
51
|
-
local_url
|
52
|
-
end
|
53
|
-
|
54
|
-
def disconnect
|
55
|
-
end
|
56
|
-
|
57
|
-
def available?
|
58
|
-
true
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|