mirror of
https://github.com/saltstack-formulas/postgres-formula.git
synced 2025-04-16 09:40:26 +00:00
Merge pull request #220 from noelmcloughlin/macos_fix
Fix /Library/LaunchDaemons/limit.maxfiles.plist on MacOS
This commit is contained in:
commit
a827825050
3 changed files with 8 additions and 3 deletions
|
@ -33,7 +33,7 @@ postgres:
|
||||||
# macos limits
|
# macos limits
|
||||||
limits:
|
limits:
|
||||||
soft: 64000
|
soft: 64000
|
||||||
hard: 64000
|
hard: 128000
|
||||||
|
|
||||||
# POSTGRES
|
# POSTGRES
|
||||||
# Append the lines under this item to your postgresql.conf file.
|
# Append the lines under this item to your postgresql.conf file.
|
||||||
|
|
|
@ -37,9 +37,10 @@ postgres_maxfiles_limits_conf:
|
||||||
file.managed:
|
file.managed:
|
||||||
- name: /Library/LaunchDaemons/limit.maxfiles.plist
|
- name: /Library/LaunchDaemons/limit.maxfiles.plist
|
||||||
- source: salt://{{ tpldir }}/templates/limit.maxfiles.plist
|
- source: salt://{{ tpldir }}/templates/limit.maxfiles.plist
|
||||||
|
- template: jinja
|
||||||
- context:
|
- context:
|
||||||
soft_limit: {{ postgres.limits.soft or postgres.limits.hard }}
|
soft_limit: {{ postgres.limits.soft }}
|
||||||
hard_limit: {{ postgres.limits.hard or postgres.limits.soft }}
|
hard_limit: {{ postgres.limits.hard }}
|
||||||
- group: {{ postgres.group }}
|
- group: {{ postgres.group }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
|
@ -189,6 +189,10 @@ MacOS:
|
||||||
test: test -f /Users/{{ repo.user }}/Library/AppSupport/postgres_{{ repo.use_upstream_repo }}/PG_VERSION
|
test: test -f /Users/{{ repo.user }}/Library/AppSupport/postgres_{{ repo.use_upstream_repo }}/PG_VERSION
|
||||||
user: {{ repo.user }}
|
user: {{ repo.user }}
|
||||||
group: {{ repo.group }}
|
group: {{ repo.group }}
|
||||||
|
# macos limits
|
||||||
|
limits:
|
||||||
|
soft: 64000
|
||||||
|
hard: 64000
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
# vim: ft=sls
|
# vim: ft=sls
|
||||||
|
|
Loading…
Add table
Reference in a new issue