Update db-sync command
Change-Id: Id3d72c6f34e697a1c90d52b192ca81d0ec4f0552
This commit is contained in:
parent
a5d39bd178
commit
528d14b4c3
@ -15,7 +15,7 @@ class vitrage::db::sync(
|
|||||||
include ::vitrage::deps
|
include ::vitrage::deps
|
||||||
|
|
||||||
exec { 'vitrage-db-sync':
|
exec { 'vitrage-db-sync':
|
||||||
command => "vitrage-manage db_sync ${extra_params}",
|
command => "vitrage-dbsync ${extra_params}",
|
||||||
path => '/usr/bin',
|
path => '/usr/bin',
|
||||||
user => 'vitrage',
|
user => 'vitrage',
|
||||||
refreshonly => true,
|
refreshonly => true,
|
||||||
|
@ -18,6 +18,8 @@ describe 'basic vitrage' do
|
|||||||
}
|
}
|
||||||
'RedHat': {
|
'RedHat': {
|
||||||
include ::openstack_integration::vitrage
|
include ::openstack_integration::vitrage
|
||||||
|
# until it's managed in p-o-i
|
||||||
|
include ::vitrage::db::sync
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
fail("Unsupported osfamily (${::osfamily})")
|
fail("Unsupported osfamily (${::osfamily})")
|
||||||
|
@ -6,7 +6,7 @@ describe 'vitrage::db::sync' do
|
|||||||
|
|
||||||
it 'runs vitrage-manage db sync' do
|
it 'runs vitrage-manage db sync' do
|
||||||
is_expected.to contain_exec('vitrage-db-sync').with(
|
is_expected.to contain_exec('vitrage-db-sync').with(
|
||||||
:command => 'vitrage-manage db_sync ',
|
:command => 'vitrage-dbsync ',
|
||||||
:user => 'vitrage',
|
:user => 'vitrage',
|
||||||
:path => '/usr/bin',
|
:path => '/usr/bin',
|
||||||
:refreshonly => 'true',
|
:refreshonly => 'true',
|
||||||
@ -29,7 +29,7 @@ describe 'vitrage::db::sync' do
|
|||||||
|
|
||||||
it {
|
it {
|
||||||
is_expected.to contain_exec('vitrage-db-sync').with(
|
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',
|
:user => 'vitrage',
|
||||||
:path => '/usr/bin',
|
:path => '/usr/bin',
|
||||||
:refreshonly => 'true',
|
:refreshonly => 'true',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user