kitchen-vagrant 0.13.0 → 0.14.0

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
2
  SHA1:
3
- metadata.gz: 84fab63daefe505a96094d12b2af549ac3f112ca
4
- data.tar.gz: ef0b688fdc859add6afed85e500417d5c1ab566c
3
+ metadata.gz: 2fb270095f5db9faaf4e119fcf908d038c4bbb72
4
+ data.tar.gz: 094f1e770ca8a18519c1dd979184661eec5f1019
5
5
  SHA512:
6
- metadata.gz: 28e9e2c5fac11fe3dd57650eed9e84e38f629b0d7353676347a97b6139cc9709a78f340daafc25ef4eabcccbdd272daf1ea860d151891e09a8f74e4a35becb09
7
- data.tar.gz: ef708f146919893030a3cd92661b945992ec0b14a98c7a1de1cbdd44501a11d2c01cf5e6aff1b19d87fa264cadeb90385fec20667899167ed596e4e776eff804
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
@@ -21,6 +21,6 @@ module Kitchen
21
21
  module Driver
22
22
 
23
23
  # Version string for Vagrant Kitchen driver
24
- VAGRANT_VERSION = "0.13.0"
24
+ VAGRANT_VERSION = "0.14.0"
25
25
  end
26
26
  end
@@ -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.13.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-05 00:00:00.000000000 Z
11
+ date: 2013-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen