tripleo-heat-templates/tools
Damien Ciabrini 0cb45d65c6 Generate MySQL client config if service requires database
Services that access database have to read an extra MySQL configuration file
/etc/my.cnf.d/tripleo.cnf which holds client-only settings, like client bind
address and SSL configuration. The configuration file is thus used by
containerized services, but also by non-containerized services that still
run on the host.

In order to generate that client configuration file appropriately both on the
host and for containers, 1) the MySQLClient service must be included by the
role; 2) every containerized service which uses the database must include the
mysql::client profile in the docker-puppet config generation step.

By including the mysql::client profile in each containerized service, we ensure
that any change in configuration file will be reflected in the service's
/var/lib/config-data/{service}, and that paunch will restart the service's
container automatically.

We now only rely on MySQLClient from puppet/services, to make it possible to
generate /etc/my.cnf.d/tripleo.cnf on the host, and to set the hiera keys that
drive the generation of that config file in containers via docker-puppet.

We include a new YAML validation step to ensure that any service which depends
on MySQL will initialize the mysql::client profile during the docker-puppet
step.

Change-Id: I0dab1dc9caef1e749f1c42cfefeba179caebc8d7
2017-07-27 13:41:13 -04:00
..
process-templates.py Modify generic role template to support custom networks 2017-07-05 17:30:17 +01:00
releasenotes_tox.sh Add ReNo support 2017-01-13 14:35:27 -05:00
roles-data-generate-samples.sh Add in roles data validation 2017-07-07 09:51:40 -06:00
roles-data-generate.py Add in roles data validation 2017-07-07 09:51:40 -06:00
roles-data-validation.sh Add in roles data validation 2017-07-07 09:51:40 -06:00
tox_install.sh Add ReNo support 2017-01-13 14:35:27 -05:00
yaml-nic-config-2-script.py Replace six.iteritems() with .items() 2017-04-07 15:23:50 +08:00
yaml-validate.py Generate MySQL client config if service requires database 2017-07-27 13:41:13 -04:00