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:
4
Vagrantfile
vendored
4
Vagrantfile
vendored
@@ -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"
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
---
|
||||
gui_mode: true
|
||||
gui_mode: false
|
||||
operatingsystem: ubuntu
|
||||
|
||||
Reference in New Issue
Block a user