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:
parent
4b95b9dae7
commit
47ee87f17c
|
@ -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:
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue