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:
Dan Bode 2011-06-22 16:49:59 -07:00
parent 5bca5c6837
commit f938c2b140
2 changed files with 6 additions and 6 deletions

View File

@ -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"],

View File

@ -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,