mirror of
https://github.com/saltstack-formulas/postgres-formula.git
synced 2025-04-15 17:20:25 +00:00
commit
c213b30d4c
3 changed files with 23 additions and 1 deletions
10
README.rst
10
README.rst
|
@ -41,6 +41,16 @@ Installs the PostgreSQL adapter for Python on Linux.
|
|||
Installs the PostgreSQL server package on Linux, prepares the DB cluster and starts the server using
|
||||
packaged init script, job or unit.
|
||||
|
||||
|
||||
.. note::
|
||||
|
||||
For PostgreSQL server before version 10 to work inside a **FreeBSD Jail**
|
||||
set ``sysvshm=new`` and ``sysvsem=new``.
|
||||
DO NOT SET ``allow.sysvipc=1``. It defeats the purpose of using Jails.
|
||||
|
||||
Further information: https://blog.tyk.nu/blog/freebsd-jails-and-sysv-ipc/
|
||||
|
||||
|
||||
``postgres.server.image``
|
||||
-------------------------
|
||||
|
||||
|
|
|
@ -21,8 +21,15 @@ Debian:
|
|||
{% endif %}
|
||||
|
||||
FreeBSD:
|
||||
user: pgsql
|
||||
conf_dir: /usr/local/pgsql/data
|
||||
data_dir: /usr/local/pgsql/data
|
||||
user: &freebsd-user pgsql
|
||||
group: &freebsd-group pgsql
|
||||
pkg_client: postgresql{{ release }}-client
|
||||
pkg: postgresql{{ release }}-server
|
||||
prepare_cluster:
|
||||
user: *freebsd-user
|
||||
group: *freebsd-group
|
||||
|
||||
OpenBSD:
|
||||
conf_dir: /var/postgresql/data
|
||||
|
|
|
@ -207,6 +207,11 @@ postgresql-pg_ident:
|
|||
{%- endif %}
|
||||
- require:
|
||||
- file: postgresql-config-dir
|
||||
{%- if postgres.prepare_cluster.run %}
|
||||
- cmd: postgresql-cluster-prepared
|
||||
{%- else %}
|
||||
- file: postgresql-cluster-prepared
|
||||
{%- endif %}
|
||||
|
||||
{%- for name, tblspace in postgres.tablespaces|dictsort() %}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue