Skip to content

Instantly share code, notes, and snippets.

@tbielawa
Created October 5, 2016 18:21
Show Gist options
  • Save tbielawa/0c8d9f3fa065c070fa76bb223caee396 to your computer and use it in GitHub Desktop.
Save tbielawa/0c8d9f3fa065c070fa76bb223caee396 to your computer and use it in GitHub Desktop.
PLAY [all] *********************************************************************
TASK [Check cert expirys on host] **********************************************
ok: [192.168.124.11] => {
"changed": false,
"check_results": {
"certs": [
{
"cert_cn": "192.168.124.11",
"days_remaining": 717,
"expiry": "2018-09-22 17:08:59",
"health": "warning",
"path": "/etc/origin/node/server.crt"
},
{
"cert_cn": "openshift-signer@1474563878",
"days_remaining": 1812,
"expiry": "2021-09-21 17:04:38",
"health": "ok",
"path": "/etc/origin/node/ca.crt"
}
],
"kubeconfigs": [
{
"cert_cn": "system:nodes",
"days_remaining": 717,
"expiry": "2018-09-22 17:08:57",
"health": "warning",
"path": "/etc/origin/node/system:node:n01.example.com.kubeconfig"
}
],
"meta": {
"checked_at_time": "2016-10-05 14:20:33.436525",
"show_all": "True",
"warn_after_date": "2020-11-13 14:20:33.436525",
"warning_days": 1500
}
},
"rc": 0
}
MSG:
Checked 2 certificates. Expired/Warning/OK: 0/1/1. Warning window: 1500 days
ok: [192.168.124.110] => {
"changed": false,
"check_results": {
"certs": [
{
"cert_cn": "192.168.124.110",
"days_remaining": 717,
"expiry": "2018-09-22 17:08:59",
"health": "warning",
"path": "/etc/origin/node/server.crt"
},
{
"cert_cn": "openshift-signer@1474563878",
"days_remaining": 1812,
"expiry": "2021-09-21 17:04:38",
"health": "ok",
"path": "/etc/origin/node/ca.crt"
}
],
"kubeconfigs": [
{
"cert_cn": "system:nodes",
"days_remaining": 717,
"expiry": "2018-09-22 17:08:58",
"health": "warning",
"path": "/etc/origin/node/system:node:n02.example.com.kubeconfig"
}
],
"meta": {
"checked_at_time": "2016-10-05 14:20:33.536939",
"show_all": "True",
"warn_after_date": "2020-11-13 14:20:33.536939",
"warning_days": 1500
}
},
"rc": 0
}
MSG:
Checked 2 certificates. Expired/Warning/OK: 0/1/1. Warning window: 1500 days
ok: [192.168.124.148] => {
"changed": false,
"check_results": {
"certs": [
{
"cert_cn": "172.30.0.1",
"days_remaining": 717,
"expiry": "2018-09-22 17:04:39",
"health": "warning",
"path": "/etc/origin/master/master.server.crt"
},
{
"cert_cn": "172.30.0.1",
"days_remaining": 717,
"expiry": "2018-09-22 17:08:59",
"health": "warning",
"path": "/etc/origin/node/server.crt"
},
{
"cert_cn": "openshift-signer@1474563878",
"days_remaining": 1812,
"expiry": "2021-09-21 17:04:38",
"health": "ok",
"path": "/etc/origin/master/ca.crt"
},
{
"cert_cn": "openshift-signer@1474563878",
"days_remaining": 1812,
"expiry": "2021-09-21 17:04:38",
"health": "ok",
"path": "/etc/origin/node/ca.crt"
}
],
"kubeconfigs": [
{
"cert_cn": "system:nodes",
"days_remaining": 717,
"expiry": "2018-09-22 17:08:57",
"health": "warning",
"path": "/etc/origin/node/system:node:m01.example.com.kubeconfig"
},
{
"cert_cn": "system:cluster-admins",
"days_remaining": 717,
"expiry": "2018-09-22 17:04:40",
"health": "warning",
"path": "/etc/origin/master/admin.kubeconfig"
},
{
"cert_cn": "system:masters",
"days_remaining": 717,
"expiry": "2018-09-22 17:04:39",
"health": "warning",
"path": "/etc/origin/master/openshift-master.kubeconfig"
},
{
"cert_cn": "system:routers",
"days_remaining": 717,
"expiry": "2018-09-22 17:04:41",
"health": "warning",
"path": "/etc/origin/master/openshift-router.kubeconfig"
}
],
"meta": {
"checked_at_time": "2016-10-05 14:20:33.514807",
"show_all": "True",
"warn_after_date": "2020-11-13 14:20:33.514807",
"warning_days": 1500
}
},
"rc": 0
}
MSG:
Checked 4 certificates. Expired/Warning/OK: 0/2/2. Warning window: 1500 days
PLAY RECAP *********************************************************************
192.168.124.11 : ok=2 changed=0 unreachable=0 failed=0
192.168.124.110 : ok=2 changed=0 unreachable=0 failed=0
192.168.124.148 : ok=2 changed=0 unreachable=0 failed=0
localhost : ok=2 changed=1 unreachable=0 failed=0
Playbook run took 0 days, 0 hours, 0 minutes, 1 seconds
[
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment