tripleo-image-elements/elements/mysql
2014-03-23 23:20:56 +00:00
..
environment.d Use xtradb-cluster in place of mysql 2014-03-18 17:06:56 -07:00
install.d Use xtradb-cluster in place of mysql 2014-03-18 17:06:56 -07:00
os-config-applier/mnt/state/etc/mysql Force UTF-8 charset and collation for MySQL 2014-01-30 15:31:52 -08:00
os-refresh-config Merge "Use xtradb-cluster in place of mysql" 2014-03-23 23:20:56 +00:00
element-deps Updates iptables rule for MySQL element 2014-01-20 09:23:40 -05:00
README.md Allow mysql.create-users to specify password. 2013-05-17 16:46:50 -07:00
source-repository-mysql Use xtradb-cluster in place of mysql 2014-03-18 17:06:56 -07:00

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.