File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,9 +7,6 @@ haproxy.config:
77 - source: {{ haproxy.config_file_source }}
88 - template: jinja
99 - user: {{ haproxy.user }}
10- {% if salt[' grains.get' ](' os_family' ) == ' FreeBSD' % }
11- - group: wheel
12- {% else % }
1310 - group: {{ haproxy.group }}
1411 {% endif % }
1512 - mode: 644
Original file line number Diff line number Diff line change 11{% set haproxy = salt ['grains.filter_by' ]({
2- 'Debian ' : {
2+ 'default ' : {
33 'package' : 'haproxy' ,
44 'config_file' : '/etc/haproxy/haproxy.cfg' ,
55 'config_file_source' : 'salt://haproxy/templates/haproxy.jinja' ,
66 'user' : 'root' ,
77 'group' : 'root' ,
88 'service' : 'haproxy' ,
99 },
10- }, merge =salt ['pillar.get' ]('haproxy:lookup' )) %}
10+ 'FreeBSD' : {
11+ 'group' : 'wheel' ,
12+ },
13+ }, merge =salt ['pillar.get' ]('haproxy:lookup' ), base ='default' ) %}
1114
Original file line number Diff line number Diff line change 33#
44
55haproxy:
6+ # use lookup section to override 'map.jinja' values
7+ #lookup:
8+ #user: 'custom-user'
9+ #group: 'custom-group'
610 enabled: True
711 overwrite: True # Overwrite an existing config file if present (default behaviour unless set to false)
812 config_file_path: /etc/haproxy/haproxy.cfg
You can’t perform that action at this time.
0 commit comments