Created
June 1, 2016 10:30
-
-
Save cschwede/5b3efd9d2a5e0d5982c6096d30164b01 to your computer and use it in GitHub Desktop.
Vagrantfile for Swift/Keystone only devstack
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.ssh.forward_agent = true | |
config.vm.box = "centos7" | |
config.vm.box_url = "http://cloud.centos.org/centos/7/vagrant/x86_64/images/CentOS-7.box" | |
config.vm.provider "virtualbox" do |vb| | |
vb.memory = "2000" | |
end | |
config.vm.provision "shell", inline: <<-SHELL | |
sudo yum install -y git | |
git clone https://git.openstack.org/openstack-dev/devstack | |
cat << EOF > devstack/local.conf | |
[[local|localrc]] | |
ADMIN_PASSWORD=secret | |
DATABASE_PASSWORD=secret | |
SERVICE_PASSWORD=secret | |
SERVICE_TOKEN=91bb6245-11f7-411f-8f57-9ffec9019c8a | |
disable_all_services | |
enable_service key mysql s-proxy s-object s-container s-account | |
SWIFT_HASH=changeme | |
SWIFT_REPLICAS=1 | |
EOF | |
cat << EOF >> .bashrc | |
export OS_USERNAME=admin | |
export OS_TENANT_NAME=admin | |
export OS_PASSWORD=secret | |
export OS_AUTH_URL=http://10.0.2.15/identity/v3 | |
export OS_IDENTITY_API_VERSION=3 | |
EOF | |
chown -R vagrant:vagrant /home/vagrant/* | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment