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.
 
 
 
 
states/app/cfdd/install.sls

29 lines
728 B

---
{% from "app/cfdd/map.jinja" import package, settings with context %}
fetch cfdd binary:
file.managed:
- name: /usr/local/bin/cfdd
- source: {{ package.binary_url | yaml_squote }}
- source_hash: {{ package.binary_checksum | yaml_squote }}
- 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:
- name: service.systemctl_reload
systemd drop-in cfdd@.service.d:
file.directory:
- name: /lib/systemd/system/cfdd@.service.d
- user: root
- group: root
- mode: 0644