Ensure git cronjob absent for correct user

When removing a cron resource by setting it absent, it must continue
to specify the user if it wasn't root (the default) since crontabs
are per-user files.

Change-Id: Id68051821b0cca8bbf3e90446f5d915ac9d32be4
This commit is contained in:
Jeremy Stanley 2016-08-05 16:01:07 +00:00
parent 53ec1731cc
commit bc599f0118
1 changed files with 4 additions and 2 deletions

View File

@ -14,7 +14,8 @@ class gerrit::cron (
}
cron { 'gerrit_repack':
ensure => absent,
ensure => absent,
user => 'gerrit2',
}
cron { 'optimize_git_repo':
user => 'gerrit2',
@ -28,7 +29,8 @@ class gerrit::cron (
# if local replication is enabled, optimize this mirror as well
if $replicate_local {
cron { 'mirror_repack_local':
ensure => absent,
ensure => absent,
user => 'gerrit2',
}
cron { 'optimize_git_repo_local_replication':
user => 'gerrit2',