crontab: ensure nova-common is installed before

Because we create a crontab with 'nova' user, we need to ensure it
exists. So we need to make sure Nova is installed (common package).

Otherwise, it can lead to dependencies issues.

Change-Id: I5157e710e4f2e95c4ec9c1f45b414e4a3dbf9228
This commit is contained in:
Emilien Macchi 2015-05-04 17:20:05 -04:00
parent dd5dd0fca3
commit 54802658ad
2 changed files with 3 additions and 1 deletions

View File

@ -64,5 +64,6 @@ class nova::cron::archive_deleted_rows (
monthday => $monthday,
month => $month,
weekday => $weekday,
require => Package['nova-common'],
}
}

View File

@ -15,7 +15,8 @@ describe 'nova::cron::archive_deleted_rows' do
:hour => 0,
:monthday => '*',
:month => '*',
:weekday => '*'
:weekday => '*',
:require => 'Package[nova-common]',
)
end
end