fix gui_mode

Previously gui_mode was checking for a value
of 'true' in the config.yaml file.

This did not match the default value of true
that was set there.

This commit changes this parameter to expect
a boolean value of true or false instead of a
string to make it more consistent with the other
values.

Change-Id: If3f55a16e38bd4bea310bac31b9ef7ac9de158af
This commit is contained in:
Dan Bode
2013-04-23 13:19:44 -07:00
parent 1f6cdc2f8c
commit a40b2bc990
2 changed files with 3 additions and 3 deletions

4
Vagrantfile vendored
View File

@@ -3,7 +3,7 @@ def parse_vagrant_config(
)
require 'yaml'
config = {
'gui_mode' => "false",
'gui_mode' => false,
'operatingsystem' => 'ubuntu',
'verbose' => false,
'update_repos' => true
@@ -166,7 +166,7 @@ Vagrant::Config.run do |config|
#agent.vm.customize ["modifyvm", :id, "--macaddress3", 'auto']
agent.vm.customize ["modifyvm", :id, "--memory", props['memory'] || 2048 ]
agent.vm.boot_mode = 'gui' if v_config['gui_mode'] == 'true'
agent.vm.boot_mode = 'gui' if v_config['gui_mode']
agent.vm.customize ["modifyvm", :id, "--name", "#{name}.puppetlabs.lan"]
agent.vm.host_name = "#{name.gsub('_', '-')}.puppetlabs.lan"

View File

@@ -1,3 +1,3 @@
---
gui_mode: true
gui_mode: false
operatingsystem: ubuntu