Adding custom databases and database users in TripleO
by Juan Antonio Osorio Robles
For folks integrating with TripleO, it has been quite painful to always need to modify puppet in order to integrate with the engine. This has been typically the case for things like adding a HAProxy andpoint and adding a database and a database user (and grants). As mentioned in a previous post, this is no longer the case for HAProxy endpoints, and this ability has been in TripleO for a a couple of releases now.
With the same logic in mind, I added this same functionality for mysql databases and database users. And this relecently landed in Stein. So, all you need to do is add something like this to your service template:
This will create:
- A database called
- A user that can access that database, called
- The user
myuserwill have the password
- And grants will be created so that user can connect from the hosts specificed
Now you don’t need to modify puppet to add a new service to TripleO!
tags: tripleo - openstack