Skip to content
Snippets Groups Projects
Commit 86a179f6 authored by Marius Kotsbak's avatar Marius Kotsbak
Browse files

Make formula relative to actual directory by using 'tpldir'

parent 654fedfe
No related branches found
No related tags found
No related merge requests found
{% from "haproxy/map.jinja" import haproxy with context %} {% from tpldir ~ "/map.jinja" import haproxy with context %}
{% set config_file = salt['pillar.get']('haproxy:config_file_path', haproxy.config_file) %} {% set config_file = salt['pillar.get']('haproxy:config_file_path', haproxy.config_file) %}
haproxy.config: haproxy.config:
......
{% from "haproxy/map.jinja" import haproxy with context %} {% from tpldir ~ "/map.jinja" import haproxy with context %}
haproxy.install: haproxy.install:
pkg.installed: pkg.installed:
......
{% from "haproxy/map.jinja" import haproxy with context %} {% from tpldir ~ "/map.jinja" import haproxy with context %}
haproxy.service: haproxy.service:
{% if salt['pillar.get']('haproxy:enable', True) %} {% if salt['pillar.get']('haproxy:enable', True) %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment