File tree 3 files changed +8
-3
lines changed 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ postgres:
29
29
# macos limits
30
30
limits :
31
31
soft : 64000
32
- hard : 64000
32
+ hard : 128000
33
33
34
34
# POSTGRES
35
35
# Append the lines under this item to your postgresql.conf file.
Original file line number Diff line number Diff line change @@ -45,9 +45,10 @@ postgres_maxfiles_limits_conf:
45
45
file .managed:
46
46
- name: / Library/ LaunchDaemons/ limit.maxfiles.plist
47
47
- source: salt:// {{ tpldir }}/ templates/ limit.maxfiles.plist
48
+ - template: jinja
48
49
- context:
49
- soft_limit: {{ postgres.limits.soft or postgres.limits.hard }}
50
- hard_limit: {{ postgres.limits.hard or postgres.limits.soft }}
50
+ soft_limit: {{ postgres.limits.soft | default( postgres.limits.hard, true) }}
51
+ hard_limit: {{ postgres.limits.hard | default( postgres.limits.soft, true) }}
51
52
- group: {{ postgres.group }}
52
53
{% endif % }
53
54
Original file line number Diff line number Diff line change @@ -184,6 +184,10 @@ MacOS:
184
184
test : test -f /Users/{{ repo.user }}/Library/AppSupport/postgres_{{ repo.use_upstream_repo }}/PG_VERSION
185
185
user : {{ repo.user }}
186
186
group : {{ repo.group }}
187
+ # macos limits
188
+ limits :
189
+ soft : 64000
190
+ hard : 64000
187
191
{%- endif %}
188
192
189
193
# vim: ft=sls
You can’t perform that action at this time.
0 commit comments