microstack/tools/init/init
Corey Bryant e0901510d7 Add TLS OpenStack API endpoints
A new config.tls.generate-cert option is added that defaults to true.
When true, a self-signed certificate will be generated and OpenStack
API endpoints will be configured to use TLS with that self-signed
certificate. The following config options are added:

snap get microstack config.tls.generate-cert
snap get microstack config.tls.cacert-path
snap get microstack config.tls.cert-path
snap get microstack config.tls.key-path

Users can provide their own certificate by setting generate-cert to
false and storing their own certificates/key at the paths specified
by cacert-path, cert-path, and key-path. 'snap set' can also be used
to change the cert/key file names.

An important detail for clustering is that additional compute nodes
will need manual configuration of cacert-path, cert-path, and key-path.
The same certificates/key can can be copied from the controller node
to the compute node.

Other notable changes:
* The existing generate_selfsigned() function is modified to change
  the subject alternative name to be made up of the hostname and
  optionally an IP. The controller hostname and IP are used when
  generating the certificate for self-signed TLS endpoints. The
  hostname is now used instead of 'microstack.run' when generating
  the clustering certificate.
* This change also aligns logging for nginx and corresponding sites
  and moves all nginx sites to {snap_common}/etc/nginx/sites-enabled.

Depends-On: https://review.opendev.org/c/x/microstack/+/772900
Change-Id: Iceea3127822404a3275fcf8a221cbedc4b52c217
2021-03-17 17:08:10 -04:00
..
questions Add TLS OpenStack API endpoints 2021-03-17 17:08:10 -04:00
__init__.py Better init script 2019-08-23 16:30:31 +00:00
config.py Quieter init script 2019-09-18 12:15:00 +00:00
credentials.py Generate random passwords instead of hard-coding 2020-10-08 11:25:25 +03:00
main.py Add TLS OpenStack API endpoints 2021-03-17 17:08:10 -04:00
shell.py Rework the test framework & the clustering test 2021-01-15 15:58:03 +03:00
tls.py Add TLS OpenStack API endpoints 2021-03-17 17:08:10 -04:00