vagrant-chef-zero 1.0.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -2
- data/CHANGELOG.md +9 -0
- data/Gemfile +2 -2
- data/README.md +0 -1
- data/lib/vagrant-chef-zero/action/upload.rb +2 -10
- data/lib/vagrant-chef-zero/version.rb +1 -1
- data/test/fixtures/cookbooks/test_vagrant_chef_zero/chefignore +12 -0
- data/test/fixtures/cookbooks/test_vagrant_chef_zero/metadata.rb +8 -0
- data/test/fixtures/cookbooks/test_vagrant_chef_zero/recipes/default.rb +1 -0
- data/test/fixtures/environments/test.json +15 -0
- data/test/fixtures/roles/test.json +15 -0
- data/test/integration/Vagrantfile +49 -0
- data/vagrant-chef-zero.gemspec +5 -6
- metadata +31 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86af72a47a3512eea463c3aec69be38aca69b9a9
|
4
|
+
data.tar.gz: 81cb429011b8286dd13a03038f731478064e3797
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba482a0f7a01f7dcdf953f7d8e066c66e10196f7baa6b3859a3c12cd7e23a20e93c8f4f90eded3b5c4d6963b70185abf18586827dbcea58310356b6e59b3b2ec
|
7
|
+
data.tar.gz: 79ece92a106955bf87839db1192130db0741ff66d6649e4bd32f3a57971731eb3e7cbb3610d02c2a2ac907dfc3b67c66d1e9c6c2d83ebbde2abe46ba4900449e
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -18,10 +18,10 @@ group :development do
|
|
18
18
|
end
|
19
19
|
|
20
20
|
# Windows platform requirements to run chef-zero
|
21
|
-
|
21
|
+
group :windows do
|
22
22
|
gem "ruby-wmi"
|
23
23
|
gem "win32-service"
|
24
|
-
end
|
24
|
+
end if (RbConfig::CONFIG['host_os'] =~ /mswin|mingw|ming32/)
|
25
25
|
|
26
26
|
# Force Vagrant to load our plugin during development (assume we are running from top level)
|
27
27
|
group :plugins do
|
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# Vagrant-Chef-Zero
|
2
2
|
[![Build Status](https://travis-ci.org/schubergphilis/vagrant-chef-zero.svg)](https://travis-ci.org/schubergphilis/vagrant-chef-zero)
|
3
3
|
[![Code Climate](https://codeclimate.com/github/schubergphilis/vagrant-chef-zero.png)](https://codeclimate.com/github/schubergphilis/vagrant-chef-zero)
|
4
|
-
[![Dependency Status](https://gemnasium.com/schubergphilis/vagrant-chef-zero.png)](https://gemnasium.com/schubergphilis/vagrant-chef-zero)
|
5
4
|
[![Coverage Status](https://coveralls.io/repos/schubergphilis/vagrant-chef-zero/badge.png)](https://coveralls.io/r/schubergphilis/vagrant-chef-zero)
|
6
5
|
[![Gem Version](https://badge.fury.io/rb/vagrant-chef-zero.svg)](http://badge.fury.io/rb/vagrant-chef-zero)
|
7
6
|
|
@@ -1,5 +1,3 @@
|
|
1
|
-
require 'chef'
|
2
|
-
|
3
1
|
module VagrantPlugins
|
4
2
|
module ChefZero
|
5
3
|
module Action
|
@@ -67,9 +65,7 @@ module VagrantPlugins
|
|
67
65
|
environments = select_items(path)
|
68
66
|
environments.each do |e|
|
69
67
|
if e =~ /.rb$/
|
70
|
-
|
71
|
-
envrb.from_file(e)
|
72
|
-
environment = envrb.to_hash
|
68
|
+
env[:chef_zero].ui.error("Cannot upload environments defined in ruby files: #{e}")
|
73
69
|
else
|
74
70
|
environment = JSON.parse(IO.read(e)).to_hash
|
75
71
|
end
|
@@ -90,9 +86,7 @@ module VagrantPlugins
|
|
90
86
|
roles = select_items(path)
|
91
87
|
roles.each do |r|
|
92
88
|
if r =~ /.rb$/
|
93
|
-
|
94
|
-
rrb.from_file(r)
|
95
|
-
role = rrb.to_hash
|
89
|
+
env[:chef_zero].ui.error("Cannot upload roles defined in ruby files: #{r}")
|
96
90
|
else
|
97
91
|
role = JSON.parse(IO.read(r)).to_hash
|
98
92
|
end
|
@@ -198,9 +192,7 @@ module VagrantPlugins
|
|
198
192
|
end
|
199
193
|
@conn
|
200
194
|
end
|
201
|
-
|
202
195
|
end
|
203
|
-
|
204
196
|
end
|
205
197
|
end
|
206
198
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
log 'Converging test_vagrant_chef_zero::default'
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# -*- mode: ruby -*-
|
2
|
+
# vi: set ft=ruby :
|
3
|
+
|
4
|
+
test_machines = {
|
5
|
+
'windows' => {
|
6
|
+
'box' => ENV['VAGRANT_TEST_WINDOWS_BOX'], # sbp_windows_2012_r2_20141211_1
|
7
|
+
'communicator' => :winrm,
|
8
|
+
'guest' => :windows
|
9
|
+
},
|
10
|
+
'centos' => {
|
11
|
+
'box' => ENV['VAGRANT_TEST_CENTOS_BOX'], # opscode-centos-7.1
|
12
|
+
'communicator' => :ssh,
|
13
|
+
'guest' => :linux
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
|
18
|
+
VAGRANTFILE_API_VERSION = "2"
|
19
|
+
|
20
|
+
Vagrant.configure(VAGRANTFILE_API_VERSION) do |global_config|
|
21
|
+
test_machines.each_pair do |name, options|
|
22
|
+
global_config.vm.define name do |config|
|
23
|
+
|
24
|
+
config.vm.box = options['box']
|
25
|
+
|
26
|
+
config.vm.communicator = options['communicator']
|
27
|
+
config.vm.guest = options['guest']
|
28
|
+
|
29
|
+
config.vm.provider 'virtualbox' do |vb|
|
30
|
+
vb.gui = true
|
31
|
+
end
|
32
|
+
|
33
|
+
config.berkshelf.enabled = true
|
34
|
+
|
35
|
+
config.omnibus.chef_version = 'latest'
|
36
|
+
|
37
|
+
config.chef_zero.cookbooks = [ '../fixtures/cookbooks' ]
|
38
|
+
config.chef_zero.environments = '../fixtures/environments'
|
39
|
+
config.chef_zero.roles = '../fixtures/roles'
|
40
|
+
|
41
|
+
config.vm.provision 'chef_client', run: 'always' do |chef|
|
42
|
+
chef.environment = 'test'
|
43
|
+
chef.add_role 'test'
|
44
|
+
chef.log_level = 'info'
|
45
|
+
chef.run_list = [ 'recipe[test_vagrant_chef_zero::default]' ]
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
data/vagrant-chef-zero.gemspec
CHANGED
@@ -5,11 +5,11 @@ Gem::Specification.new do |s|
|
|
5
5
|
s.name = "vagrant-chef-zero"
|
6
6
|
s.version = VagrantPlugins::ChefZero.get_version()
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
|
-
s.authors = "Andrew Gross"
|
9
|
-
s.email = "andrew.w.gross@gmail.com"
|
10
|
-
s.homepage = "http://github.com/
|
11
|
-
s.summary = "Enables Vagrant to
|
12
|
-
s.description = "Enables Vagrant to
|
8
|
+
s.authors = "Andrew Gross, Miguel Ferreira, Timothy van Zadelhoff"
|
9
|
+
s.email = "andrew.w.gross@gmail.com, miguelferreira@me.com"
|
10
|
+
s.homepage = "http://github.com/schubergphilis/vagrant-chef-zero"
|
11
|
+
s.summary = "Enables Vagrant to spawn a Chef Zero instance that is shared by all VMs."
|
12
|
+
s.description = "Enables Vagrant to spawn a Chef Zero instance that is shared by all VMs."
|
13
13
|
|
14
14
|
s.required_rubygems_version = ">= 1.3.6"
|
15
15
|
s.rubyforge_project = "vagrant-chef-zero"
|
@@ -17,7 +17,6 @@ Gem::Specification.new do |s|
|
|
17
17
|
|
18
18
|
s.add_dependency "chef-zero", "~> 2.0"
|
19
19
|
s.add_dependency "ridley", ">= 1.0.0"
|
20
|
-
s.add_dependency "chef", "~> 11.0"
|
21
20
|
|
22
21
|
s.add_development_dependency "bump", "~> 0.5.2"
|
23
22
|
|
metadata
CHANGED
@@ -1,80 +1,66 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-chef-zero
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Andrew Gross
|
7
|
+
- Andrew Gross, Miguel Ferreira, Timothy van Zadelhoff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef-zero
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '2.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
26
|
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: ridley
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 1.0.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
40
|
version: 1.0.0
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: chef
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '11.0'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '11.0'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: bump
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
58
44
|
requirements:
|
59
|
-
- -
|
45
|
+
- - ~>
|
60
46
|
- !ruby/object:Gem::Version
|
61
47
|
version: 0.5.2
|
62
48
|
type: :development
|
63
49
|
prerelease: false
|
64
50
|
version_requirements: !ruby/object:Gem::Requirement
|
65
51
|
requirements:
|
66
|
-
- -
|
52
|
+
- - ~>
|
67
53
|
- !ruby/object:Gem::Version
|
68
54
|
version: 0.5.2
|
69
|
-
description: Enables Vagrant to
|
70
|
-
email: andrew.w.gross@gmail.com
|
55
|
+
description: Enables Vagrant to spawn a Chef Zero instance that is shared by all VMs.
|
56
|
+
email: andrew.w.gross@gmail.com, miguelferreira@me.com
|
71
57
|
executables: []
|
72
58
|
extensions: []
|
73
59
|
extra_rdoc_files: []
|
74
60
|
files:
|
75
|
-
-
|
76
|
-
-
|
77
|
-
-
|
61
|
+
- .gitignore
|
62
|
+
- .ruby-version
|
63
|
+
- .travis.yml
|
78
64
|
- CHANGELOG.md
|
79
65
|
- Gemfile
|
80
66
|
- LICENSE.txt
|
@@ -118,8 +104,14 @@ files:
|
|
118
104
|
- spec/vagrant-chef-zero/fixtures/nodes/boxer.json
|
119
105
|
- spec/vagrant-chef-zero/fixtures/nodes/camel.json
|
120
106
|
- spec/vagrant-chef-zero/fixtures/nodes/monkey.json
|
107
|
+
- test/fixtures/cookbooks/test_vagrant_chef_zero/chefignore
|
108
|
+
- test/fixtures/cookbooks/test_vagrant_chef_zero/metadata.rb
|
109
|
+
- test/fixtures/cookbooks/test_vagrant_chef_zero/recipes/default.rb
|
110
|
+
- test/fixtures/environments/test.json
|
111
|
+
- test/fixtures/roles/test.json
|
112
|
+
- test/integration/Vagrantfile
|
121
113
|
- vagrant-chef-zero.gemspec
|
122
|
-
homepage: http://github.com/
|
114
|
+
homepage: http://github.com/schubergphilis/vagrant-chef-zero
|
123
115
|
licenses:
|
124
116
|
- Apache v2.0
|
125
117
|
metadata: {}
|
@@ -129,20 +121,20 @@ require_paths:
|
|
129
121
|
- lib
|
130
122
|
required_ruby_version: !ruby/object:Gem::Requirement
|
131
123
|
requirements:
|
132
|
-
- -
|
124
|
+
- - '>='
|
133
125
|
- !ruby/object:Gem::Version
|
134
126
|
version: '0'
|
135
127
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
136
128
|
requirements:
|
137
|
-
- -
|
129
|
+
- - '>='
|
138
130
|
- !ruby/object:Gem::Version
|
139
131
|
version: 1.3.6
|
140
132
|
requirements: []
|
141
133
|
rubyforge_project: vagrant-chef-zero
|
142
|
-
rubygems_version: 2.
|
134
|
+
rubygems_version: 2.0.14
|
143
135
|
signing_key:
|
144
136
|
specification_version: 4
|
145
|
-
summary: Enables Vagrant to
|
137
|
+
summary: Enables Vagrant to spawn a Chef Zero instance that is shared by all VMs.
|
146
138
|
test_files:
|
147
139
|
- spec/lib/action/upload_spec.rb
|
148
140
|
- spec/lib/config_spec.rb
|
@@ -168,4 +160,9 @@ test_files:
|
|
168
160
|
- spec/vagrant-chef-zero/fixtures/nodes/boxer.json
|
169
161
|
- spec/vagrant-chef-zero/fixtures/nodes/camel.json
|
170
162
|
- spec/vagrant-chef-zero/fixtures/nodes/monkey.json
|
171
|
-
|
163
|
+
- test/fixtures/cookbooks/test_vagrant_chef_zero/chefignore
|
164
|
+
- test/fixtures/cookbooks/test_vagrant_chef_zero/metadata.rb
|
165
|
+
- test/fixtures/cookbooks/test_vagrant_chef_zero/recipes/default.rb
|
166
|
+
- test/fixtures/environments/test.json
|
167
|
+
- test/fixtures/roles/test.json
|
168
|
+
- test/integration/Vagrantfile
|