paulbsd-salt/states/gitea/install.sls
Paul b108a0b82a
All checks were successful
continuous-integration/drone/push Build is passing
updated gitea state
2025-01-10 12:45:24 +01:00

36 lines
922 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: "{{ gitea.release_url }}/{{ gitea.version }}/gitea-{{ gitea.version }}-{{ gitea.os }}-{{ gitea.arch }}"
- source_hash: "{{ gitea.release_url }}/{{ gitea.version }}/gitea-{{ gitea.version }}-{{ gitea.os }}-{{ gitea.arch }}.sha256"
- user: {{ gitea.user }}
- group: {{ gitea.group }}
- mode: 750
- require:
- git
gitea-log-dir:
file.directory:
- name: {{ gitea.config.log.root_path }}
- user: {{ gitea.user }}
- group: {{ gitea.group }}
- require:
- file: gitea-bin