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

View File

@ -18,10 +18,10 @@ git:
gitea-bin: gitea-bin:
file.managed: file.managed:
- name: {{ gitea.workingdir }}/gitea - name: {{ gitea.workingdir }}/gitea
- source: "https://dl.gitea.io/gitea/{{ gitea.version }}/gitea-{{ gitea.version }}-linux-{{ gitea.arch }}" - source: "{{ gitea.release_url }}/{{ gitea.version }}/gitea-{{ gitea.version }}-{{ gitea.os }}-{{ gitea.arch }}"
- source_hash: "https://dl.gitea.io/gitea/{{ gitea.version }}/gitea-{{ gitea.version }}-linux-{{ gitea.arch }}.sha256" - source_hash: "{{ gitea.release_url }}/{{ gitea.version }}/gitea-{{ gitea.version }}-{{ gitea.os }}-{{ gitea.arch }}.sha256"
- user: git - user: git
- group: git - group: git
- mode: 750 - mode: 750
- require: - require:
- git - git

View File

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