initialize the database after it is created.

This commit is contained in:
Adam Gandelman 2011-06-02 21:03:46 -07:00
parent a325487629
commit 1589f32680
1 changed files with 7 additions and 0 deletions

View File

@ -13,11 +13,18 @@ class nova::db(
tag => $zone,
}
exec { "initial-db-sync":
command => "/usr/bin/nova-manage db sync",
require => Package["nova-common"],
refreshonly => true,
}
mysql::db { $name:
user => $user,
password => $password,
host => $host,
# I may want to inject some sql
require => Class['mysql::server'],
notify => Exec["initial-db-sync"],
}
}