salt/tests/integration/files/file/base/file-pillarget.sls
2016-08-29 14:53:41 -06:00

12 lines
251 B
Plaintext

{% if grains['kernel'] == 'Windows' %}
{% set TMP = "C:\\Windows\\Temp\\" %}
{% else %}
{% set TMP = "/tmp/" %}
{% endif %}
{% set file = salt['pillar.get']('monty', '') %}
create_file:
file.managed:
- name: {{ TMP }}filepillar-{{ file }}