2024-06-24 00:48:33 +02:00
|
|
|
{% if grains['os'] == 'Ubuntu' %}
|
|
|
|
caddy repository available:
|
|
|
|
pkgrepo.managed:
|
|
|
|
- name: deb https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version main
|
|
|
|
- key_url: https://dl.cloudsmith.io/public/caddy/stable/gpg.key
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
caddy installed:
|
|
|
|
pkg.installed:
|
|
|
|
- name: caddy
|
|
|
|
|
|
|
|
caddy service running:
|
|
|
|
service.running:
|
|
|
|
- name: caddy
|
2024-08-27 18:17:37 +02:00
|
|
|
- enable: True
|
2024-06-24 00:48:33 +02:00
|
|
|
|
|
|
|
write caddy config file:
|
|
|
|
file.managed:
|
|
|
|
- name: /etc/caddy/Caddyfile
|
|
|
|
- source: salt://caddy/Caddyfile.jinja
|
|
|
|
- template: jinja
|