Migrate PostgreSQL cluster to PG14 #625

Merged
raucao merged 19 commits from feature/postgresql_migration into master 2026-04-12 14:16:22 +00:00
Showing only changes of commit 9de37cde96 - Show all commits

View File

@@ -246,7 +246,7 @@ sudo -u postgres pg_fix_sequences [db_name]
```bash
export NEW_PG_PRIMARY=[private_ip]
bundle exec knife ssh roles:ejabberd -a knife_zero.host "sudo sed -r \"s/^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\s(pg.kosmos.local)/$NEW_PG_PRIMARY\t\1/\" -i /etc/hosts"
knife ssh roles:ejabberd -a knife_zero.host "sudo sed -r \"s/^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\s(pg.kosmos.local)/$NEW_PG_PRIMARY\t\1/\" -i /etc/hosts"
```
Or override node attribute(s) if necessary and/or approporiate.