Jump to: navigation, search

Difference between revisions of "BarbicanDevStack"

(Created page with "== Running Barbican via DevStack == Steps to run Barbican via DevStack (assuming Ubuntu 12.04 LTS): <pre><nowiki> $ sudo apt-get update $ sudo apt-get install git -y $ git c...")
 
(Running Barbican via DevStack)
Line 24: Line 24:
 
</nowiki></pre>
 
</nowiki></pre>
  
Add the following into the '''local.conf''' file and modify the passwords as required:
+
To just run Barbican and required services add the following into the '''local.conf''' file and modify the passwords as required:
  
 
<pre><nowiki>
 
<pre><nowiki>
 
[[local|localrc]]
 
[[local|localrc]]
enable_service barbican
+
disable_all_services
 +
enable_service rabbit mysql key barbican
 +
 
 
KEYSTONE_TOKEN_FORMAT=UUID
 
KEYSTONE_TOKEN_FORMAT=UUID
 
# If you don't need these services
 
# un-comment them to speed up
 
# the DevStack install time
 
#disable_service horizon
 
#disable_service glance
 
#disable_service cinder
 
#disable_service nova
 
  
 
DATABASE_PASSWORD=password
 
DATABASE_PASSWORD=password

Revision as of 15:41, 2 May 2014

Running Barbican via DevStack

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

$ sudo apt-get update
$ sudo apt-get install git -y
$ 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/
$ ./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/

You'll need to create and edit a file called local.conf:

$ nano local.conf

To just run Barbican and required services add the following into the local.conf file and modify the passwords as required:

[[local|localrc]]
disable_all_services
enable_service rabbit mysql key barbican

KEYSTONE_TOKEN_FORMAT=UUID

DATABASE_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_TOKEN=password
SERVICE_PASSWORD=password
ADMIN_PASSWORD=password

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) 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