Last active
August 29, 2015 13:57
-
-
Save jmvrbanac/9395710 to your computer and use it in GitHub Desktop.
Setup Development DevStack for Barbican
This file contains 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
#!/bin/sh | |
# This script is designed to be used on a disposable cloud server | |
sudo apt-get update | |
sudo apt-get install git -y | |
mkdir -p Repositories | |
cd Repositories | |
git clone https://github.com/openstack-dev/devstack.git | |
git clone https://github.com/stackforge/barbican.git | |
mv barbican/contrib/devstack/lib/barbican devstack/lib/ | |
mv barbican/contrib/devstack/extras.d/70-barbican.sh devstack/extras.d/ | |
# Flush all FW rules for Devstack... | |
# (Only do this if you really know what you're doing and have problems running devstack) | |
iptables -F | |
iptables -P INPUT ACCEPT | |
iptables -P FORWARD ACCEPT | |
iptables -P OUTPUT ACCEPT | |
# Create Devstack User | |
./devstack/tools/create-stack-user.sh | |
mv devstack/ /opt/stack/ | |
rm -rf barbican/ | |
chown -R stack:stack /opt/stack/devstack/ | |
su - stack | |
cd /opt/stack/devstack/ | |
# Setup Config | |
echo "[[local|localrc]] | |
enable_service barbican | |
KEYSTONE_TOKEN_FORMAT=UUID | |
DATABASE_PASSWORD=password | |
RABBIT_PASSWORD=password | |
SERVICE_TOKEN=password | |
SERVICE_PASSWORD=password | |
ADMIN_PASSWORD=password" > local.conf | |
# Start Devstack | |
./stack.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment