updated gitea state

This commit is contained in:
Paul 2023-10-10 09:07:06 +02:00
parent ad3cbfae87
commit 30765d1ac4
3 changed files with 11 additions and 10 deletions

View File

@ -1,12 +1,14 @@
---
gitea:
release_url: https://dl.gitea.io/gitea
workingdir: /var/lib/gitea
binfile: /var/lib/gitea/gitea
configfile: /var/lib/gitea/custom/conf/app.ini
user: git
group: git
version: "1.0.2"
arch: "amd64"
os: linux
arch: amd64
config:
global:
app_name: Gitea - Git with a cup of tea
@ -23,6 +25,7 @@ gitea:
path: data/gitea.db
repository:
root: /var/lib/gitea/gitea-repositories
default_branch: master
server:
domain: git.example.com
http_addr: "::"

View File

@ -18,10 +18,10 @@ git:
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"
- 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: git
- group: git
- mode: 750
- require:
- git
- git

View File

@ -3,11 +3,9 @@
{%- set os_family_map = salt['grains.filter_by']({
'Debian': {},
'Suse': {},
'Arch': { },
'RedHat': { },
}
, grain="os_family"
, merge=salt['pillar.get']('gitea:lookup'))
'Arch': {},
'RedHat': {},
}, grain="os_family", merge=salt['pillar.get']('gitea:lookup'))
-%}
{%- do defaults.gitea.update(os_family_map) -%}
@ -16,4 +14,4 @@
default=defaults.gitea,
merge=True
)
-%}
-%}