1.9 KiB
1.9 KiB
Prerequisites
Before you install and configure the gyan 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
rootuser:$ mysql -u root -pCreate the
gyandatabase:CREATE DATABASE gyan;Grant proper access to the
gyandatabase:GRANT ALL PRIVILEGES ON gyan.* TO 'gyan'@'localhost' \ IDENTIFIED BY 'GYAN_DBPASS'; GRANT ALL PRIVILEGES ON gyan.* TO 'gyan'@'%' \ IDENTIFIED BY 'GYAN_DBPASS';Replace
GYAN_DBPASSwith a suitable password.Exit the database access client.
exit;
Source the
admincredentials to gain access to admin-only CLI commands:$ . admin-openrcTo create the service credentials, complete these steps:
Create the
gyanuser:$ openstack user create --domain default --password-prompt gyanAdd the
adminrole to thegyanuser:$ openstack role add --project service --user gyan adminCreate the gyan service entities:
$ openstack service create --name gyan --description "gyan" gyan
Create the gyan service API endpoints:
$ openstack endpoint create --region RegionOne \ gyan public http://controller:XXXX/vY/%\(tenant_id\)s $ openstack endpoint create --region RegionOne \ gyan internal http://controller:XXXX/vY/%\(tenant_id\)s $ openstack endpoint create --region RegionOne \ gyan admin http://controller:XXXX/vY/%\(tenant_id\)s