Skip to content

Commit

Permalink
v4.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislavrussu committed Feb 17, 2021
1 parent c481c83 commit 300023a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ effective_cache_size = {{ salt['pillar.get']('postgresql:effective_cache_size',

# io
wal_level = minimal
max_wal_senders = 0
fsync = on
synchronous_commit = off
full_page_writes = off
Expand Down
16 changes: 8 additions & 8 deletions saltstack/base/postgresql/setup.sls
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@

postgresql:
pkg.installed:
- name: postgresql-9.6
- name: postgresql-12
service.running:
- enable: true
- reload: true
- watch:
- file: /etc/postgresql/9.6/main/pg_hba.conf
- file: /etc/postgresql/9.6/main/postgresql.conf
- file: /etc/postgresql/12/main/pg_hba.conf
- file: /etc/postgresql/12/main/postgresql.conf
- require:
- file: /etc/postgresql/9.6/main/pg_hba.conf
- file: /etc/postgresql/9.6/main/postgresql.conf
- file: /etc/postgresql/12/main/pg_hba.conf
- file: /etc/postgresql/12/main/postgresql.conf
- cmd: data-dir

data-dir:
Expand All @@ -37,13 +37,13 @@ data-dir:
- require:
- pkg: postgresql
cmd.run:
- name: /etc/init.d/postgresql stop && rm -rf /etc/postgresql/9.6/main/* && pg_createcluster --datadir /data/pgsql 9.6 main
- name: /etc/init.d/postgresql stop && rm -rf /etc/postgresql/12/main/* && pg_createcluster --datadir /data/pgsql 12 main
- unless: test -d /data/pgsql/base
- cwd: /data/pgsql
- require:
- file: data-dir

/etc/postgresql/9.6/main/pg_hba.conf:
/etc/postgresql/12/main/pg_hba.conf:
file.managed:
- source: salt://postgresql/files/etc/postgresql/pg_hba.conf
- template: jinja
Expand All @@ -53,7 +53,7 @@ data-dir:
- watch_in:
- service: postgresql

/etc/postgresql/9.6/main/postgresql.conf:
/etc/postgresql/12/main/postgresql.conf:
file.managed:
- source: salt://postgresql/files/etc/postgresql/postgresql.conf
- template: jinja
Expand Down
2 changes: 1 addition & 1 deletion saltstack/base/postgresql/update.sls
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

update-postgresql:
pkg.latest:
- name: postgresql-9.6
- name: postgresql-12
6 changes: 3 additions & 3 deletions saltstack/base/system/repositories.sls
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ php-repo:
rabbitmq-repo:
pkgrepo.managed:
- humanname: RabbitMQ repository
- name: deb http://www.rabbitmq.com/debian/ testing main
- file: /etc/apt/sources.list.d/rabbitmq.list
- key_url: https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
- name: deb https://dl.bintray.com/rabbitmq-erlang/debian buster erlang-22.x
- file: /etc/apt/sources.list.d/bintray.erlang.list
- key_url: https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc
- refresh: False
- watch_in:
- cmd: apt-get-update
Expand Down

0 comments on commit 300023a

Please sign in to comment.