koji_hub: add lockfile location to cron

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2020-06-13 20:25:56 -07:00
parent 36f819cf4f
commit 37a6aea3cf
2 changed files with 17 additions and 17 deletions

View file

@ -135,20 +135,20 @@
key_src: "{{private}}/files/docker-registry/{{env}}/pki/private/containerstable.key",
when: env == "production"
}
#- {
# role: login-registry,
# candidate_registry: "candidate-registry.stg.fedoraproject.org",
# candidate_registry_osbs_username: "{{candidate_registry_osbs_stg_username}}",
# candidate_registry_osbs_password: "{{candidate_registry_osbs_stg_password}}",
# when: env == "staging"
#}
#- {
# role: login-registry,
# candidate_registry: "candidate-registry.fedoraproject.org",
# candidate_registry_osbs_username: "{{candidate_registry_osbs_prod_username}}",
# candidate_registry_osbs_password: "{{candidate_registry_osbs_prod_password}}",
# when: env == "production"
#}
- {
role: login-registry,
candidate_registry: "candidate-registry.stg.fedoraproject.org",
candidate_registry_osbs_username: "{{candidate_registry_osbs_stg_username}}",
candidate_registry_osbs_password: "{{candidate_registry_osbs_stg_password}}",
when: env == "staging"
}
- {
role: login-registry,
candidate_registry: "candidate-registry.fedoraproject.org",
candidate_registry_osbs_username: "{{candidate_registry_osbs_prod_username}}",
candidate_registry_osbs_password: "{{candidate_registry_osbs_prod_password}}",
when: env == "production"
}
- {
role: login-registry,
candidate_registry: "quay.io",

View file

@ -1,6 +1,6 @@
# Run garbage collector nightly
SCRIPT=/usr/sbin/koji-gc
MAILTO=releng-cron@lists.fedoraproject.org
0 8 * * * apache /usr/local/bin/lock-wrapper koji-gc-delete $SCRIPT --action=delete
0 10 * * * apache /usr/local/bin/lock-wrapper koji-gc-prune $SCRIPT --action=prune
0 9 * * * apache /usr/local/bin/lock-wrapper koji-gc-trash $SCRIPT --action=trash
0 8 * * * apache /usr/local/bin/lock-wrapper koji-gc-delete $SCRIPT --action=delete --lock-file /var/tmp/koji-gc.lock
0 10 * * * apache /usr/local/bin/lock-wrapper koji-gc-prune $SCRIPT --action=prune --lock-file /var/tmp/koji-gc.lock
0 9 * * * apache /usr/local/bin/lock-wrapper koji-gc-trash $SCRIPT --action=trash --lock-file /var/tmp/koji-gc.lock