2013-03-08 05:32:28 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# Fresh start
|
|
|
|
bundle exec vagrant-lxc destroy
|
|
|
|
|
|
|
|
# Skip provisioning as we need to apt-get update first
|
2013-03-09 05:22:52 +00:00
|
|
|
bundle exec vagrant-lxc up --no-provision --provider=lxc
|
|
|
|
|
|
|
|
# apt-get and install puppet so we can provision the dev machine
|
|
|
|
bundle exec vagrant-lxc provision --provision-with=shell
|
2013-03-08 05:32:28 +00:00
|
|
|
|
2013-03-09 05:22:52 +00:00
|
|
|
# Actual setup
|
|
|
|
bundle exec vagrant-lxc provision --provision-with=puppet
|
2013-03-08 05:32:28 +00:00
|
|
|
|
2013-03-09 05:22:52 +00:00
|
|
|
# Reload the container just to ensure it can boot properly after provisioning
|
2013-03-08 05:32:28 +00:00
|
|
|
bundle exec vagrant-lxc reload
|