diff --git a/pillar.example b/pillar.example index 48d0e07..7957227 100644 --- a/pillar.example +++ b/pillar.example @@ -29,7 +29,7 @@ postgres: # macos limits limits: soft: 64000 - hard: 64000 + hard: 128000 # POSTGRES # Append the lines under this item to your postgresql.conf file. diff --git a/postgres/dev.sls b/postgres/dev.sls index 7171b1f..673cd7f 100644 --- a/postgres/dev.sls +++ b/postgres/dev.sls @@ -45,9 +45,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 %} diff --git a/postgres/osfamilymap.yaml b/postgres/osfamilymap.yaml index 2a57781..7dd23e2 100644 --- a/postgres/osfamilymap.yaml +++ b/postgres/osfamilymap.yaml @@ -184,6 +184,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