moved db-sync to nova::api
- db should not be respnsoble for managing its migration. - it should not have to install nova - it may be an external utility - nova::api was chosen as the best component to couple the migration to.
This commit is contained in:
parent
5bca5c6837
commit
f938c2b140
|
@ -8,6 +8,12 @@ class nova::api($enabled=false) {
|
|||
$service_ensure = 'stopped'
|
||||
}
|
||||
|
||||
exec { "initial-db-sync":
|
||||
command => "/usr/bin/nova-manage db sync",
|
||||
refreshonly => true,
|
||||
require => [Package["nova-common"], Nova_config['sql_connection']]
|
||||
}
|
||||
|
||||
package { "nova-api":
|
||||
ensure => present,
|
||||
require => Package["python-greenlet"],
|
||||
|
|
|
@ -17,12 +17,6 @@ class nova::db(
|
|||
tag => $zone,
|
||||
}
|
||||
|
||||
exec { "initial-db-sync":
|
||||
command => "/usr/bin/nova-manage db sync",
|
||||
refreshonly => true,
|
||||
require => [Package["nova-common"],Nova_config['sql_connection']]
|
||||
}
|
||||
|
||||
mysql::db { $name:
|
||||
user => $user,
|
||||
password => $password,
|
||||
|
|
Loading…
Reference in New Issue