tripleo-image-elements/elements/mysql
Robert Collins ca62ece4a1 Rename os-config-applier to os-apply-config.
This is being done to reduce confusion between os-refresh-config and
os-config-applier. In order to make the transition smooth, all this
patch does is rename the element, install the now pypi available
os-apply-config, and support both the old and new directory names
for templates, allowing incremental migration of users.

Change-Id: I8c4c7679799f4e8b436ce766791f45f4c81d75f2
2013-06-14 20:39:18 +12:00
..
install.d Remove strict sql_mode setting which breaks apps. 2013-04-04 13:07:38 -07:00
os-config-applier/etc/mysql Create users in mysql server based on metadata 2013-04-02 01:34:32 +00:00
os-refresh-config/post-configure.d Allow mysql.create-users to specify password. 2013-05-17 16:46:50 -07:00
pre-install.d Rename flavour to element. 2012-12-05 14:04:58 -08:00
README.md Allow mysql.create-users to specify password. 2013-05-17 16:46:50 -07:00
element-deps Rename os-config-applier to os-apply-config. 2013-06-14 20:39:18 +12:00

README.md

Set up a MySQL server install in the image.

TODO: auto-tune settings based on host resources or metadata service.

Configuration

Users will be created if Heat Metadata is passed in under the 'mysql.create-users' section. For example:

mysql:
  create-users:
    - username: dbuser1
      database: somedb
      userhandle:
        Ref: SomeWaitConditionHandle

This will cause mysql to create the user 'dbuser1' if it does not exist, and grant it all privileges on somedb. It will have a random password generated and passed to the WaitConditionHandle with the key of the username, and password as the data. A password can also be given for the user like this:

mysql:
  create-users:
    - username: dbuser2
      database: somedb
      password: abcdefg12345

If a userhandle is also given with the password, it will be passed to the wait condition handle in the same manner.