network/salt/cpe/init.sls

12 lines
251 B
Plaintext
Raw Normal View History

2016-11-28 17:17:59 +01:00
{%- for hostname, conf in pillar['cpe'].items() %}
/root/{{ hostname }}.sh:
file.managed:
- source: salt://cpe/ap.sh
- template: 'jinja'
- context:
hostname: {{ hostname }}
conf: {{ conf }}
- mode: 755
{%- endfor %}