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.
This commit is contained in:
David Schoen 2013-03-15 09:16:50 +11:00
parent ef19c1e0b3
commit f9d118840b

View file

@ -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", "../"