From c8d34c6a0d47426c0c47083c402fab713dd9014c Mon Sep 17 00:00:00 2001 From: Steven Wirges Date: Wed, 12 Feb 2014 15:53:05 +0100 Subject: [PATCH] fixed https://github.com/patrickdlee/vagrant-examples/issues/3 --- example2/Vagrantfile | 12 +++++++----- example3/Vagrantfile | 12 +++++++----- example4/Vagrantfile | 12 +++++++----- example5/Vagrantfile | 12 +++++++----- example6/Vagrantfile | 12 +++++++----- example7/Vagrantfile | 12 +++++++----- 6 files changed, 42 insertions(+), 30 deletions(-) diff --git a/example2/Vagrantfile b/example2/Vagrantfile index b26ac16..083c4fd 100644 --- a/example2/Vagrantfile +++ b/example2/Vagrantfile @@ -15,9 +15,11 @@ Vagrant::Config.run do |config| config.vm.host_name = hostname + '.' + domain config.vm.network :hostonly, ip - config.vm.customize [ - 'modifyvm', :id, - '--name', hostname, - '--memory', ram - ] + config.vm "virtualbox" do |v| + v.customize[ + 'modifyvm', :id, + '--name', node[:hostname], + '--memory', memory.to_s + ] + end end diff --git a/example3/Vagrantfile b/example3/Vagrantfile index 3472edb..8bb40dd 100644 --- a/example3/Vagrantfile +++ b/example3/Vagrantfile @@ -15,11 +15,13 @@ Vagrant::Config.run do |config| config.vm.host_name = hostname + '.' + domain config.vm.network :hostonly, ip - config.vm.customize [ - 'modifyvm', :id, - '--name', hostname, - '--memory', ram - ] + config.vm "virtualbox" do |v| + v.customize[ + 'modifyvm', :id, + '--name', node[:hostname], + '--memory', memory.to_s + ] + end config.vm.provision :puppet do |puppet| puppet.manifests_path = 'puppet/manifests' diff --git a/example4/Vagrantfile b/example4/Vagrantfile index 414b8eb..aa1041c 100644 --- a/example4/Vagrantfile +++ b/example4/Vagrantfile @@ -15,11 +15,13 @@ Vagrant::Config.run do |config| config.vm.host_name = hostname + '.' + domain config.vm.network :hostonly, ip - config.vm.customize [ - 'modifyvm', :id, - '--name', hostname, - '--memory', ram - ] + config.vm "virtualbox" do |v| + v.customize[ + 'modifyvm', :id, + '--name', node[:hostname], + '--memory', memory.to_s + ] + end config.vm.provision :puppet do |puppet| puppet.manifests_path = 'puppet/manifests' diff --git a/example5/Vagrantfile b/example5/Vagrantfile index 8d2c735..38bdf34 100644 --- a/example5/Vagrantfile +++ b/example5/Vagrantfile @@ -15,11 +15,13 @@ Vagrant::Config.run do |config| config.vm.host_name = hostname + '.' + domain config.vm.network :hostonly, ip - config.vm.customize [ - 'modifyvm', :id, - '--name', hostname, - '--memory', ram - ] + config.vm "virtualbox" do |v| + v.customize[ + 'modifyvm', :id, + '--name', node[:hostname], + '--memory', memory.to_s + ] + end config.vm.provision :puppet do |puppet| puppet.manifests_path = 'puppet/manifests' diff --git a/example6/Vagrantfile b/example6/Vagrantfile index e4c5494..21d861a 100644 --- a/example6/Vagrantfile +++ b/example6/Vagrantfile @@ -17,11 +17,13 @@ Vagrant::Config.run do |config| node_config.vm.network :hostonly, node[:ip] memory = node[:ram] ? node[:ram] : 256; - node_config.vm.customize [ - 'modifyvm', :id, - '--name', node[:hostname], - '--memory', memory.to_s - ] + node_config.vm "virtualbox" do |v| + v.customize[ + 'modifyvm', :id, + '--name', node[:hostname], + '--memory', memory.to_s + ] + end end end diff --git a/example7/Vagrantfile b/example7/Vagrantfile index 166ec77..14e0b45 100644 --- a/example7/Vagrantfile +++ b/example7/Vagrantfile @@ -22,11 +22,13 @@ Vagrant::Config.run do |config| node_config.vm.network :hostonly, node[:ip] memory = node[:ram] ? node[:ram] : 256; - node_config.vm.customize [ - 'modifyvm', :id, - '--name', node[:hostname], - '--memory', memory.to_s - ] + node_config.vm "virtualbox" do |v| + v.customize[ + 'modifyvm', :id, + '--name', node[:hostname], + '--memory', memory.to_s + ] + end end end