Automation scripts for PostgreSQL and Ubuntu host management. Each script is one-liner ready via curl | bash.
curl -fsSL https://ops.bhtas.co/pg-create-db-user.sh | bash -s mydb myusercurl -fsSL https://ops.bhtas.co/pg-create-owner-for-exist-db.sh | bash -s existing_db new_ownercurl -fsSL https://ops.bhtas.co/pg-create-backup-user-for-exist-db.sh | bash -s existing_db backup_usercurl -fsSL https://ops.bhtas.co/pg-create-readonly-user-for-exist-db.sh | bash -s existing_db readonly_usercurl -fsSL https://ops.bhtas.co/install-postgres-exporter.sh | bashcurl -fsSL https://ops.bhtas.co/ubuntu-disable-ssh-password.sh | sudo bashMake sure your SSH public key is already in
authorized_keysbefore running, otherwise you may lock yourself out.
Note: All scripts print the password, connection string and private IP on success.