2020-07-10 00:58:55 +02:00
|
|
|
# vim: ft=sls
|
2021-12-29 16:56:39 +01:00
|
|
|
---
|
2020-07-10 00:58:55 +02:00
|
|
|
{%- from "gitea/map.jinja" import gitea with context %}
|
|
|
|
|
2021-12-29 16:56:39 +01:00
|
|
|
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
|
|
|
|
|
2020-07-10 00:58:55 +02:00
|
|
|
gitea:
|
|
|
|
service.running:
|
2020-09-12 17:41:35 +02:00
|
|
|
- enable: true
|
|
|
|
- full_restart: true
|
2020-07-10 00:58:55 +02:00
|
|
|
- watch:
|
2021-12-29 16:56:39 +01:00
|
|
|
- file: gitea-bin
|
|
|
|
- file: gitea-config
|