vagrant-hitch 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,6 +22,7 @@ test1:
22
22
  <<: *default
23
23
  # Mounts do not merge, they only override because YAML anchors don't merge
24
24
  guest: solaris
25
+ boot_mode: gui
25
26
  ip: 10.10.10.10
26
27
  puppet:
27
28
  manifest_file: test1.pp
@@ -36,6 +36,12 @@ module VagrantHitch
36
36
  config.vm.host_name = hostname
37
37
  end
38
38
 
39
+ def self.setup_bootmode(profiile, node_config, config)
40
+ if node_config.has_key?('boot_mode')
41
+ config.vm.boot_mode = node_config['boot_mode'].to_sym
42
+ end
43
+ end
44
+
39
45
  def self.setup_cpu(profile, node_config, config)
40
46
  # Configure CPU
41
47
  config.vm.customize ["modifyvm", :id, "--cpus", node_config['cpu_count'].to_s] if node_config.has_key?('cpu_count')
@@ -168,6 +174,7 @@ module VagrantHitch
168
174
  # Setup the environment
169
175
  self.setup_dns(profile, node_config, config)
170
176
  self.setup_vbox(profile, node_config, config)
177
+ self.setup_bootmode(profile, node_config, config)
171
178
 
172
179
  # set up the server
173
180
  self.setup_hostname(profile, node_config, config)
@@ -79,6 +79,11 @@ describe VagrantHitch do
79
79
 
80
80
  it 'should configure a guest' do
81
81
  test1.config.vm.guest.should eql(:solaris)
82
+ test2.config.vm.guest.should eql(:linux)
83
+ end
84
+
85
+ it 'should honor boot mode' do
86
+ test1.config.vm.boot_mode.should eql(:gui)
82
87
  end
83
88
 
84
89
  it 'should have network ports forward' do
@@ -17,5 +17,5 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.name = "vagrant-hitch"
19
19
  gem.require_paths = ["lib"]
20
- gem.version = "0.1.4"
20
+ gem.version = "0.1.5"
21
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-hitch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: