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: I34f45bf186ed1739b74c70a2bec444aed83ee8d5
This commit is contained in:
Jeremy Stanley 2016-08-05 15:54:15 +00:00
parent 910d299849
commit 4e689e4b86
2 changed files with 2 additions and 0 deletions

View File

@ -397,6 +397,7 @@ class openstack_project::gerrit (
}
cron { 'mirror_repack':
ensure => absent,
user => 'gerrit2',
}
cron { 'mirror_gitgc':
user => 'gerrit2',

View File

@ -119,6 +119,7 @@ class openstack_project::git_backend (
cron { 'mirror_repack':
ensure => absent,
user => 'cgit',
}
cron { 'mirror_gitgc':