Browse Source

Set PostgreSQL timezone to UTC

merge-requests/40/head
Deimos 6 years ago
parent
commit
8dc93a247c
  1. 6
      salt/salt/postgresql/init.sls

6
salt/salt/postgresql/init.sls

@ -34,6 +34,12 @@ set-idle-in-transaction-timeout:
- pattern: '^#?idle_in_transaction_session_timeout = (?!600000).*$' - pattern: '^#?idle_in_transaction_session_timeout = (?!600000).*$'
- repl: 'idle_in_transaction_session_timeout = 600000' - repl: 'idle_in_transaction_session_timeout = 600000'
set-timezone:
file.replace:
- name: /etc/postgresql/{{ pillar['postgresql_version'] }}/main/postgresql.conf
- pattern: '^#?timezone = (?!''UTC'').*$'
- repl: 'timezone = ''UTC'''
enable-pg-stat-statements: enable-pg-stat-statements:
file.replace: file.replace:
- name: /etc/postgresql/{{ pillar['postgresql_version'] }}/main/postgresql.conf - name: /etc/postgresql/{{ pillar['postgresql_version'] }}/main/postgresql.conf

Loading…
Cancel
Save