You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

34 lines
876 B

---
{% from "app/cfdd/map.jinja" import lookup, package, settings, urls with context %}
fetch cfdd binary:
file.managed:
- name: /usr/local/bin/cfdd
- source: {{ urls.binary | yaml_dquote }}
- source_hash: {{ urls.checksums | yaml_dquote }}
- source_hash_name: {{ package.binary_file | yaml_dquote }}
- user: root
- group: root
- mode: 0755
write systemd cfdd@.service:
file.managed:
- name: /lib/systemd/system/cfdd@.service
- source: salt://app/cfdd/templates/cfdd@.service.j2
- mode: 0644
- template: jinja
- context: {{ settings | tojson }}
reload systemd units:
module.run:
- service.systemctl_reload: []
- onchanges:
- file: write systemd cfdd@.service
systemd drop-in cfdd@.service.d:
file.directory:
- name: /lib/systemd/system/cfdd@.service.d
- user: root
- group: root
- mode: 0644