DB sync should also require db privs

Currently, the db_sync exec was just dependent on the
db existing, but it did not require the correct users with th
correct privs were created.

This commit fixes that.
This commit is contained in:
Dan Bode 2012-04-12 14:13:43 -07:00
parent 4b95b9dae7
commit 47ee87f17c
2 changed files with 2 additions and 2 deletions

View File

@ -11,6 +11,8 @@ class glance::db(
$cluster_id = 'localzone'
) {
Class['glance::db'] ~> Exec<| title == 'glance-manage db_sync' |>
require 'mysql::python'
mysql::db { $dbname:

View File

@ -33,8 +33,6 @@ class glance::registry(
content => template('glance/glance-registry-paste.ini.erb'),
}
Database<| title == 'glance' |> ~> Exec['glance-manage db_sync']
exec { 'glance-manage db_sync':
path => '/usr/bin',
refreshonly => true,