Files
apt-ostree/doc/source/install/common_prerequisites.rst
Charles Short f0baba8784 Initial release
Signed-off-by: Charles Short <charles.short@windriver.com>
2023-07-18 12:06:07 -04:00

2.2 KiB

Prerequisites

Before you install and configure the replace with the service it implements service, you must create a database, service credentials, and API endpoints.

  1. To create the database, complete these steps:

    • Use the database access client to connect to the database server as the root user:

      $ mysql -u root -p
    • Create the apt_ostree database:

      CREATE DATABASE apt_ostree;
    • Grant proper access to the apt_ostree database:

      GRANT ALL PRIVILEGES ON apt_ostree.* TO 'apt_ostree'@'localhost' \
        IDENTIFIED BY 'APT_OSTREE_DBPASS';
      GRANT ALL PRIVILEGES ON apt_ostree.* TO 'apt_ostree'@'%' \
        IDENTIFIED BY 'APT_OSTREE_DBPASS';

      Replace APT_OSTREE_DBPASS with a suitable password.

    • Exit the database access client.

      exit;
  2. Source the admin credentials to gain access to admin-only CLI commands:

    $ . admin-openrc
  3. To create the service credentials, complete these steps:

    • Create the apt_ostree user:

      $ openstack user create --domain default --password-prompt apt_ostree
    • Add the admin role to the apt_ostree user:

      $ openstack role add --project service --user apt_ostree admin
    • Create the apt_ostree service entities:

      $ openstack service create --name apt_ostree --description "replace with the service it implements" replace with the service it implements
  4. Create the replace with the service it implements service API endpoints:

    $ 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