Created
October 4, 2016 20:56
-
-
Save tbielawa/112820076059975a0a737cf9ac6007f5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: all | |
# oo_first_master | |
become: yes | |
gather_facts: no | |
tasks: | |
- name: Check cert expirys on host | |
openshift_cert_expiry: | |
openshift_config_base: "{{ openshift.common.config_base }}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PLAY [all] ********************************************************************* | |
TASK [Check cert expirys on host] ********************************************** | |
ok: [192.168.124.11] => { | |
"certs": [ | |
{ | |
"cert_cn": "192.168.124.11", | |
"days_remaining": 718, | |
"expiry": "2018-09-22 17:08:59", | |
"health": "warning", | |
"path": "/etc/origin/node/server.crt" | |
}, | |
{ | |
"cert_cn": "openshift-signer@1474563878", | |
"days_remaining": 1813, | |
"expiry": "2021-09-21 17:04:38", | |
"health": "ok", | |
"path": "/etc/origin/node/ca.crt" | |
} | |
], | |
"changed": false | |
} | |
MSG: | |
Checked certs | |
ok: [192.168.124.110] => { | |
"certs": [ | |
{ | |
"cert_cn": "192.168.124.110", | |
"days_remaining": 718, | |
"expiry": "2018-09-22 17:08:59", | |
"health": "warning", | |
"path": "/etc/origin/node/server.crt" | |
}, | |
{ | |
"cert_cn": "openshift-signer@1474563878", | |
"days_remaining": 1813, | |
"expiry": "2021-09-21 17:04:38", | |
"health": "ok", | |
"path": "/etc/origin/node/ca.crt" | |
} | |
], | |
"changed": false | |
} | |
MSG: | |
Checked certs | |
ok: [192.168.124.148] => { | |
"certs": [ | |
{ | |
"cert_cn": "172.30.0.1", | |
"days_remaining": 718, | |
"expiry": "2018-09-22 17:04:39", | |
"health": "warning", | |
"path": "/etc/origin/master/master.server.crt" | |
}, | |
{ | |
"cert_cn": "openshift-signer@1474563878", | |
"days_remaining": 1813, | |
"expiry": "2021-09-21 17:04:38", | |
"health": "ok", | |
"path": "/etc/origin/master/ca.crt" | |
}, | |
{ | |
"cert_cn": "172.30.0.1", | |
"days_remaining": 718, | |
"expiry": "2018-09-22 17:08:59", | |
"health": "warning", | |
"path": "/etc/origin/node/server.crt" | |
}, | |
{ | |
"cert_cn": "openshift-signer@1474563878", | |
"days_remaining": 1813, | |
"expiry": "2021-09-21 17:04:38", | |
"health": "ok", | |
"path": "/etc/origin/node/ca.crt" | |
} | |
], | |
"changed": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment