Created
May 1, 2013 22:39
-
-
Save andersonvom/5498950 to your computer and use it in GitHub Desktop.
Devstack and opencafe development environment setup with vagrant
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
apt-get update | |
apt-get install -y vim curl build-essential python-pip python-unittest2 git | |
user="vagrant" | |
opencloud_repos="opencafe cloudroast cloudcafe" | |
for repo in $opencloud_repos | |
do | |
if [ ! -d $repo ]; then | |
su $user -c "git clone https://github.com/stackforge/$repo.git" | |
fi | |
pushd $repo | |
su $user -c "git pull" | |
su $user -c "sudo pip install . --upgrade" | |
popd | |
done | |
repo="devstack" | |
if [ ! -d "$repo" ]; then | |
su $user -c "git clone git://github.com/openstack-dev/$repo.git" | |
fi | |
pushd $repo | |
su $user -c "git pull" | |
su $user -c "yes 'password' | ./stack.sh" | |
popd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "precise64" | |
config.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
config.vm.provision :shell, :path => "bootstrap.sh" | |
config.vm.network :forwarded_port, guest: 80, host: 8080 | |
config.vm.provider :virtualbox do |vb| | |
vb.customize ["modifyvm", :id, "--memory", "4096"] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment