| Looks like we do have a maintenance_mode? flag in the /status output that indicates PuppetDB is in maintenance mode:
# curl -s http://localhost:8080/status/v1/services/puppetdb-status |python -m json.tool |
{ |
"active_alerts": [], |
"detail_level": "info", |
"service_name": "puppetdb-status", |
"service_status_version": 1, |
"service_version": "6.9.1", |
"state": "starting", |
"status": { |
"maintenance_mode?": true, |
"queue_depth": 0, |
"read_db_up?": false, |
"write_db_up?": false |
} |
}
|
|