Merge pull request #220 from noelmcloughlin/macos_fix

Fix  /Library/LaunchDaemons/limit.maxfiles.plist on MacOS
This commit is contained in:
Niels Abspoel 2018-06-19 08:24:16 +02:00 committed by GitHub
commit a827825050
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 3 deletions

View file

@ -33,7 +33,7 @@ postgres:
# macos limits
limits:
soft: 64000
hard: 64000
hard: 128000
# POSTGRES
# Append the lines under this item to your postgresql.conf file.

View file

@ -37,9 +37,10 @@ postgres_maxfiles_limits_conf:
file.managed:
- name: /Library/LaunchDaemons/limit.maxfiles.plist
- source: salt://{{ tpldir }}/templates/limit.maxfiles.plist
- template: jinja
- context:
soft_limit: {{ postgres.limits.soft or postgres.limits.hard }}
hard_limit: {{ postgres.limits.hard or postgres.limits.soft }}
soft_limit: {{ postgres.limits.soft }}
hard_limit: {{ postgres.limits.hard }}
- group: {{ postgres.group }}
{% endif %}

View file

@ -189,6 +189,10 @@ MacOS:
test: test -f /Users/{{ repo.user }}/Library/AppSupport/postgres_{{ repo.use_upstream_repo }}/PG_VERSION
user: {{ repo.user }}
group: {{ repo.group }}
# macos limits
limits:
soft: 64000
hard: 64000
{%- endif %}
# vim: ft=sls