Jump to: navigation, search

Difference between revisions of "BarbicanDevStack"

(Running Barbican via DevStack)
(Running Barbican via DevStack)
Line 9: Line 9:
 
$ git clone https://github.com/openstack/barbican.git
 
$ git clone https://github.com/openstack/barbican.git
 
$ mv barbican/contrib/devstack/lib/barbican devstack/lib/
 
$ mv barbican/contrib/devstack/lib/barbican devstack/lib/
 +
$ mv barbican/contrib/devstack/local.conf devstack/
 
$ mv barbican/contrib/devstack/extras.d/70-barbican.sh devstack/extras.d/
 
$ mv barbican/contrib/devstack/extras.d/70-barbican.sh devstack/extras.d/
 
$ sudo ./devstack/tools/create-stack-user.sh
 
$ sudo ./devstack/tools/create-stack-user.sh
Line 16: Line 17:
 
$ su - stack
 
$ su - stack
 
$ cd /opt/stack/devstack/
 
$ cd /opt/stack/devstack/
</nowiki></pre>
 
 
You'll need to create and edit a file called '''local.conf''':
 
 
<pre><nowiki>
 
$ nano local.conf
 
</nowiki></pre>
 
 
To just run Barbican and required services add the following into the '''local.conf''' file and modify the passwords as required:
 
 
<pre><nowiki>
 
[[local|localrc]]
 
disable_all_services
 
enable_service rabbit mysql key barbican
 
 
# We do this to keep the token small so we don't run into issues
 
# with the token being too large in the headers, this works great
 
# for testing, etc.
 
KEYSTONE_TOKEN_FORMAT=UUID
 
 
DATABASE_PASSWORD=password
 
RABBIT_PASSWORD=password
 
SERVICE_TOKEN=password
 
SERVICE_PASSWORD=password
 
ADMIN_PASSWORD=password
 
 
</nowiki></pre>
 
</nowiki></pre>
  
Line 49: Line 25:
 
</nowiki></pre>
 
</nowiki></pre>
  
'''Note:''' If you have issues (compute might be throwing some errors) you can ease back the firewall. Keep in mind this opens your computer up completely. '''Only do this if you know what you are doing and if you are having issues'''. Adjust as needed.
+
'''Note:''' If you have issues (compute might be throwing some errors - assuming you've enabled compute because we don't by default in the local.conf) you can ease back the firewall. Keep in mind this opens your computer up completely. '''Only do this if you know what you are doing and if you are having issues'''. Adjust as needed.
  
 
<pre><nowiki>
 
<pre><nowiki>

Revision as of 18:24, 5 June 2014

Running Barbican via DevStack

Steps to run Barbican via DevStack (assuming Ubuntu 12.04 LTS or Ubuntu 14.04 LTS):

$ sudo apt-get update
$ sudo apt-get install libffi-dev libssl-dev git -y
$ git clone https://github.com/openstack-dev/devstack.git
$ git clone https://github.com/openstack/barbican.git
$ mv barbican/contrib/devstack/lib/barbican devstack/lib/
$ mv barbican/contrib/devstack/local.conf devstack/
$ mv barbican/contrib/devstack/extras.d/70-barbican.sh devstack/extras.d/
$ sudo ./devstack/tools/create-stack-user.sh
$ sudo mv devstack/ /opt/stack/
$ rm -rf barbican/
$ chown -R stack:stack /opt/stack/devstack/
$ su - stack
$ cd /opt/stack/devstack/

This next step will take a while to run but the end result is you should have Barbican running under DevStack:

$ ./stack.sh

Note: If you have issues (compute might be throwing some errors - assuming you've enabled compute because we don't by default in the local.conf) you can ease back the firewall. Keep in mind this opens your computer up completely. Only do this if you know what you are doing and if you are having issues. Adjust as needed.

# Flush all firewall 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