Enable aodh-expirer cron job after database is initialized

The aodh-expirer command expects the target database is already
initialized. This change ensures db sync is completed before cron job
is enabled.

Closes-Bug #1955829
Change-Id: Ieff011ca2bd415d25df227fb7287c0878ec72220
This commit is contained in:
Takashi Kajinami 2021-12-28 13:05:34 +09:00
parent 16b730bd76
commit 0f02d2408a
2 changed files with 3 additions and 3 deletions

View File

@ -79,7 +79,7 @@ class aodh::expirer (
monthday => $monthday,
month => $month,
weekday => $weekday,
require => Anchor['aodh::install::end'],
require => Anchor['aodh::dbsync::end'],
}
}

View File

@ -29,7 +29,7 @@ describe 'aodh::expirer' do
:monthday => '*',
:month => '*',
:weekday => '*',
:require => 'Anchor[aodh::install::end]'
:require => 'Anchor[aodh::dbsync::end]'
)}
end
@ -64,7 +64,7 @@ describe 'aodh::expirer' do
:monthday => '*',
:month => '*',
:weekday => '*',
:require => 'Anchor[aodh::install::end]'
:require => 'Anchor[aodh::dbsync::end]'
)}
end