Update db-sync command

Change-Id: Id3d72c6f34e697a1c90d52b192ca81d0ec4f0552
This commit is contained in:
Emilien Macchi 2017-12-28 13:30:21 -08:00
parent a5d39bd178
commit 528d14b4c3
3 changed files with 5 additions and 3 deletions

View File

@ -15,7 +15,7 @@ class vitrage::db::sync(
include ::vitrage::deps
exec { 'vitrage-db-sync':
command => "vitrage-manage db_sync ${extra_params}",
command => "vitrage-dbsync ${extra_params}",
path => '/usr/bin',
user => 'vitrage',
refreshonly => true,

View File

@ -18,6 +18,8 @@ describe 'basic vitrage' do
}
'RedHat': {
include ::openstack_integration::vitrage
# until it's managed in p-o-i
include ::vitrage::db::sync
}
default: {
fail("Unsupported osfamily (${::osfamily})")

View File

@ -6,7 +6,7 @@ describe 'vitrage::db::sync' do
it 'runs vitrage-manage db sync' do
is_expected.to contain_exec('vitrage-db-sync').with(
:command => 'vitrage-manage db_sync ',
:command => 'vitrage-dbsync ',
:user => 'vitrage',
:path => '/usr/bin',
:refreshonly => 'true',
@ -29,7 +29,7 @@ describe 'vitrage::db::sync' do
it {
is_expected.to contain_exec('vitrage-db-sync').with(
:command => 'vitrage-manage db_sync --config-file /etc/vitrage/vitrage.conf',
:command => 'vitrage-dbsync --config-file /etc/vitrage/vitrage.conf',
:user => 'vitrage',
:path => '/usr/bin',
:refreshonly => 'true',