
Per Mitaka nova commit 8e8e839ef748be242fd0ad02e3ae233cc98da8b2 we now need to create and sync the 'nova_api' database. Closes-bug: #1539793 Co-Authored-By: Dan Prince <dprince@redhat.com> Co-Authored-By: Emilien Macchi <emilien@redhat.com> Change-Id: I234d2e9e219c6ea4235c3d3c5193b8924d6e6f8e
31 lines
747 B
Puppet
31 lines
747 B
Puppet
#
|
|
# Class to execute nova api_db sync
|
|
#
|
|
# ==Parameters
|
|
#
|
|
# [*extra_params*]
|
|
# (optional) String of extra command line parameters to append
|
|
# to the nova-manage db sync command. These will be inserted in
|
|
# the command line between 'nova-manage' and 'db sync'.
|
|
# Defaults to undef
|
|
#
|
|
class nova::db::sync_api(
|
|
$extra_params = undef,
|
|
) {
|
|
|
|
include ::nova::deps
|
|
include ::nova::params
|
|
|
|
exec { 'nova-db-sync-api':
|
|
command => "/usr/bin/nova-manage ${extra_params} api_db sync",
|
|
refreshonly => true,
|
|
logoutput => on_failure,
|
|
subscribe => [
|
|
Anchor['nova::install::end'],
|
|
Anchor['nova::config::end'],
|
|
Anchor['nova::dbsync_api::begin']
|
|
],
|
|
notify => Anchor['nova::dbsync_api::end'],
|
|
}
|
|
}
|