30 lines
927 B
Puppet
30 lines
927 B
Puppet
|
|
remote_database { 'manila':
|
|
ensure => 'present',
|
|
charset => 'utf8',
|
|
db_host => hiera('CONFIG_MARIADB_HOST'),
|
|
db_user => hiera('CONFIG_MARIADB_USER'),
|
|
db_password => hiera('CONFIG_MARIADB_PW'),
|
|
provider => 'mysql',
|
|
}
|
|
|
|
$mariadb_manila_noinstall_db_pw = hiera('CONFIG_MANILA_DB_PW')
|
|
|
|
remote_database_user { 'manila@%%':
|
|
password_hash => mysql_password($mariadb_manila_noinstall_db_pw),
|
|
db_host => hiera('CONFIG_MARIADB_HOST'),
|
|
db_user => hiera('CONFIG_MARIADB_USER'),
|
|
db_password => hiera('CONFIG_MARIADB_PW'),
|
|
provider => 'mysql',
|
|
require => Remote_database['manila'],
|
|
}
|
|
|
|
remote_database_grant { 'manila@%%/manila':
|
|
privileges => 'all',
|
|
db_host => hiera('CONFIG_MARIADB_HOST'),
|
|
db_user => hiera('CONFIG_MARIADB_USER'),
|
|
db_password => hiera('CONFIG_MARIADB_PW'),
|
|
provider => 'mysql',
|
|
require => Remote_database_user['manila@%%'],
|
|
}
|