11 lines
282 B
Plaintext
11 lines
282 B
Plaintext
|
{%- for hostname, switch in pillar['switches'].items() %}
|
||
|
/root/{{ hostname }}.expect:
|
||
|
file.managed:
|
||
|
- source: salt://switches/{{ switch['model'] }}.expect
|
||
|
- template: 'jinja'
|
||
|
- context:
|
||
|
hostname: {{ hostname }}
|
||
|
switch: {{ switch }}
|
||
|
|
||
|
{%- endfor %}
|