forked from dm-academy/Calavera
-
Notifications
You must be signed in to change notification settings - Fork 0
/
startup.sh
executable file
·28 lines (21 loc) · 956 Bytes
/
startup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /bin/bash
# This is to initialize Vagrant on Mac OS and Linux machines. Will not work with Windows.
# Be sure that /var/vagrant/boxes exists and you have write access
# don't run as sudo
#install Vagrant
#install chefdk
#install virtualbox plugin
#install berkshelf plugin
# fix that pesky berkshelf issue with **/.git
vagrant plugin install vagrant-berkshelf
vagrant destroy base -f # insert guard
rm -f package.box
rm -f ./shared/keys/* # re-set public/private keys
vagrant box add http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-14.04_chef-provisionerless.box --name opscode/temp --force
vagrant up base
vagrant package base
mkdir -p /var/vagrant/boxes/ # shared public location - better enables creating mutiple pipelines
cp package.box /var/vagrant/boxes/opscode-ubuntu-14.04a.box
vagrant box add opscode-ubuntu-14.04a /var/vagrant/boxes/opscode-ubuntu-14.04a.box -f
rm -f package.box
vagrant destroy base -f