tlu/salt/states/tlu-harvester/manifests.sls
2021-10-26 15:34:18 +02:00

26 lines
926 B
Plaintext

Add tlu-harvester manifests:
file.recurse:
- name: /home/{{ pillar['username'] }}/tlu-harvester
- source: salt://tlu-harvester/files/manifests
- template: jinja
- user: {{ pillar['username'] }}
- group: users
- file_mode: "0600"
- include_empty: True
- makedirs: True
- dir_modes: "0700"
- context:
fingerprint: {{ salt['cmd.shell']('/usr/bin/openssl x509 -in /etc/rmt/ssl/rmt-ca.crt -noout -fingerprint | /usr/bin/cut -d= -f2') }}
{%- set images = salt['file.find']('/srv/www/htdocs/images/suse',type='f',mindepth=1,maxdepth=1,print='name') %}
Adding image manifest for SUSE images:
file.managed:
- name: /home/{{ pillar['username'] }}/tlu-harvester/suse-images.yaml
- source: salt://tlu-harvester/files/suse-images.yaml.jinja
- template: jinja
- user: {{ pillar['username'] }}
- group: users
- mode: "0600"
- context:
images: {{ images }}