kitchen-vagrant 0.13.0 → 0.14.0
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 +11 -0
- data/README.md +25 -0
- data/lib/kitchen/driver/vagrant.rb +4 -0
- data/lib/kitchen/driver/vagrant_version.rb +1 -1
- data/templates/Vagrantfile.erb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2fb270095f5db9faaf4e119fcf908d038c4bbb72
|
|
4
|
+
data.tar.gz: 094f1e770ca8a18519c1dd979184661eec5f1019
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4f1ceb43bc7abd69ec49e55005d0e2bfdfcc66bfc2cc98f6aac746438a3b157ad19fb0c37c4d455c84685fcd624d905295dbbd92f1ae09cda1ef510c6bd65b0b
|
|
7
|
+
data.tar.gz: 16cfd491a7adfe2e4cd8f12d045774118d95dcb06a3cb4edb2d0bdffc871cd79b82362de35189f98503977eed5b53d1bd8941d04cf13c267003d0cc127599fbc
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## 0.14.0 / 2013-12-09
|
|
2
|
+
|
|
3
|
+
### New features
|
|
4
|
+
|
|
5
|
+
* Add `config[:vm_hostname]` to set config.vm.hostname in Vagrantfile. ([@fnichol][])
|
|
6
|
+
|
|
7
|
+
### Improvments
|
|
8
|
+
|
|
9
|
+
* Add `config[:guest]` documentation in README. ([@fnichol][])
|
|
10
|
+
|
|
11
|
+
|
|
1
12
|
## 0.13.0 / 2013-12-04
|
|
2
13
|
|
|
3
14
|
### New features
|
data/README.md
CHANGED
|
@@ -155,6 +155,15 @@ commands will be displayed rather than executed.
|
|
|
155
155
|
|
|
156
156
|
The default is unset, or `nil`.
|
|
157
157
|
|
|
158
|
+
### <a name="config-guest"></a> guest
|
|
159
|
+
|
|
160
|
+
Set the `config.vm.guest` setting in the default Vagrantfile. For more details
|
|
161
|
+
please read the
|
|
162
|
+
[config.vm.guest](http://docs.vagrantup.com/v2/vagrantfile/machine_settings.html)
|
|
163
|
+
section of the Vagrant documentation.
|
|
164
|
+
|
|
165
|
+
The default is unset, or `nil`.
|
|
166
|
+
|
|
158
167
|
### <a name="config-network"></a> network
|
|
159
168
|
|
|
160
169
|
An **Array** of network customizations for the virtual machine. Each Array
|
|
@@ -251,6 +260,22 @@ road--be aware.
|
|
|
251
260
|
|
|
252
261
|
The default is to use a template which ships with this gem.
|
|
253
262
|
|
|
263
|
+
### <a name="config-vm-hostname"></a> vm\_hostname
|
|
264
|
+
|
|
265
|
+
Sets the internal hostname for the instance. This is not used when connecting
|
|
266
|
+
to the Vagrant virtual machine.
|
|
267
|
+
|
|
268
|
+
For more details on this setting please read the
|
|
269
|
+
[config.vm.hostname](http://docs.vagrantup.com/v2/vagrantfile/machine_settings.html)
|
|
270
|
+
section of the Vagrant documentation.
|
|
271
|
+
|
|
272
|
+
To prevent this value from being rendered in the default Vagrantfile, you can
|
|
273
|
+
set this value to `false`.
|
|
274
|
+
|
|
275
|
+
The default will be computed from the name of the instance. For
|
|
276
|
+
example, the instance was called "default-fuzz-9" will produce a default
|
|
277
|
+
`vm_hostname` value of `"default-fuzz-9.vagrantup.com"`.
|
|
278
|
+
|
|
254
279
|
### <a name="config-ssh-key"></a> ssh\_key
|
|
255
280
|
|
|
256
281
|
This is the path to the private key file used for SSH authentication if you
|
|
@@ -44,6 +44,10 @@ module Kitchen
|
|
|
44
44
|
default_config :provider,
|
|
45
45
|
ENV.fetch('VAGRANT_DEFAULT_PROVIDER', "virtualbox")
|
|
46
46
|
|
|
47
|
+
default_config :vm_hostname do |driver|
|
|
48
|
+
"#{driver.instance.name}.vagrantup.com"
|
|
49
|
+
end
|
|
50
|
+
|
|
47
51
|
default_config :box do |driver|
|
|
48
52
|
"opscode-#{driver.instance.platform.name}"
|
|
49
53
|
end
|
data/templates/Vagrantfile.erb
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
Vagrant.configure("2") do |c|
|
|
2
2
|
c.vm.box = "<%= config[:box] %>"
|
|
3
3
|
c.vm.box_url = "<%= config[:box_url] %>"
|
|
4
|
-
c.vm.hostname = "<%= instance.name %>.vagrantup.com"
|
|
5
4
|
|
|
5
|
+
<% if config[:vm_hostname] %>
|
|
6
|
+
c.vm.hostname = "<%= config[:vm_hostname] %>"
|
|
7
|
+
<% end %>
|
|
6
8
|
<% if config[:guest] %>
|
|
7
9
|
c.vm.guest = <%= config[:guest] %>
|
|
8
10
|
<% end %>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kitchen-vagrant
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.14.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Fletcher Nichol
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-12-
|
|
11
|
+
date: 2013-12-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: test-kitchen
|