mirror of
https://github.com/saltstack-formulas/postgres-formula.git
synced 2025-04-16 09:40:26 +00:00
22 lines
No EOL
465 B
Text
22 lines
No EOL
465 B
Text
{% from "postgres/map.jinja" import postgres with context %}
|
|
|
|
postgresql:
|
|
pkg:
|
|
- installed
|
|
- name: {{ postgres.pkg }}
|
|
service:
|
|
- running
|
|
- enable: true
|
|
- name: {{ postgres.service }}
|
|
- require:
|
|
- pkg: {{ postgres.pkg }}
|
|
|
|
pg_hba.conf:
|
|
file.managed:
|
|
- name: {{ postgres.pg_hba }}
|
|
- source: salt://postgres/pg_hba.conf
|
|
- user: postgres
|
|
- group: postgres
|
|
- mode: 644
|
|
- require:
|
|
- pkg: {{ postgres.pkg }} |