tlu/salt/states/tlu-harvester/images.sls

16 lines
449 B
Plaintext
Raw Normal View History

2021-10-19 09:54:30 +00:00
{% for dist, items in pillar['tlu-harvester']['images'].items() %}
2021-10-18 15:20:55 +00:00
{% for item in items %}
{% set filename = item['url'].split('/')[-1] %}
Downloading image {{ filename }}:
file.managed:
2021-10-19 09:54:30 +00:00
- name: /srv/www/htdocs/images/{{ dist }}/{{ filename }}
2021-10-18 15:20:55 +00:00
- source: {{ item['url'] }}
- source_hash: {{ item['checksum'] }}
- user: root
- group: root
- mode: "0644"
- makedirs: True
- dir_mode: "0755"
{% endfor %}
{% endfor %}