puppet-tacker/manifests/db/sync.pp

24 lines
582 B
Puppet

#
# Class to execute tacker-manage db_sync
#
# == Parameters
#
# [*extra_params*]
# (optional) String of extra command line parameters to append
# to the tacker-dbsync command.
# Defaults to undef
#
class tacker::db::sync(
$extra_params = undef,
) {
exec { 'tacker-db-sync':
command => "tacker-manage db_sync ${extra_params}",
path => '/usr/bin',
user => 'tacker',
refreshonly => true,
subscribe => [Package['tacker'], Tacker_config['database/connection']],
}
Exec['tacker-manage db_sync'] ~> Service<| title == 'tacker' |>
}