Use the steps below to install OpenStack Dalmatian via Packstack.
-
Disable SeLinux using the command below:
|
|
|
|
Alternatively, open the /etc/selinux/config file and change permissive to disabled as shown below. Then reboot your machine.
This is for demonstration purposes only. Add the OpenStack Barbican files and directories in the SELinux context in a production environment.
-
Change the hostname to controller by using the below command and reboot.
|
|
|
|
-
Map barbican and controller to IP in /etc/hosts file.
|
|
|
|
-
Stop the firewall and NetworkManager using the below command.
This is for demonstration purpose only. In production environment allow openstack barbican services through firewall.
|
|
|
|
-
Set up the timezone.
|
|
|
|
-
Enable the required repositories.
|
|
|
|
-
Install OpenStack Packstack by using the following commands.
|
|
|
|
-
Install the OpenStack instance.
|
|
|
|
An answer file will be generated in /root/. This file contains the passwords automatically generated by Packsack and used by MariaDB and other services.
-
Open mysql as root.
|
|
|
|
-
Create a database Barbican and allow full permission to the Barbican user.
|
|
|
|
-
Restart the http daemon.
|
|
|
|
-
Set the environment variable for OpenStack.
|
›_ Console |
|
# source /root/keystonerc_admin |
-
Create a user barbican in OpenStack.
|
|
|
|
-
Add the admin role to the user barbican in project services.
|
|
|
|
-
Add the creator role.
|
|
|
|
-
Add the creator role to the barbican user.
|
|
|
|
-
Create the barbican service entities.
|
|
|
|
-
Create the Key Manager service API public endpoint.
|
›_ Console |
|
# openstack endpoint create --region RegionOne key-manager public http://172.28.14.25:9311 |
-
Create the Key Manager service API Internal endpoint.
|
|
|
|
-
Create the Key Manager service API Admin endpoint.
|
|
|
|
-
List the Key Manager service API endpoints created.
|
|
|
|
-
Install OpenStack Barbican:
|
›_ Console |
|
# dnf install -y openstack-barbican |
-
Add the below information to the /etc/barbican/barbican.conf file. You can replace the username and password with the ones you set earlier during installation.
|
|
|
|
-
Populate the Key Manager service database.
|
|
|
|
-
Restart Barbican API service.
|
|
|
|
-
Restart and enable the httpd service.
|
|
|
|