blob: 280200af0b68f3887abb9324948592c0d9e73cff [file] [log] [blame]
okozachenko093ce9e2021-04-01 22:47:39 +03001Prerequisites
2-------------
3
4Before you install and configure the replace with the service it implements service,
5you must create a database, service credentials, and API endpoints.
6
7#. To create the database, complete these steps:
8
9 * Use the database access client to connect to the database
10 server as the ``root`` user:
11
12 .. code-block:: console
13
14 $ mysql -u root -p
15
16 * Create the ``staffeln`` database:
17
18 .. code-block:: none
19
20 CREATE DATABASE staffeln;
21
22 * Grant proper access to the ``staffeln`` database:
23
24 .. code-block:: none
25
26 GRANT ALL PRIVILEGES ON staffeln.* TO 'staffeln'@'localhost' \
27 IDENTIFIED BY 'STAFFELN_DBPASS';
28 GRANT ALL PRIVILEGES ON staffeln.* TO 'staffeln'@'%' \
29 IDENTIFIED BY 'STAFFELN_DBPASS';
30
31 Replace ``STAFFELN_DBPASS`` with a suitable password.
32
33 * Exit the database access client.
34
35 .. code-block:: none
36
37 exit;
38
39#. Source the ``admin`` credentials to gain access to
40 admin-only CLI commands:
41
42 .. code-block:: console
43
44 $ . admin-openrc
45
46#. To create the service credentials, complete these steps:
47
48 * Create the ``staffeln`` user:
49
50 .. code-block:: console
51
52 $ openstack user create --domain default --password-prompt staffeln
53
54 * Add the ``admin`` role to the ``staffeln`` user:
55
56 .. code-block:: console
57
58 $ openstack role add --project service --user staffeln admin
59
60 * Create the staffeln service entities:
61
62 .. code-block:: console
63
64 $ openstack service create --name staffeln --description "replace with the service it implements" replace with the service it implements
65
66#. Create the replace with the service it implements service API endpoints:
67
68 .. code-block:: console
69
70 $ openstack endpoint create --region RegionOne \
71 replace with the service it implements public http://controller:XXXX/vY/%\(tenant_id\)s
72 $ openstack endpoint create --region RegionOne \
73 replace with the service it implements internal http://controller:XXXX/vY/%\(tenant_id\)s
74 $ openstack endpoint create --region RegionOne \
75 replace with the service it implements admin http://controller:XXXX/vY/%\(tenant_id\)s