basic gitea setup

This commit is contained in:
2019-03-30 14:57:33 -04:00
parent 2dcf9516e8
commit 401aa60a35
7 changed files with 100 additions and 0 deletions

22
gitea/systemd.sls Normal file
View File

@@ -0,0 +1,22 @@
/etc/systemd/system/gitea.service:
file.managed:
- source: 'salt://gitea/files/systemd_service.jinja'
- template: jinja
- user: root
- group: root
- mode: 644
- require:
- sls: gitea.install
# systemctl daemon-reload
service.systemctl_reload:
module.run:
- onchanges:
- file: /etc/systemd/system/gitea.service
gitea:
service.running:
- enable: True
- watch:
- file: /etc/systemd/system/gitea.service