cloud-init
allows customising and configuring deployed server instances on most popular cloud service providers easily without requiring the use of other related tools like Ansible. Since cloud-init
is such a reliable tool, this brief write-up will document the exact steps and procedures to install and setup PostgreSQL on a Debian 12 (Bookworm) server instance.
wget -qO- https://www.postgresql.org/media/keys/ACCC4CF8.asc \
| gpg --with-fingerprint --with-colons \
| awk -F: '/^fpr/ { print $10 }'