paulbsd-salt/states/gitea/install.sls

27 lines
702 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
# vim: ft=sls
2021-12-29 16:56:39 +01:00
---
2020-07-10 00:58:55 +02:00
{% 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
2021-12-29 16:56:39 +01:00
- home: {{ gitea.workingdir }}
2020-07-10 00:58:55 +02:00
- shell: /usr/sbin/nologin
- groups:
2021-12-29 16:56:39 +01:00
- {{ gitea.group }}
2020-07-10 00:58:55 +02:00
- require:
2021-12-29 16:56:39 +01:00
- group: {{ gitea.group }}
2020-07-10 00:58:55 +02:00
pkg.installed: []
2021-12-29 16:56:39 +01:00
gitea-bin:
2020-07-10 00:58:55 +02:00
file.managed:
2021-12-29 16:56:39 +01:00
- name: {{ gitea.workingdir }}/gitea
2020-07-10 00:58:55 +02:00
- 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