puppet-heat/manifests/db/sync.pp
Nate Potter 4d4430efd6 Allow customization of db sync command line
Add parameter to heat::db::sync to allow end
users to add command line parameters to the db sync command.

Change-Id: Id9de1022481fbeedc3db78a3dd2e3c5f2a962e10
Partial-bug: #1472740
2015-11-19 15:18:27 +00:00

33 lines
830 B
Puppet

#
# Class to execute heat dbsync
#
# ==Parameters
#
# [*extra_params*]
# (optional) String of extra command line parameters to append
# to the heat-manage db_sync command. These will be inserted
# in the command line between 'heat-manage' and 'db_sync'.
# Defaults to '--config-file /etc/heat/heat.conf'
#
class heat::db::sync(
$extra_params = '--config-file /etc/heat/heat.conf',
) {
include ::heat::deps
include ::heat::params
exec { 'heat-dbsync':
command => "heat-manage ${extra_params} db_sync",
path => '/usr/bin',
user => 'heat',
refreshonly => true,
logoutput => on_failure,
subscribe => [
Anchor['heat::install::end'],
Anchor['heat::config::end'],
Anchor['heat::dbsync::begin']
],
notify => Anchor['heat::dbsync::end'],
}
}