paulbsd-salt/states/gitea/service.sls
2020-07-10 00:58:55 +02:00

20 lines
433 B
Plaintext

# -*- coding: utf-8 -*-
# vim: ft=sls
{%- from "gitea/map.jinja" import gitea with context %}
gitea:
service.running:
- enable: True
- full_restart: True
- watch:
- file: /var/lib/gitea/gitea
- file: /var/lib/gitea/custom/conf/app.ini
/etc/systemd/system/gitea.service:
file.managed:
- source: salt://gitea/files/gitea.service
- user: root
- group: root
- mode: 644
- makedirs: True