Skip to content

Commit

Permalink
add /etc/ipa to certificates_enddate (#2649)
Browse files Browse the repository at this point in the history
The FreeIPA CA certificate at /etc/ipa/ca.crt expiration date should
be monitored too.

Signed-off-by: François Cami <[email protected]>
  • Loading branch information
fcami authored Jul 8, 2020
1 parent 5f2c223 commit 3f11d46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion insights/specs/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def is_ceph_monitor(broker):
ceph_osd_tree = simple_command("/usr/bin/ceph osd tree -f json")
ceph_s = simple_command("/usr/bin/ceph -s -f json")
ceph_v = simple_command("/usr/bin/ceph -v")
certificates_enddate = simple_command("/usr/bin/find /etc/origin/node /etc/origin/master /etc/pki -type f -exec /usr/bin/openssl x509 -noout -enddate -in '{}' \; -exec echo 'FileName= {}' \;")
certificates_enddate = simple_command("/usr/bin/find /etc/origin/node /etc/origin/master /etc/pki /etc/ipa -type f -exec /usr/bin/openssl x509 -noout -enddate -in '{}' \; -exec echo 'FileName= {}' \;")
chkconfig = simple_command("/sbin/chkconfig --list")
chrony_conf = simple_file("/etc/chrony.conf")
chronyc_sources = simple_command("/usr/bin/chronyc sources")
Expand Down
2 changes: 1 addition & 1 deletion insights/specs/insights_archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class InsightsArchiveSpecs(Specs):
ceph_osd_tree = first_file(["insights_commands/ceph_osd_tree_-f_json-pretty", "insights_commands/ceph_osd_tree_-f_json"])
ceph_s = first_file(["insights_commands/ceph_-s_-f_json-pretty", "insights_commands/ceph_-s_-f_json"])
ceph_v = simple_file("insights_commands/ceph_-v")
certificates_enddate = simple_file("insights_commands/find_.etc.origin.node_.etc.origin.master_.etc.pki_-type_f_-exec_.usr.bin.openssl_x509_-noout_-enddate_-in_-exec_echo_FileName")
certificates_enddate = first_file(["insights_commands/find_.etc.origin.node_.etc.origin.master_.etc.pki_.etc.ipa_-type_f_-exec_.usr.bin.openssl_x509_-noout_-enddate_-in_-exec_echo_FileName", "insights_commands/find_.etc.origin.node_.etc.origin.master_.etc.pki_-type_f_-exec_.usr.bin.openssl_x509_-noout_-enddate_-in_-exec_echo_FileName"])
chkconfig = simple_file("insights_commands/chkconfig_--list")
chronyc_sources = simple_file("insights_commands/chronyc_sources")
cpupower_frequency_info = simple_file("insights_commands/cpupower_-c_all_frequency-info")
Expand Down

0 comments on commit 3f11d46

Please sign in to comment.