2023-02-20 15:50:20 +00:00
|
|
|
dehydrated:
|
|
|
|
pkg.installed:
|
|
|
|
- pkgs:
|
|
|
|
- dehydrated
|
|
|
|
- dnsutils
|
2023-03-07 15:09:25 +00:00
|
|
|
- rsync
|
2023-02-20 15:50:20 +00:00
|
|
|
|
|
|
|
dehydrated_domains:
|
|
|
|
file.managed:
|
|
|
|
- name: /etc/dehydrated/domains.txt
|
|
|
|
- source: salt://certificates/dehydrated/domains.txt
|
|
|
|
- mode: '0644'
|
|
|
|
|
|
|
|
dehydrated_dnsapi:
|
|
|
|
file.managed:
|
|
|
|
- name: /etc/dehydrated/dnsapi.config.txt
|
|
|
|
- source: salt://certificates/dehydrated/dnsapi.config.txt
|
|
|
|
- mode: '0600'
|
|
|
|
- template: jinja
|
|
|
|
|
|
|
|
dehydrated_mythic_dns01:
|
|
|
|
file.recurse:
|
|
|
|
- name: /etc/dehydrated/dehydrated-mythic-dns01
|
|
|
|
- source: salt://certificates/dehydrated/dehydrated-mythic-dns01
|
|
|
|
- dir_mode: '0755'
|
|
|
|
- file_mode: '0755'
|
2023-04-06 15:05:57 +01:00
|
|
|
- include_pat:
|
|
|
|
- "*.sh"
|
2024-05-11 09:27:31 +01:00
|
|
|
- "*-challenge/*"
|
|
|
|
- "common/*"
|
2023-02-20 15:50:20 +00:00
|
|
|
|
2023-05-12 15:26:34 +01:00
|
|
|
dehydrated_cert_group:
|
|
|
|
group.present:
|
|
|
|
- name: ssl-cert
|
|
|
|
- system: true
|
|
|
|
|
2023-07-10 17:54:59 +01:00
|
|
|
dehydrated_confs:
|
2023-02-20 15:50:20 +00:00
|
|
|
file.recurse:
|
|
|
|
- name: /etc/dehydrated/conf.d
|
|
|
|
- source: salt://certificates/dehydrated/conf.d
|
|
|
|
- dir_mode: '0755'
|
|
|
|
- file_mode: '0644'
|
|
|
|
|
2023-07-10 17:54:59 +01:00
|
|
|
dehydrated_hooks:
|
|
|
|
file.recurse:
|
|
|
|
- name: /etc/dehydrated/hooks
|
|
|
|
- source: salt://certificates/dehydrated/hooks
|
|
|
|
- dir_mode: '0755'
|
|
|
|
- file_mode: '0755'
|
|
|
|
|
2023-02-20 15:50:20 +00:00
|
|
|
dehydrated_cron:
|
|
|
|
file.managed:
|
|
|
|
- name: /etc/cron.daily/dehydrated
|
|
|
|
- source: salt://certificates/dehydrated/cron.daily
|
|
|
|
- mode: '0755'
|
|
|
|
|
|
|
|
dehydrated_logrotate:
|
|
|
|
file.managed:
|
|
|
|
- name: /etc/logrotate.d/dehydrated
|
|
|
|
- source: salt://certificates/dehydrated/logrotate
|
|
|
|
- mode: '0644'
|
|
|
|
|
2023-03-07 15:09:25 +00:00
|
|
|
server_key:
|
|
|
|
ssh_auth.present:
|
|
|
|
- user: root
|
|
|
|
- source: salt://certificates/certificates_id_ed25519.pub
|
2023-03-09 16:58:46 +00:00
|
|
|
|
|
|
|
server_client_certificate_location:
|
2023-07-10 17:54:59 +01:00
|
|
|
file.directory:
|
2023-03-09 16:58:46 +00:00
|
|
|
- name: /var/local/certificates
|
2023-07-10 17:54:59 +01:00
|
|
|
- dir_mode: 0750
|
|
|
|
- file_mode: 0640
|