Tacker uses tacker-db-manage now
Change-Id: I2f093c62983069af862ff9bcfa916d0a51b0d1ef
This commit is contained in:
parent
59af11449d
commit
2132022167
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Class to execute tacker-manage db_sync
|
||||
# Class to execute tacker-db-manage
|
||||
#
|
||||
# == Parameters
|
||||
#
|
||||
|
@ -8,16 +8,21 @@
|
|||
# to the tacker-dbsync command.
|
||||
# Defaults to undef
|
||||
#
|
||||
# [*user*]
|
||||
# (optional) User to run dbsync command.
|
||||
# Defaults to 'congress'
|
||||
#
|
||||
class tacker::db::sync(
|
||||
$extra_params = undef,
|
||||
$user = 'tacker',
|
||||
) {
|
||||
|
||||
include ::tacker::deps
|
||||
|
||||
exec { 'tacker-db-sync':
|
||||
command => "tacker-manage db_sync ${extra_params}",
|
||||
path => '/usr/bin',
|
||||
user => 'tacker',
|
||||
command => "tacker-db-manage ${extra_params} upgrade head",
|
||||
path => ['/bin', '/usr/bin'],
|
||||
user => $user,
|
||||
refreshonly => true,
|
||||
try_sleep => 5,
|
||||
tries => 10,
|
||||
|
|
|
@ -6,9 +6,9 @@ describe 'tacker::db::sync' do
|
|||
|
||||
it 'runs tacker-manage db sync' do
|
||||
is_expected.to contain_exec('tacker-db-sync').with(
|
||||
:command => 'tacker-manage db_sync ',
|
||||
:command => 'tacker-db-manage upgrade head',
|
||||
:user => 'tacker',
|
||||
:path => '/usr/bin',
|
||||
:path => ['/bin','/usr/bin'],
|
||||
:refreshonly => 'true',
|
||||
:try_sleep => 5,
|
||||
:tries => 10,
|
||||
|
@ -28,15 +28,15 @@ describe 'tacker::db::sync' do
|
|||
|
||||
it {
|
||||
is_expected.to contain_exec('tacker-db-sync').with(
|
||||
:command => 'tacker-manage db_sync --config-file /etc/tacker/tacker.conf',
|
||||
:command => 'tacker-db-manage --config-file /etc/tacker/tacker.conf upgrade head',
|
||||
:user => 'tacker',
|
||||
:path => '/usr/bin',
|
||||
:path => ['/bin','/usr/bin'],
|
||||
:refreshonly => 'true',
|
||||
:try_sleep => 5,
|
||||
:tries => 10,
|
||||
:subscribe => ['Anchor[tacker::install::end]',
|
||||
'Anchor[tacker::config::end]',
|
||||
'Anchor[tacker::dbsync::begin]'],
|
||||
'Anchor[tacker::config::end]',
|
||||
'Anchor[tacker::dbsync::begin]'],
|
||||
:notify => 'Anchor[tacker::dbsync::end]',
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue