treasuremap/tools/upgrades/postgresql/patroni_endpoint_cleaner_remove.sh
Matt McEuen 16cdf842d2 Incorporate HA PostgreSQL
This change integrates changes related to the new Patroni-enabled
high availability included in the postgresql helm chart.

1. Updates the version of the postgresql chart
2. Adds users/passphrases for the postgresql replication and exporter users
3. Sets the default number of replicas to 3 (except for skiff & sloop)
4. Adds documentation/scripting for upgrading the chart

Co-Authored-By: Evgeniy L <eli@mirantis.com>
Change-Id: I51e63fb2444610cfb144bc587a6a179fa4830809
2019-07-15 19:39:38 +00:00

12 lines
414 B
Bash
Executable File

#!/bin/bash
set -x
echo "Cleaning up the patroni_endpoint_cleaner"
sudo systemctl stop patroni_endpoint_cleaner
sudo systemctl disable patroni_endpoint_cleaner
sudo rm -f /opt/patroni_endpoint_cleaner.sh
sudo rm -f /lib/systemd/system/patroni_endpoint_cleaner.service
sudo rm -f /etc/systemd/system/multi-user.target.wants/patroni_endpoint_cleaner.service
sudo systemctl daemon-reload
sudo systemctl reset-failed