vagrant-chef-zero 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +20 -2
- data/Gemfile +6 -3
- data/Makefile +5 -1
- data/Vagrantfile +1 -2
- data/lib/vagrant-chef-zero/action/reconfig.rb +4 -4
- data/lib/vagrant-chef-zero/env.rb +7 -1
- data/lib/vagrant-chef-zero/env_helpers.rb +2 -2
- data/lib/vagrant-chef-zero/server_helpers.rb +5 -3
- data/lib/vagrant-chef-zero/version.rb +1 -1
- data/vagrant-chef-zero.gemspec +1 -1
- metadata +20 -41
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a855950d1b47118cf406a8641938bc3745b0ed2a
|
4
|
+
data.tar.gz: 580a97a81fb50937260d191847d0320968258724
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 71a22e96dc42ea5c237429ab40499a73fd5eed0fea13ce24b600ba7b8e2697664baa212a41f4538109cf0973a2780a382984e66cc9cbf8c938cdc1827fa4a3f9
|
7
|
+
data.tar.gz: e985ec7b36e0ff37832992ab8ea5d62f4c0f90dff0d88a8125efffe3006e486d24c88ef50197c2a8a88e4bce0f0818fb1c9ca18301ef060fc9a191a11192b3f5
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,21 @@
|
|
1
|
+
## 0.7.0
|
2
|
+
|
3
|
+
* Allow using the latest version of `Chef-Zero`
|
4
|
+
* Compatability fix to work with Vagrant 1.5, thanks to @andrewhavens and @sysbot for fixes.
|
5
|
+
|
6
|
+
NOTE: Attempting to work on migrating to `chef-api` instead of `ridley` to help with dependency issues.
|
7
|
+
|
8
|
+
NOTE: May be an issue if we do not constrain `ridley` to an upper bound so that `vagrant` doesn't grab a broken version. Candidate version `'ridley', '~> 1.2.1'`.
|
9
|
+
|
10
|
+
|
11
|
+
## 0.6.0
|
12
|
+
|
13
|
+
Remove some dependency cruft, add better cookbook searching.
|
14
|
+
|
15
|
+
* Remove custom dependencies for `i18n`, `json`, `net-ssh`, `net-scp` and `activesupport`. Still depend on Chef, but no longer force specific gem versions. Seems to install properly on Vagrant 1.4.
|
16
|
+
|
17
|
+
* Add better cookbook searching algorithm
|
18
|
+
|
1
19
|
## 0.5.2
|
2
20
|
|
3
21
|
Update `net-ssh` dependency to work with the newest version of Vagrant 1.4. Thanks to @paulczar
|
@@ -16,11 +34,11 @@ Minor bugfixes (hopefully) to fix installation behavior and berkshelf issues.
|
|
16
34
|
|
17
35
|
NOTE: This version is in beta status as I have not had time to fully test it due to issues with my Vagrant environment (old versions will still be availabe in the `0.4.X` series)
|
18
36
|
|
19
|
-
* Add support for `.rb` files by using the Chef Gem, thanks to @mattray for the PR.
|
37
|
+
* Add support for `.rb` files by using the Chef Gem, thanks to @mattray for the PR.
|
20
38
|
|
21
39
|
## 0.4.2
|
22
40
|
|
23
|
-
* Keep existing Berkshelf client key if one is already defined. Thanks to [Greg Symons](https://github.com/gregsymons) for the PR.
|
41
|
+
* Keep existing Berkshelf client key if one is already defined. Thanks to [Greg Symons](https://github.com/gregsymons) for the PR.
|
24
42
|
|
25
43
|
## 0.4.1
|
26
44
|
|
data/Gemfile
CHANGED
@@ -1,14 +1,17 @@
|
|
1
1
|
source "https://rubygems.org"
|
2
2
|
|
3
|
-
#gem 'json', '~> 1.7.7'
|
4
|
-
|
5
3
|
gemspec
|
6
4
|
|
7
5
|
group :development do
|
8
6
|
# We depend on Vagrant for development, but we don't add it as a
|
9
7
|
# gem dependency because we expect to be installed within the
|
10
8
|
# Vagrant environment itself using `vagrant plugin`.
|
11
|
-
gem "vagrant", :git => "git://github.com/mitchellh/vagrant.git", :tag => "v1.
|
9
|
+
gem "vagrant", :git => "git://github.com/mitchellh/vagrant.git", :tag => "v1.5.4"
|
12
10
|
gem "debugger"
|
13
11
|
gem "vagrant-berkshelf", ">= 1.3.3"
|
14
12
|
end
|
13
|
+
|
14
|
+
# Force Vagrant to load our plugin during development
|
15
|
+
group :plugins do
|
16
|
+
gem "vagrant-chef-zero", :path => "/Users/awgross/dev/andrew/vagrant-chef-zero"
|
17
|
+
end
|
data/Makefile
CHANGED
data/Vagrantfile
CHANGED
@@ -23,10 +23,10 @@ module VagrantPlugins
|
|
23
23
|
write_knife_config(env)
|
24
24
|
end
|
25
25
|
|
26
|
-
if berkshelf_enabled?(env)
|
27
|
-
|
28
|
-
|
29
|
-
end
|
26
|
+
# if berkshelf_enabled?(env)
|
27
|
+
# @key = get_key_path(env)
|
28
|
+
# set_berkshelf_client_key(@key)
|
29
|
+
# end
|
30
30
|
end
|
31
31
|
|
32
32
|
def call(env)
|
@@ -10,7 +10,13 @@ module VagrantPlugins
|
|
10
10
|
attr_accessor :server
|
11
11
|
|
12
12
|
def initialize
|
13
|
-
|
13
|
+
vagrant_version = Gem::Version.new(::Vagrant::VERSION)
|
14
|
+
if vagrant_version >= Gem::Version.new("1.5")
|
15
|
+
@ui = ::Vagrant::UI::Colored.new
|
16
|
+
@ui.opts[:target] = 'Butcher'
|
17
|
+
elsif vagrant_version >= Gem::Version.new("1.2")
|
18
|
+
@ui = ::Vagrant::UI::Colored.new.scope('Chef Zero')
|
19
|
+
end
|
14
20
|
end
|
15
21
|
end
|
16
22
|
end
|
@@ -102,11 +102,11 @@ module VagrantPlugins
|
|
102
102
|
end
|
103
103
|
|
104
104
|
def chef_zero_enabled?(env)
|
105
|
-
env[:
|
105
|
+
env[:machine].config.chef_zero.enabled && chef_client?(env)
|
106
106
|
end
|
107
107
|
|
108
108
|
def berkshelf_enabled?(env)
|
109
|
-
env[:
|
109
|
+
env[:machine].config.berkshelf.enabled == true && chef_client?(env)
|
110
110
|
end
|
111
111
|
|
112
112
|
def set_berkshelf_client_key(value)
|
@@ -29,7 +29,7 @@ module VagrantPlugins
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
env[:chef_zero].ui.warn("Could not find Chef Zero binary in any path in #{Gem.path}")
|
32
|
-
raise
|
32
|
+
raise
|
33
33
|
end
|
34
34
|
|
35
35
|
def has_chef_zero_binary?(path)
|
@@ -43,7 +43,9 @@ module VagrantPlugins
|
|
43
43
|
|
44
44
|
def find_chef_zero_binary(path)
|
45
45
|
# Assuming a path from Gem.path
|
46
|
-
|
46
|
+
if path == nil
|
47
|
+
return nil
|
48
|
+
end
|
47
49
|
gems_path = ::File.join(path, "gems")
|
48
50
|
chef_zero_gem = Dir["#{gems_path}/*"].select { |gp| gp.include?('/chef-zero-')}.first
|
49
51
|
if chef_zero_gem
|
@@ -110,7 +112,7 @@ module VagrantPlugins
|
|
110
112
|
|
111
113
|
def kill_process(env, pid)
|
112
114
|
env[:chef_zero].ui.info("Stopping Chef Zero")
|
113
|
-
system("kill -s
|
115
|
+
system("kill -s TERM #{pid}")
|
114
116
|
end
|
115
117
|
|
116
118
|
def get_chef_zero_server_pid(port)
|
data/vagrant-chef-zero.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.rubyforge_project = "vagrant-chef-zero"
|
16
16
|
s.license = "MIT"
|
17
17
|
|
18
|
-
s.add_dependency "chef-zero", "
|
18
|
+
s.add_dependency "chef-zero", ">= 1.3"
|
19
19
|
s.add_dependency "ridley", ">= 1.0.0"
|
20
20
|
s.add_dependency "chef", "~> 11.0"
|
21
21
|
|
metadata
CHANGED
@@ -1,52 +1,46 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-chef-zero
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.7.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Andrew Gross
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2014-
|
11
|
+
date: 2014-05-09 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: chef-zero
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '1.3'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '1.3'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: ridley
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: 1.0.0
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: 1.0.0
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: chef
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ~>
|
60
53
|
- !ruby/object:Gem::Version
|
@@ -62,65 +55,57 @@ dependencies:
|
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: mocha
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - '>='
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: '0'
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - '>='
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: '0'
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: simplecov
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
|
-
- -
|
73
|
+
- - '>='
|
84
74
|
- !ruby/object:Gem::Version
|
85
75
|
version: '0'
|
86
76
|
type: :development
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
|
-
- -
|
80
|
+
- - '>='
|
92
81
|
- !ruby/object:Gem::Version
|
93
82
|
version: '0'
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: rake
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
|
-
- -
|
87
|
+
- - '>='
|
100
88
|
- !ruby/object:Gem::Version
|
101
89
|
version: '0'
|
102
90
|
type: :development
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
|
-
- -
|
94
|
+
- - '>='
|
108
95
|
- !ruby/object:Gem::Version
|
109
96
|
version: '0'
|
110
97
|
- !ruby/object:Gem::Dependency
|
111
98
|
name: rspec
|
112
99
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
100
|
requirements:
|
115
|
-
- -
|
101
|
+
- - '>='
|
116
102
|
- !ruby/object:Gem::Version
|
117
103
|
version: '0'
|
118
104
|
type: :development
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
107
|
requirements:
|
123
|
-
- -
|
108
|
+
- - '>='
|
124
109
|
- !ruby/object:Gem::Version
|
125
110
|
version: '0'
|
126
111
|
description: Enables Vagrant to interact with Chef Zero
|
@@ -145,7 +130,7 @@ files:
|
|
145
130
|
- lib/vagrant-chef-zero.rb
|
146
131
|
- LICENSE.txt
|
147
132
|
- Makefile
|
148
|
-
- pkg/vagrant-chef-zero-0.
|
133
|
+
- pkg/vagrant-chef-zero-0.7.0.gem
|
149
134
|
- Rakefile
|
150
135
|
- README.md
|
151
136
|
- spec/lib/action/upload_spec.rb
|
@@ -175,34 +160,28 @@ files:
|
|
175
160
|
- Vagrantfile
|
176
161
|
- .gitignore
|
177
162
|
- .travis.yml
|
178
|
-
- coverage/.last_run.json
|
179
|
-
- coverage/.resultset.json
|
180
163
|
homepage: http://github.com/andrewgross/vagrant-chef-zero
|
181
164
|
licenses:
|
182
165
|
- MIT
|
166
|
+
metadata: {}
|
183
167
|
post_install_message:
|
184
168
|
rdoc_options: []
|
185
169
|
require_paths:
|
186
170
|
- lib
|
187
171
|
required_ruby_version: !ruby/object:Gem::Requirement
|
188
|
-
none: false
|
189
172
|
requirements:
|
190
|
-
- -
|
173
|
+
- - '>='
|
191
174
|
- !ruby/object:Gem::Version
|
192
175
|
version: '0'
|
193
|
-
segments:
|
194
|
-
- 0
|
195
|
-
hash: 4477384969117340887
|
196
176
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
197
|
-
none: false
|
198
177
|
requirements:
|
199
|
-
- -
|
178
|
+
- - '>='
|
200
179
|
- !ruby/object:Gem::Version
|
201
180
|
version: 1.3.6
|
202
181
|
requirements: []
|
203
182
|
rubyforge_project: vagrant-chef-zero
|
204
|
-
rubygems_version:
|
183
|
+
rubygems_version: 2.0.14
|
205
184
|
signing_key:
|
206
|
-
specification_version:
|
185
|
+
specification_version: 4
|
207
186
|
summary: Enables Vagrant to interact with Chef Zero.
|
208
187
|
test_files: []
|