paulbsd-salt/states/gitea/install.sls
2021-12-29 16:56:39 +01:00

27 lines
702 B
Plaintext

# vim: ft=sls
---
{% from "gitea/map.jinja" import gitea with context %}
git:
group.present:
- system: true
user.present:
- system: true
- home: {{ gitea.workingdir }}
- shell: /usr/sbin/nologin
- groups:
- {{ gitea.group }}
- require:
- group: {{ gitea.group }}
pkg.installed: []
gitea-bin:
file.managed:
- name: {{ gitea.workingdir }}/gitea
- 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