tripleo-heat-templates/deployment/gnocchi
Damien Ciabrini c4b9f95835 Simplify mysql users creation
Openstack users are configured with openstacklib, which in turns
drive puppet-mysql to create several DB user for each db service:
<service>@'%' <service>@<ip> and <service>@<mysql_vip>.

We create several users because we use two different parameters
host and allowed_hosts in openstacklib, which only has the effect
of creating a list of users per openstack service.

However since we always create a user '%', this wildcard host
will always allow connection to the DB, so the other users are
currently not useful as they don't get any additional grants or
restrictions.

Simplify the entire mysql user creation to only generate one
user per service, with a wildcard host.

Slight context conflicts in:
  deployment/neutron/neutron-api-container-puppet.yaml

Change-Id: I928b03f06c702a13f4bd957eaa79153aa711cee4
Closes-Bug: #1943440
Closes-Bug: #1943330
(cherry picked from commit f2015da4b5)
2021-09-24 11:06:39 +02:00
..
gnocchi-api-container-puppet.yaml Simplify mysql users creation 2021-09-24 11:06:39 +02:00
gnocchi-base.yaml Use 'wallaby' heat_template_version 2021-03-31 17:35:12 +05:30
gnocchi-metricd-container-puppet.yaml Use 'wallaby' heat_template_version 2021-03-31 17:35:12 +05:30
gnocchi-statsd-container-puppet.yaml Use 'wallaby' heat_template_version 2021-03-31 17:35:12 +05:30