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

12 lines
276 B
Plaintext

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