2 # Class to execute barometer-manage db_sync
7 # (optional) String of extra command line parameters to append
8 # to the barometer-dbsync command.
11 class barometer::db::sync(
12 $extra_params = undef,
14 exec { 'barometer-db-sync':
15 command => "barometer-manage db_sync ${extra_params}",
16 path => [ '/bin', '/usr/bin', ],
21 logoutput => on_failure,
22 subscribe => [Package['barometer'], Barometer_config['database/connection']],
25 Exec['barometer-manage db_sync'] ~> Service<| title == 'barometer' |>