Barbican is a ReST API designed for the secure storage, provisioning
and management of secrets. It is aimed at being useful for all
environments, including large ephemeral Clouds. All documentation and
work can be found on either Launchpad or Github at the following
locations:
Step-by-step guide for ubuntu
For some reason I ran into issues while installing Barbicun from these instructions(https://github.com/cloudkeep/barbican/wiki/Barbican-Quick-Start-Guide) hence I am adding here what all I did to make it workInstall prereqs
sudo apt-get install libxml2-devsudo apt-get install python-dev sudo apt-get install libsqlite3-dev
sudo apt-get install libxslt1-dev
sudo apt-get install libbz2-dev libldap2-dev libsasl2-dev
sudo apt-get install libffi-dev sudo apt-get install libssl-dev
- Install pyenv
curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash - install pyenv-virtualenv
git clone https://github.com/yyuu/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bash_profile
exec "$SHELL"
- pyenv install 2.7.5
- pyenv virtualenv 2.7.5 barbican27
- pyenv shell barbican27
- bin/barbican.sh install
Note:- if you run into any "module not found" kind of error .. means its time to restart . remove virtualenv , install what is missing (in my case it was biz2 so installing libbz2-dev helped) and then redo all the steps from step 2. - you can test step 7 once you see " [emperor]
vassal barbican-api.ini is ready to accept requests" by "curl -H
'X-Project-Id:12345' localhost:9311"
response looks like {"v1": "current", "build": "2015.1.dev103"} on client
and "[emperor] vassal barbican-api.ini is now loyal" on server side ( somebody knows what's good humour ) out there
Step-by-step guide for centos
For some reason I ran into issues while installing Barbicun from these instructions(https://github.com/cloudkeep/barbican/wiki/Barbican-Quick-Start-Guide) hence I am adding here what all I did to make it workInstall prereqs
sudo yum install openssl
sudo yum install libffi-devel sudo yum install openssl-devel
sudo yum install python-devel sudo yum install sqlite-devel
sudo yum install openldap-devel
- Install pyenv
curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash - if above does not work run this script https://gist.github.com/ysaotome/7956676
- install pyenv-virtualenv
git clone https://github.com/yyuu/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bash_profile
exec "$SHELL"
- pyenv install 2.7.6
- pyenv virtualenv 2.7.6 barbican27
- pyenv activate barbican27
- pyenv shell barbican27
- bin/barbican.sh install
Note:- if you run into any "module not found" kind of error .. means its time to restart . remove virtualenv (rm -rf /root/.pyenv/versions/barbican27/), install what is missing (in my case it was biz2 so installing libbz2-dev helped) and then redo all the steps from step 2. - you can test step 7 once you see " [emperor]
vassal barbican-api.ini is ready to accept requests" by "curl -H
'X-Project-Id:12345' localhost:9311"
response looks like {"v1": "current", "build": "2015.1.dev103"} on client
and "[emperor] vassal barbican-api.ini is now loyal" on server side ( somebody knows what's good humour ) out there
No comments:
Post a Comment