mirror of
https://github.com/saltstack-formulas/postgres-formula.git
synced 2025-04-16 09:40:26 +00:00
22 lines
693 B
YAML
22 lines
693 B
YAML
{%- macro ubuntu_block(name, version) %}
|
|
{{ name }}:
|
|
pkg_repo: deb http://apt.postgresql.org/pub/repos/apt/ {{ name }}-pgdg main
|
|
conf_dir: /etc/postgresql/{{ version }}/main
|
|
prepare_cluster:
|
|
command: pg_createcluster {{ version }} main
|
|
test: test -f /var/lib/postgresql/{{ version }}/main/PG_VERSION && test -f /etc/postgresql/{{ version }}/main/postgresql.conf
|
|
user: root
|
|
env: {}
|
|
{%- endmacro %}
|
|
|
|
{{ ubuntu_block('wheezy', 9.1) }}
|
|
|
|
{{ ubuntu_block('trusty', 9.3) }}
|
|
|
|
{{ ubuntu_block('precise', 9.4) }}
|
|
{{ ubuntu_block('jessie', 9.4) }}
|
|
{{ ubuntu_block('utopic', 9.4) }}
|
|
{{ ubuntu_block('vivid', 9.4) }}
|
|
{{ ubuntu_block('wily', 9.4) }}
|
|
|
|
{{ ubuntu_block('xenial', 9.5) }}
|