Run a local MySQL service on StoryBoard servers

In preparation to move the SB data out of Trove instances to a local
database, make sure the database is created via configuration
management. Make the mysql_backup resource require
storyboard::database instead of storyboard::application to work
around a package resource conflict.

A separate maintenance window will be used to move the data, coupled
with a change of database hostname in private Hiera. Following that,
a followup change will switch the database backups from remote to
local.

Change-Id: I912130ad8a5a139147727e49800e36e2afd815f7
This commit is contained in:
Jeremy Stanley 2018-12-06 19:11:56 +00:00
parent 7f3963efca
commit a547a75dd9
1 changed files with 7 additions and 1 deletions

View File

@ -29,11 +29,17 @@ class openstack_project::storyboard(
class { 'openstack_project::server': }
class { '::storyboard::mysql':
mysql_database => 'storyboard',
mysql_user => $mysql_user,
mysql_user_password => $mysql_password,
}
mysql_backup::backup_remote { 'storyboard':
database_host => $mysql_host,
database_user => $mysql_user,
database_password => $mysql_password,
require => Class['::storyboard::application'],
require => Class['::storyboard::mysql'],
}
class { '::storyboard::cert':