Files
packstack/packstack/puppet/templates/mysql_nova_noinstall.pp
Martin Magr e570bdf748 Made MySQL installation optional
Fixes: rhbz#890175

Change-Id: Ib61d8b509c5f95243326c47bc745b881707ccf67
2013-08-29 17:56:28 +02:00

28 lines
837 B
Puppet

remote_database { 'nova':
ensure => 'present',
charset => 'latin1',
db_host => '%(CONFIG_MYSQL_HOST)s',
db_user => '%(CONFIG_MYSQL_USER)s',
db_password => '%(CONFIG_MYSQL_PW)s',
provider => 'mysql',
}
remote_database_user { 'nova@%%':
password_hash => mysql_password('%(CONFIG_NOVA_DB_PW)s' ),
db_host => '%(CONFIG_MYSQL_HOST)s',
db_user => '%(CONFIG_MYSQL_USER)s',
db_password => '%(CONFIG_MYSQL_PW)s',
provider => 'mysql',
require => Remote_database['nova'],
}
remote_database_grant { 'nova@%%/nova':
privileges => "all",
db_host => '%(CONFIG_MYSQL_HOST)s',
db_user => '%(CONFIG_MYSQL_USER)s',
db_password => '%(CONFIG_MYSQL_PW)s',
provider => 'mysql',
require => Remote_database_user['nova@%%'],
}