]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commit
Add checkcerts, to use with cron to warn about expiring certs 721/head
authorDan Mick <dmick@redhat.com>
Wed, 15 Feb 2023 04:24:04 +0000 (20:24 -0800)
committerDan Mick <dmick@redhat.com>
Mon, 20 Feb 2023 22:29:24 +0000 (14:29 -0800)
commitd968e734b18225650dcda89b3452cafab505adc1
treeb017841984cc07c64741a7446f65ff56047ef5f7
parent86da8efe0233f8c38982c1004d1607262104ec7c
Add checkcerts, to use with cron to warn about expiring certs

This originally lived on gitbuilder-archive, and I've moved it,
revamped it, added some args, added some hosts, modified some emails,
ported to Py3, stopped using external programs.  It's quick to run
in default mode where it just reports to the terminal; it'll also
be quiet and only send email about old certs.

The timezone processing is nonexistent on the reported expiry
date; Python timezone handling is a mess.  That could be improved but
not without a deep dive.

Signed-off-by: Dan Mick <dmick@redhat.com>
tools/checkcerts.py [new file with mode: 0755]