debops / debops/debops

[postgresql_server] Could do with some upgrade documentation

Open
#2,414 0 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jinja
Stars
1.4k
Forks
379
Avg merge
4d 18h
Merged PRs (30d)
8

Description

The postgresql_server role could do with some information about how to do an upgrade...e.g. from bullseye (version 13) to bookworm (version 15).

In essence, the steps I had to were (writing this down so I don't forget it):

  1. Do a normal distro upgrade
  2. apt install postgresql-contrib
  3. pg_dropcluster 15 main --stop
  4. pg_upgradecluster 13 main
  5. apt purge postgresql-13 postgresql-client-13
  6. edit /etc/ansible/facts.d/postgres.fact and manually change the version (13 -> 15)
  7. re-run the role on the controller

I'll see if I get around to adding something like this to the docs...

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the postgresql_server role documentation and the upgrade sequence described in the issue, including /etc/ansible/facts.d/postgres.fact and the controller rerun. Done means documenting the Bullseye-to-Bookworm PostgreSQL upgrade steps clearly enough for users to follow and verify.

Written by the indexing model from the issue text.

Assessment

Tech stack
ansible, debian, postgresql
Domain
databases, devops, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.