2016-11-12 00:02:45 +01:00
|
|
|
{%- 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 }}
|
2016-11-16 01:17:28 +01:00
|
|
|
- mode: 755
|
2016-11-14 16:48:23 +01:00
|
|
|
|
2016-11-12 00:02:45 +01:00
|
|
|
{%- endfor %}
|