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:
parent
53ec1731cc
commit
bc599f0118
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue