formula-haproxy/haproxy/map.jinja
Eric Veiras Galisson 2b83ca0860 refactoring code to use map.jinja for config values
at the moment only Debian managed, FreeBSD exception still in state
2017-10-31 14:41:54 +01:00

11 lines
350 B
Django/Jinja

{% set haproxy = salt['grains.filter_by']({
'Debian': {
'package': 'haproxy',
'config_file': '/etc/haproxy/haproxy.cfg',
'config_file_source': 'salt://haproxy/templates/haproxy.jinja',
'user': 'root',
'group': 'root',
'service': 'haproxy',
},
}, merge=salt['pillar.get']('haproxy:lookup')) %}