Skip to content

Commit

Permalink
update bugs for jammy
Browse files Browse the repository at this point in the history
  • Loading branch information
ewdurbin committed Jan 19, 2024
1 parent 7ca8d7d commit 2b4917e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

SERVERS = [
"backup-server",
{:name => "bugs", :box => "ubuntu/xenial64", :codename => "xenial", :ports => [8080]},
{:name => "bugs", :codename => "jammy", :ports => [8080]},
"buildbot",
"cdn-logs",
{:name => "codespeed", :codename => "jammy"},
Expand Down
14 changes: 7 additions & 7 deletions salt/bugs/postgresql.sls
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pgdg-repo:
pkgrepo.managed:
- humanname: PostgresSQL Global Development Group
- name: deb http://apt-archive.postgresql.org/pub/repos/apt {{ grains['oscodename'] }}-pgdg main
- name: deb http://apt.postgresql.org/pub/repos/apt {{ grains['oscodename'] }}-pgdg main
- file: /etc/apt/sources.list.d/pgdg.list
- gpgcheck: 1
- key_url: https://www.postgresql.org/media/keys/ACCC4CF8.asc
Expand All @@ -11,12 +11,12 @@ pgdg-repo:
postgresql-server:
pkg.installed:
- pkgs:
- postgresql-10
- postgresql-16

clear_default_cluster:
postgres_cluster.absent:
- name: 'main'
- version: '10'
- version: '16'
- require:
- pkg: postgresql-server

Expand All @@ -38,21 +38,21 @@ roundup_postgres_wal_archives:
roundup_cluster:
postgres_cluster.present:
- name: 'roundup'
- version: '10'
- version: '16'
- locale: 'en_US.UTF-8'
- encoding: 'UTF8'
- datadir: '/srv/postgresql/10/roundup'
- datadir: '/srv/postgresql/16/roundup'
- require:
- pkg: postgresql-server

roundup_postgres_config:
file.managed:
- name: /etc/postgresql/10/roundup/conf.d/roundup.conf
- name: /etc/postgresql/16/roundup/conf.d/roundup.conf
- source: salt://bugs/config/postgresql.conf
- user: postgres
- group: postgres

postgresql@10-roundup:
postgresql@16-roundup:
service.running:
- restart: True
- enable: True
Expand Down

0 comments on commit 2b4917e

Please sign in to comment.