Initial commit
This commit is contained in:
70
gitea/parameters/defaults.yaml
Normal file
70
gitea/parameters/defaults.yaml
Normal file
@@ -0,0 +1,70 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
#
|
||||
# Set default values.
|
||||
---
|
||||
values:
|
||||
lookup:
|
||||
rootgroup: root
|
||||
service:
|
||||
name: gitea
|
||||
unit: /etc/systemd/system/{name}.service
|
||||
gpg:
|
||||
key: 7C9E68152594688862D62AF62D9AE806EC1592E2
|
||||
keyserver: keys.openpgp.org
|
||||
group: git
|
||||
paths:
|
||||
bin: /opt/gitea
|
||||
conf: /etc/opt/gitea
|
||||
custom: /var/opt/gitea/custom
|
||||
data: /var/opt/gitea/data
|
||||
home: /var/opt/gitea/home
|
||||
internal_token_uri: file:///etc/opt/gitea/internal_token
|
||||
log: /var/opt/gitea/log
|
||||
repos: /var/opt/gitea/data/gitea-repositories
|
||||
work: /var/opt/gitea
|
||||
pkg:
|
||||
latest: https://dl.gitea.io/gitea/version.json
|
||||
sig: https://dl.gitea.io/gitea/{version}/gitea-{version}-linux-{arch}.asc
|
||||
source: https://dl.gitea.io/gitea/{version}/gitea-{version}-linux-{arch}
|
||||
source_hash: https://dl.gitea.io/gitea/{version}/gitea-{version}-linux-{arch}.sha256 # yamllint disable-line rule:line-length
|
||||
requirements:
|
||||
- git
|
||||
- gpg
|
||||
- python-gnupg
|
||||
shell: /bin/bash
|
||||
user: git
|
||||
config:
|
||||
default:
|
||||
app_name: Gitea
|
||||
run_mode: prod
|
||||
run_user: git
|
||||
log:
|
||||
level: Info
|
||||
mode: console
|
||||
stacktrace_level: None
|
||||
repository.signing:
|
||||
signing_key: default
|
||||
server:
|
||||
domain: localhost
|
||||
http_addr: 0.0.0.0
|
||||
http_port: 3000
|
||||
protocol: http
|
||||
database:
|
||||
db_type: sqlite3
|
||||
name: gitea
|
||||
password: hunter1
|
||||
user: root
|
||||
secrets:
|
||||
internal_token: ''
|
||||
jwt_secret: ''
|
||||
lfs_jwt_secret: ''
|
||||
secret_key: ''
|
||||
service:
|
||||
requires_mount: []
|
||||
wants: []
|
||||
version: latest
|
||||
# Just here for testing
|
||||
added_in_defaults: defaults_value
|
||||
winner: defaults
|
||||
...
|
||||
15
gitea/parameters/map_jinja.yaml
Normal file
15
gitea/parameters/map_jinja.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
#
|
||||
# Set mapstack sources.
|
||||
---
|
||||
values:
|
||||
sources:
|
||||
- "Y:G@osarch"
|
||||
- "Y:G@os_family"
|
||||
- "Y:G@os"
|
||||
- "Y:G@osfinger"
|
||||
- "C@tool_global"
|
||||
- "C@{{ tplroot }}"
|
||||
- "Y:G@id"
|
||||
...
|
||||
0
gitea/parameters/os/.gitkeep
Normal file
0
gitea/parameters/os/.gitkeep
Normal file
17
gitea/parameters/os_family/Arch.yaml
Normal file
17
gitea/parameters/os_family/Arch.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
#
|
||||
# Set values specific to:
|
||||
# salt['config.get']('os_family') == Arch.
|
||||
#
|
||||
# You just need to add the key:values for this `os_family` that differ
|
||||
# from `defaults.yaml` + `<osarch>.yaml`.
|
||||
#
|
||||
# If you do not need to provide defaults via the `os_family` config,
|
||||
# you can remove this file or provide at least an empty dict, e.g.
|
||||
# values: {}
|
||||
---
|
||||
values:
|
||||
lookup:
|
||||
pkg_manager: pacman
|
||||
...
|
||||
21
gitea/parameters/os_family/Debian.yaml
Normal file
21
gitea/parameters/os_family/Debian.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
#
|
||||
# Set values specific to:
|
||||
# salt['config.get']('os_family') == Debian.
|
||||
#
|
||||
# You just need to add the key:values for this `os_family` that differ
|
||||
# from `defaults.yaml` + `<osarch>.yaml`.
|
||||
#
|
||||
# If you do not need to provide defaults via the `os_family` config,
|
||||
# you can remove this file or provide at least an empty dict, e.g.
|
||||
# values: {}
|
||||
---
|
||||
values:
|
||||
lookup:
|
||||
pkg_manager: apt
|
||||
requirements:
|
||||
- git
|
||||
- gpg
|
||||
- python3-gnupg
|
||||
...
|
||||
18
gitea/parameters/os_family/FreeBSD.yaml
Normal file
18
gitea/parameters/os_family/FreeBSD.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
#
|
||||
# Set values specific to:
|
||||
# salt['config.get']('os_family') == FreeBSD.
|
||||
#
|
||||
# You just need to add the key:values for this `os_family` that differ
|
||||
# from `defaults.yaml` + `<osarch>.yaml`.
|
||||
#
|
||||
# If you do not need to provide defaults via the `os_family` config,
|
||||
# you can remove this file or provide at least an empty dict, e.g.
|
||||
# values: {}
|
||||
---
|
||||
values:
|
||||
lookup:
|
||||
pkg_manager: pkg
|
||||
rootgroup: wheel
|
||||
...
|
||||
17
gitea/parameters/os_family/Gentoo.yaml
Normal file
17
gitea/parameters/os_family/Gentoo.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
#
|
||||
# Set values specific to:
|
||||
# salt['config.get']('os_family') == Gentoo.
|
||||
#
|
||||
# You just need to add the key:values for this `os_family` that differ
|
||||
# from `defaults.yaml` + `<osarch>.yaml`.
|
||||
#
|
||||
# If you do not need to provide defaults via the `os_family` config,
|
||||
# you can remove this file or provide at least an empty dict, e.g.
|
||||
# values: {}
|
||||
---
|
||||
values:
|
||||
lookup:
|
||||
pkg_manager: portage
|
||||
...
|
||||
18
gitea/parameters/os_family/MacOS.yaml
Normal file
18
gitea/parameters/os_family/MacOS.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
#
|
||||
# Set values specific to:
|
||||
# salt['config.get']('os_family') == MacOS.
|
||||
#
|
||||
# You just need to add the key:values for this `os_family` that differ
|
||||
# from `defaults.yaml` + `<osarch>.yaml`.
|
||||
#
|
||||
# If you do not need to provide defaults via the `os_family` config,
|
||||
# you can remove this file or provide at least an empty dict, e.g.
|
||||
# values: {}
|
||||
---
|
||||
values:
|
||||
lookup:
|
||||
pkg_manager: brew
|
||||
rootgroup: wheel
|
||||
...
|
||||
18
gitea/parameters/os_family/OpenBSD.yaml
Normal file
18
gitea/parameters/os_family/OpenBSD.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
#
|
||||
# Set values specific to:
|
||||
# salt['config.get']('os_family') == OpenBSD.
|
||||
#
|
||||
# You just need to add the key:values for this `os_family` that differ
|
||||
# from `defaults.yaml` + `<osarch>.yaml`.
|
||||
#
|
||||
# If you do not need to provide defaults via the `os_family` config,
|
||||
# you can remove this file or provide at least an empty dict, e.g.
|
||||
# values: {}
|
||||
---
|
||||
values:
|
||||
lookup:
|
||||
pkg_manager: pkg
|
||||
rootgroup: wheel
|
||||
...
|
||||
17
gitea/parameters/os_family/RedHat.yaml
Normal file
17
gitea/parameters/os_family/RedHat.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
#
|
||||
# Set values specific to:
|
||||
# salt['config.get']('os_family') == RedHat.
|
||||
#
|
||||
# You just need to add the key:values for this `os_family` that differ
|
||||
# from `defaults.yaml` + `<osarch>.yaml`.
|
||||
#
|
||||
# If you do not need to provide defaults via the `os_family` config,
|
||||
# you can remove this file or provide at least an empty dict, e.g.
|
||||
# values: {}
|
||||
---
|
||||
values:
|
||||
lookup:
|
||||
pkg_manager: yum
|
||||
...
|
||||
17
gitea/parameters/os_family/Suse.yaml
Normal file
17
gitea/parameters/os_family/Suse.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
#
|
||||
# Set values specific to:
|
||||
# salt['config.get']('os_family') == Suse.
|
||||
#
|
||||
# You just need to add the key:values for this `os_family` that differ
|
||||
# from `defaults.yaml` + `<osarch>.yaml`.
|
||||
#
|
||||
# If you do not need to provide defaults via the `os_family` config,
|
||||
# you can remove this file or provide at least an empty dict, e.g.
|
||||
# values: {}
|
||||
---
|
||||
values:
|
||||
lookup:
|
||||
pkg_manager: zypper
|
||||
...
|
||||
17
gitea/parameters/osarch/386.yaml
Normal file
17
gitea/parameters/osarch/386.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
#
|
||||
# Set values specific to:
|
||||
# salt['config.get']('osarch') == 386.
|
||||
#
|
||||
# You just need to add the key:values for this `osarch` that differ
|
||||
# from `defaults.yaml`.
|
||||
#
|
||||
# If you do not need to provide defaults via the `osarch` config,
|
||||
# you can remove this file or provide at least an empty dict, e.g.
|
||||
# values: {}
|
||||
---
|
||||
values:
|
||||
lookup:
|
||||
arch: '386'
|
||||
...
|
||||
17
gitea/parameters/osarch/amd64.yaml
Normal file
17
gitea/parameters/osarch/amd64.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
#
|
||||
# Set values specific to:
|
||||
# salt['config.get']('osarch') == amd64.
|
||||
#
|
||||
# You just need to add the key:values for this `osarch` that differ
|
||||
# from `defaults.yaml`.
|
||||
#
|
||||
# If you do not need to provide defaults via the `osarch` config,
|
||||
# you can remove this file or provide at least an empty dict, e.g.
|
||||
# values: {}
|
||||
---
|
||||
values:
|
||||
lookup:
|
||||
arch: amd64
|
||||
...
|
||||
17
gitea/parameters/osarch/arm64.yaml
Normal file
17
gitea/parameters/osarch/arm64.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
#
|
||||
# Set values specific to:
|
||||
# salt['config.get']('osarch') == arm64.
|
||||
#
|
||||
# You just need to add the key:values for this `osarch` that differ
|
||||
# from `defaults.yaml`.
|
||||
#
|
||||
# If you do not need to provide defaults via the `osarch` config,
|
||||
# you can remove this file or provide at least an empty dict, e.g.
|
||||
# values: {}
|
||||
---
|
||||
values:
|
||||
lookup:
|
||||
arch: arm64
|
||||
...
|
||||
17
gitea/parameters/osarch/armv6l.yaml
Normal file
17
gitea/parameters/osarch/armv6l.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
#
|
||||
# Set values specific to:
|
||||
# salt['config.get']('osarch') == armv6l.
|
||||
#
|
||||
# You just need to add the key:values for this `osarch` that differ
|
||||
# from `defaults.yaml`.
|
||||
#
|
||||
# If you do not need to provide defaults via the `osarch` config,
|
||||
# you can remove this file or provide at least an empty dict, e.g.
|
||||
# values: {}
|
||||
---
|
||||
values:
|
||||
lookup:
|
||||
arch: armv6l
|
||||
...
|
||||
17
gitea/parameters/osarch/armv7l.yaml
Normal file
17
gitea/parameters/osarch/armv7l.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
#
|
||||
# Set values specific to:
|
||||
# salt['config.get']('osarch') == armv7l.
|
||||
#
|
||||
# You just need to add the key:values for this `osarch` that differ
|
||||
# from `defaults.yaml`.
|
||||
#
|
||||
# If you do not need to provide defaults via the `osarch` config,
|
||||
# you can remove this file or provide at least an empty dict, e.g.
|
||||
# values: {}
|
||||
---
|
||||
values:
|
||||
lookup:
|
||||
arch: armv7l
|
||||
...
|
||||
17
gitea/parameters/osarch/ppc64le.yaml
Normal file
17
gitea/parameters/osarch/ppc64le.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
#
|
||||
# Set values specific to:
|
||||
# salt['config.get']('osarch') == ppc64le.
|
||||
#
|
||||
# You just need to add the key:values for this `osarch` that differ
|
||||
# from `defaults.yaml`.
|
||||
#
|
||||
# If you do not need to provide defaults via the `osarch` config,
|
||||
# you can remove this file or provide at least an empty dict, e.g.
|
||||
# values: {}
|
||||
---
|
||||
values:
|
||||
lookup:
|
||||
arch: ppc64le
|
||||
...
|
||||
17
gitea/parameters/osarch/s390x.yaml
Normal file
17
gitea/parameters/osarch/s390x.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
#
|
||||
# Set values specific to:
|
||||
# salt['config.get']('osarch') == s390x.
|
||||
#
|
||||
# You just need to add the key:values for this `osarch` that differ
|
||||
# from `defaults.yaml`.
|
||||
#
|
||||
# If you do not need to provide defaults via the `osarch` config,
|
||||
# you can remove this file or provide at least an empty dict, e.g.
|
||||
# values: {}
|
||||
---
|
||||
values:
|
||||
lookup:
|
||||
arch: s390x
|
||||
...
|
||||
17
gitea/parameters/osarch/x86_64.yaml
Normal file
17
gitea/parameters/osarch/x86_64.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
#
|
||||
# Set values specific to:
|
||||
# salt['config.get']('osarch') == x86_64.
|
||||
#
|
||||
# You just need to add the key:values for this `osarch` that differ
|
||||
# from `defaults.yaml`.
|
||||
#
|
||||
# If you do not need to provide defaults via the `osarch` config,
|
||||
# you can remove this file or provide at least an empty dict, e.g.
|
||||
# values: {}
|
||||
---
|
||||
values:
|
||||
lookup:
|
||||
arch: amd64
|
||||
...
|
||||
0
gitea/parameters/osfinger/.gitkeep
Normal file
0
gitea/parameters/osfinger/.gitkeep
Normal file
Reference in New Issue
Block a user