vagrant-salt-environment/saltstack/salt/test/init.sls

22 lines
457 B
Plaintext
Raw Permalink Normal View History

2019-12-08 14:07:24 +01:00
test_create_temp_file:
file.managed:
- name: /tmp/test.file
- mode: 0666
- user: root
- group: root
- template: jinja
- contents: |
{% set pillar = salt['pillar.get']('test') %}
{{ pillar.foo }}
{{ pillar.bar }}
test_create_other_temp_file:
file.managed:
- name: /tmp/test2.file
- mode: 0444
- user: root
- group: root
- template: jinja
- source: salt://test/files/test.template