Skip to content

Commit a83c2cc

Browse files
author
Noel McLoughlin
committed
limits file has jinja context; fix saltstack-formulas#213
1 parent 6840bf3 commit a83c2cc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

postgres/dev.sls

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ postgres_maxfiles_limits_conf:
4545
file.managed:
4646
- name: /Library/LaunchDaemons/limit.maxfiles.plist
4747
- source: salt://{{ tpldir }}/templates/limit.maxfiles.plist
48+
- template: jinja
4849
- 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) }}
5152
- group: {{ postgres.group }}
5253
{% endif %}
5354

0 commit comments

Comments
 (0)