| Prerequisites |
| ------------- |
| |
| Before you install and configure the replace with the service it implements service, |
| you must create a database, service credentials, and API endpoints. |
| |
| #. To create the database, complete these steps: |
| |
| * Use the database access client to connect to the database |
| server as the ``root`` user: |
| |
| .. code-block:: console |
| |
| $ mysql -u root -p |
| |
| * Create the ``staffeln`` database: |
| |
| .. code-block:: none |
| |
| CREATE DATABASE staffeln; |
| |
| * Grant proper access to the ``staffeln`` database: |
| |
| .. code-block:: none |
| |
| GRANT ALL PRIVILEGES ON staffeln.* TO 'staffeln'@'localhost' \ |
| IDENTIFIED BY 'STAFFELN_DBPASS'; |
| GRANT ALL PRIVILEGES ON staffeln.* TO 'staffeln'@'%' \ |
| IDENTIFIED BY 'STAFFELN_DBPASS'; |
| |
| Replace ``STAFFELN_DBPASS`` with a suitable password. |
| |
| * Exit the database access client. |
| |
| .. code-block:: none |
| |
| exit; |
| |
| #. Source the ``admin`` credentials to gain access to |
| admin-only CLI commands: |
| |
| .. code-block:: console |
| |
| $ . admin-openrc |
| |
| #. To create the service credentials, complete these steps: |
| |
| * Create the ``staffeln`` user: |
| |
| .. code-block:: console |
| |
| $ openstack user create --domain default --password-prompt staffeln |
| |
| * Add the ``admin`` role to the ``staffeln`` user: |
| |
| .. code-block:: console |
| |
| $ openstack role add --project service --user staffeln admin |
| |
| * Create the staffeln service entities: |
| |
| .. code-block:: console |
| |
| $ openstack service create --name staffeln --description "replace with the service it implements" replace with the service it implements |
| |
| #. Create the replace with the service it implements service API endpoints: |
| |
| .. code-block:: console |
| |
| $ openstack endpoint create --region RegionOne \ |
| replace with the service it implements public http://controller:XXXX/vY/%\(tenant_id\)s |
| $ openstack endpoint create --region RegionOne \ |
| replace with the service it implements internal http://controller:XXXX/vY/%\(tenant_id\)s |
| $ openstack endpoint create --region RegionOne \ |
| replace with the service it implements admin http://controller:XXXX/vY/%\(tenant_id\)s |