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

26 lines
926 B
Plaintext
Raw Permalink Normal View History

2021-10-19 09:54:30 +00:00
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"
2021-10-26 13:34:18 +00:00
- context:
fingerprint: {{ salt['cmd.shell']('/usr/bin/openssl x509 -in /etc/rmt/ssl/rmt-ca.crt -noout -fingerprint | /usr/bin/cut -d= -f2') }}
2021-10-20 13:51:48 +00:00
{%- 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 }}