paulbsd-salt/states/gitea/install.sls

27 lines
657 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
# -*- coding: utf-8 -*-
# vim: ft=sls
{% from "gitea/map.jinja" import gitea with context %}
git:
group.present:
2020-09-12 17:41:35 +02:00
- system: true
2020-07-10 00:58:55 +02:00
user.present:
2020-09-12 17:41:35 +02:00
- system: true
2020-07-10 00:58:55 +02:00
- home: /var/lib/gitea
- shell: /usr/sbin/nologin
- groups:
- git
- require:
- group: git
pkg.installed: []
/var/lib/gitea/gitea:
file.managed:
- source: "https://dl.gitea.io/gitea/{{ gitea.version }}/gitea-{{ gitea.version }}-linux-{{ gitea.arch }}"
- source_hash: "https://dl.gitea.io/gitea/{{ gitea.version }}/gitea-{{ gitea.version }}-linux-{{ gitea.arch }}.sha256"
- user: git
- group: git
- mode: 750
- require:
- git