paulbsd-salt/states/gitea/service.sls
2021-12-29 16:56:39 +01:00

22 lines
431 B
Plaintext

# vim: ft=sls
---
{%- from "gitea/map.jinja" import gitea with context %}
gitea-service:
file.managed:
- name: /etc/systemd/system/gitea.service
- source: salt://gitea/files/gitea.service.j2
- user: root
- group: root
- mode: 644
- template: jinja
- makedirs: true
gitea:
service.running:
- enable: true
- full_restart: true
- watch:
- file: gitea-bin
- file: gitea-config