![Graham Hayes](/assets/img/avatar_default.png)
Also added no-op zuul jobs to get started Change-Id: I5596d26c78f76020bd08830a7bbe3d1064fad34f
2.2 KiB
Prerequisites
Before you install and configure the certbot-dns-openstack 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:$ mysql -u root -p
Create the
certbot_dns_openstack
database:CREATE DATABASE certbot_dns_openstack;
Grant proper access to the
certbot_dns_openstack
database:GRANT ALL PRIVILEGES ON certbot_dns_openstack.* TO 'certbot_dns_openstack'@'localhost' \ IDENTIFIED BY 'CERTBOT_DNS_OPENSTACK_DBPASS'; GRANT ALL PRIVILEGES ON certbot_dns_openstack.* TO 'certbot_dns_openstack'@'%' \ IDENTIFIED BY 'CERTBOT_DNS_OPENSTACK_DBPASS';
Replace
CERTBOT_DNS_OPENSTACK_DBPASS
with a suitable password.Exit the database access client.
exit;
Source the
admin
credentials to gain access to admin-only CLI commands:$ . admin-openrc
To create the service credentials, complete these steps:
Create the
certbot_dns_openstack
user:$ openstack user create --domain default --password-prompt certbot_dns_openstack
Add the
admin
role to thecertbot_dns_openstack
user:$ openstack role add --project service --user certbot_dns_openstack admin
Create the certbot_dns_openstack service entities:
$ openstack service create --name certbot_dns_openstack --description "certbot-dns-openstack" certbot-dns-openstack
Create the certbot-dns-openstack service API endpoints:
$ openstack endpoint create --region RegionOne \ certbot-dns-openstack public http://controller:XXXX/vY/%\(tenant_id\)s $ openstack endpoint create --region RegionOne \ certbot-dns-openstack internal http://controller:XXXX/vY/%\(tenant_id\)s $ openstack endpoint create --region RegionOne \ certbot-dns-openstack admin http://controller:XXXX/vY/%\(tenant_id\)s