paulbsd-salt/states/gitea/service.sls

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