Summary:
We upgraded postgresql on our host, and everything looked fine, all hosts were there, everything. Then I saw the endpoint for Director was disconnected. Seems a chicken/egg problem caused the kickstart to fail, so I reran it, went fine. After this, I noticed all our objects were gone, as if it was a new database
Solved with code in our script. Turns out kickstart never ran automated fine, and now it did, wiping out everything
code we now use;
# Process kickstart
# Only fire this off once we give postgres a second to start
# Do NOT run if kickstart not required...
if [[ "${ICINGA2_FEATURE_DIRECTOR_KICKSTART}" == "true" ]]; then
echo "Director kickstart requested, running sequence..."
if icingacli director kickstart required; then