Migrate to Copier template

This commit is contained in:
jeanluc
2024-11-04 19:13:13 +01:00
parent e93ec99640
commit 5f6e574583
2 changed files with 83 additions and 121 deletions

83
.copier-answers.yml Normal file
View File

@@ -0,0 +1,83 @@
# Autogenerated. Do not edit this by hand, use `copier update`.
---
_commit: 0.0.1
_src_path: https://github.com/lkubb/salt-formula-copier
abbr_pysafe: gitea
author: lkubb
config: /etc/gitea/app.ini
lookup:
build_user: giteabuild
build_user_home: /home/giteabuild
go:
pkg: https://go.dev/dl/go1.18.2.linux-amd64.tar.gz
source_hash: e54bec97a1a5d230fc2f9ad0880fcbabb5888f30ed9666eca4a91c5a32e86cbc
gpg:
key: 7C9E68152594688862D62AF62D9AE806EC1592E2
keyserver: keys.openpgp.org
group: git
mod_rst:
chroma_bin: /opt/chroma/chroma
chroma_build_path: /opt/chroma/src
chroma_repo: https://github.com/alecthomas/chroma
chroma_rev: HEAD
path: /usr/local/bin/grst
pip_dependencies:
- docutils
pkg_dependencies:
- python3
- python3-pip
paths:
bin: /opt/gitea
conf: /etc/gitea
custom: /var/lib/gitea/custom
data: /var/lib/gitea/data
internal_token_uri: file:///etc/gitea/internal_token
log: /var/log/gitea
repos: /var/lib/gitea/data/gitea-repositories
work: /var/lib/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
requirements:
- git
- gpg
shell: /bin/bash
user: git
needs_repo: false
pkg: gitea
service: gitea
service_abbr: gitea
service_name: Gitea
settings:
config:
database:
db_type: sqlite3
default:
app_name: Gitea
run_mode: prod
run_user: git
log:
level: Info
mode: console
stacktrace_level: None
oauth2:
jwt_secret: ''
repository.signing:
signing_key: default
security:
internal_token: ''
secret_key: ''
server:
domain: localhost
http_addr: 0.0.0.0
http_port: 3000
lfs_jwt_secret: ''
protocol: http
service:
requires_mount: []
socket_activation: false
wants: []
version: latest
subcomponent: ''

View File

@@ -1,121 +0,0 @@
{
"template": "https://github.com/lkubb/salt-template-formula",
"commit": "77fb6850675fb0934ef3d23539dd34913772c525",
"checkout": null,
"context": {
"cookiecutter": {
"_extensions": [
"local_extensions.YAMLDumper"
],
"_jinja2_env_vars": {
"block_start_string": "{!",
"block_end_string": "!}",
"variable_start_string": "{=",
"variable_end_string": "=}",
"comment_start_string": "{@",
"comment_end_string": "@}"
},
"name": "Gitea",
"abbr": "gitea",
"abbr_pysafe": "gitea",
"pkg": "gitea",
"needs_repo": "",
"config": "/etc/gitea/app.ini",
"service": "gitea",
"subcomponent": "",
"subcomponent_config": "",
"git_username": "lkubb",
"lookup": {
"paths": {
"bin": "/opt/gitea",
"conf": "/etc/gitea",
"custom": "/var/lib/gitea/custom",
"data": "/var/lib/gitea/data",
"internal_token_uri": "file:///etc/gitea/internal_token",
"log": "/var/log/gitea",
"repos": "/var/lib/gitea/data/gitea-repositories",
"work": "/var/lib/gitea"
},
"requirements": [
"git",
"gpg"
],
"build_user": "giteabuild",
"build_user_home": "/home/giteabuild",
"shell": "/bin/bash",
"user": "git",
"group": "git",
"gpg": {
"key": "7C9E68152594688862D62AF62D9AE806EC1592E2",
"keyserver": "keys.openpgp.org"
},
"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"
},
"go": {
"pkg": "https://go.dev/dl/go1.18.2.linux-amd64.tar.gz",
"source_hash": "e54bec97a1a5d230fc2f9ad0880fcbabb5888f30ed9666eca4a91c5a32e86cbc"
},
"mod_rst": {
"pip_dependencies": [
"docutils"
],
"pkg_dependencies": [
"python3",
"python3-pip"
],
"chroma_repo": "https://github.com/alecthomas/chroma",
"chroma_build_path": "/opt/chroma/src",
"chroma_bin": "/opt/chroma/chroma",
"chroma_rev": "HEAD",
"path": "/usr/local/bin/grst"
}
},
"settings": {
"version": "latest",
"service": {
"requires_mount": [],
"socket_activation": false,
"wants": []
},
"config": {
"database": {
"db_type": "sqlite3"
},
"default": {
"app_name": "Gitea",
"run_user": "git",
"run_mode": "prod"
},
"oauth2": {
"jwt_secret": ""
},
"security": {
"internal_token": "",
"secret_key": ""
},
"server": {
"protocol": "http",
"domain": "localhost",
"http_addr": "0.0.0.0",
"http_port": 3000,
"lfs_jwt_secret": ""
},
"log": {
"mode": "console",
"level": "Info",
"stacktrace_level": "None"
},
"repository.signing": {
"signing_key": "default"
}
}
},
"_template": "https://github.com/lkubb/salt-template-formula"
}
},
"directory": null
}