From f9d118840b00b75c6948c060148f9872e52de81e Mon Sep 17 00:00:00 2001 From: David Schoen Date: Fri, 15 Mar 2013 09:16:50 +1100 Subject: [PATCH] set hostname for 1.0 as required by provisioning In a fresh checkout: $ ( cd development; ln -s Vagrantfile{.1.0,}; vagrant up ) Was failing with: err: /Stage[main]//Exec[config-lxc]/returns: change from notrun to 0 failed: cp /vagrant/development/lxc-configs/quantal64 /etc/default/lxc returned 1 instead of one of [0] at /tmp/vagrant-puppet/manifests/site.pp:19 because the hostname was "quantal64" and the puppet manifest attempts to install the lxc-config based on the hostname name of the VM. --- development/Vagrantfile.1.0 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/development/Vagrantfile.1.0 b/development/Vagrantfile.1.0 index a8debc5..044de4d 100644 --- a/development/Vagrantfile.1.0 +++ b/development/Vagrantfile.1.0 @@ -12,8 +12,9 @@ def local_cache(box_name) end Vagrant::Config.run do |config| - config.vm.box = "quantal64" - config.vm.box_url = "https://github.com/downloads/roderik/VagrantQuantal64Box/quantal64.box" + config.vm.box = "quantal64" + config.vm.box_url = "https://github.com/downloads/roderik/VagrantQuantal64Box/quantal64.box" + config.vm.host_name = 'lxc-dev-box' cache_dir = local_cache(config.vm.box) config.vm.share_folder "v-root", "/vagrant", "../"