muep / joonos-sysmgr

0 stars 0 forks source link

Subcommand for status #13

Closed muep closed 3 years ago

muep commented 3 years ago

Ideas on how it might look

$ joonos-sysmgr status
status using configuration from /etc/joonos/joonos.conf:
data directory:           /var/lib/joonos
provisioning certificate: /etc/joonos/unprovisioned.cert.pem
provisioning key:         /etc/joonos/unprovisioned.key.pem
node certificate:         /var/lib/joonos/node.cert.pem
node key:                 /var/lib/joonos/node.key.pem
$

Or:

$ joonos-sysmgr status
status using configuration from /etc/joonos/joonos.conf:
data directory:           /var/lib/joonos
provisioning certificate: /etc/joonos/unprovisioned.cert.pem
provisioning key:         /etc/joonos/unprovisioned.key.pem
node certificate error:   Certificate has expired
$

Or:

$ joonos-sysmgr status
status using configuration from /etc/joonos/joonos.conf:
data directory:           /var/lib/joonos
provisioning certificate: /etc/joonos/unprovisioned.cert.pem
provisioning key:         /etc/joonos/unprovisioned.key.pem
node certificate error:   Certificate not present
$