Set dep from glance cron jobs to api package

Currently there is no dependency between the
glance cron jobs and the glance api package.

This dependency needs to exist b/c the cron jobs
cannot even be created by Puppet until the
glance user exists on the system (which in
the case of package installation is installed
via the installation of the glance package)

This patch adds the dependency.

Change-Id: Ib0a42cf171d4fcabaab616c880aad2d0c4db4424
This commit is contained in:
Dan 2014-07-17 13:26:37 -07:00
parent 3bf6ea5b3e
commit d620ff6b1c
4 changed files with 9 additions and 4 deletions

View File

@ -37,6 +37,7 @@ class glance::cache::cleaner (
hour => $hour,
monthday => $monthday,
month => $month,
weekday => $weekday
weekday => $weekday,
require => Package[$::glance::params::api_package_name],
}
}

View File

@ -37,6 +37,8 @@ class glance::cache::pruner (
hour => $hour,
monthday => $monthday,
month => $month,
weekday => $weekday
weekday => $weekday,
require => Package[$::glance::params::api_package_name],
}
}

View File

@ -15,7 +15,8 @@ describe 'glance::cache::cleaner' do
:hour => 0,
:monthday => '*',
:month => '*',
:weekday => '*'
:weekday => '*',
:require => 'Package[glance-api]'
)
end
end

View File

@ -15,7 +15,8 @@ describe 'glance::cache::pruner' do
:hour => '*',
:monthday => '*',
:month => '*',
:weekday => '*'
:weekday => '*',
:require => 'Package[glance-api]'
)
end
end