ansible/roles/gitea/defaults/main.yaml

143 lines
4.6 KiB
YAML
Raw Normal View History

2021-01-09 17:54:42 +00:00
gitea_enabled: true
gitea_publish_web: false
gitea_publish_ssh: false
gitea_use_external_db: true
gitea_short_name: "gitea"
2021-01-09 17:54:42 +00:00
gitea_ingress_class: "{{ gitea_namespace | default(namespace) }}-{{ 'public' if gitea_publish_web else 'private' }}-gitea-ingress-nginx"
gitea_default_values:
service:
http:
clusterIP:
ssh:
clusterIP:
2021-01-09 17:54:42 +00:00
ingress:
enabled: true
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
nginx.ingress.kubernetes.io/proxy-body-size: "0"
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
kubernetes.io/ingress.class: "{{ gitea_ingress_class }}"
2021-01-09 17:54:42 +00:00
kubernetes.io/tls-acme: "true"
hosts:
- host: "{{ gitea_short_name }}.{{ domain }}"
paths:
- path: /
pathType: Prefix
tls:
- secretName: "{{ gitea_short_name }}.{{ domain }}-tls"
hosts:
- "{{ gitea_short_name }}.{{ domain }}"
2021-01-09 17:54:42 +00:00
persistence:
enabled: true
accessModes:
- "{{ gitea_storage_mode | default('ReadWriteMany') }}"
2021-01-09 17:54:42 +00:00
size: "{{ gitea_size | default('20Gi') }}"
storageClass: "{{ gitea_storage | default('nfs-ssd') }}"
## addtional annotations for PVCs. Uncommenting will prevent the PVC from being deleted.
annotations:
"helm.sh/resource-policy": keep
gitea:
admin:
username: "{{ gitea_admin_user | default('gitea') }}"
password: "{{ gitea_admin_pass | default(gitea_admin_password) }}"
email: "gitea@{{ mail_domain | default(domain) }}"
ldap:
2021-12-30 12:52:24 +00:00
- name: OpenLDAP
securityProtocol: ldaps
host: "{{ openldap_short_name | default('openldap')}}.{{ domain }}"
port: "636"
userSearchBase: "ou=users,{{ openldap_domain }}"
userFilter: "(&(objectClass=posixAccount)(uid=%s))"
emailAttribute: mail
bindDn: "uid=ldapbind,ou=services,{{ openldap_domain }}"
bindPassword: "{{ ldapbind_pass | default(ldapbind_password) }}"
config:
# APP_NAME: "Gitea: Git with a cup of tea"
RUN_MODE: prod
2021-02-10 10:11:42 +00:00
server:
LFS_START_SERVER: true
2021-02-15 19:55:20 +00:00
ROOT_URL: "https://{{ gitea_short_name}}.{{ domain }}"
service:
DISABLE_REGISTRATION: true
webhook:
ALLOWED_HOST_LIST: "*"
mailer:
ENABLED: "true"
HOST: "{{ mail_short_name | default('mail') }}.{{ mail_domain | default(domain) }}:465"
IS_TLS_ENABLED: "true"
FROM: "gitea@{{ mail_domain | default(domain) }}"
USER: "{{ gitea_ldap_user | default('gitea') }}"
PASSWD: "{{ gitea_ldap_pass | default(gitea_ldap_password) }}"
MAILER_TYPE: "smtp"
gitea_external_db_values:
gitea:
config:
database:
2021-12-30 12:52:24 +00:00
DB_TYPE: "{{ gitea_db_type | default('postgres') }}"
HOST: "{{ postgres_db_team | default(namespace) }}-postgres.{{ postgres_db_namespace | default(namespace) }}.svc.cluster.local:5432"
2021-12-30 12:52:24 +00:00
NAME: "{{ gitea_db_name | default('gitea') }}"
USER: "{{ gitea_db_username | default(omit) }}"
PASSWD: "{{ gitea_db_password | default(omit) }}"
2021-12-30 12:52:24 +00:00
postgresql:
enabled: false
2021-01-09 17:54:42 +00:00
gitea_publish_ingress_nginx_values:
2021-01-09 17:54:42 +00:00
controller:
kind: DaemonSet
2021-01-09 17:54:42 +00:00
config:
use-proxy-protocol: true
use-forward-headers: true
compute-full-forward-for: true
service:
externalTrafficPolicy: Local
gitea_ingress_nginx_default_values:
controller:
containerPort:
ssh: 22
http: 80
https: 443
publishService:
enabled: true
scope:
enabled: true
extraArgs:
tcp-services-configmap: "{{ gitea_namespace | default(namespace) }}/{{ gitea_ingress_nginx_name | default(namespace + '-gitea-ingress-nginx') }}-tcp"
service:
enabled: true
type: LoadBalancer
loadBalancerIP: "{{ gitea_loadbalancer_ip | default(omit) }}"
ports:
ssh: 22
http: 80
https: 443
targetPorts:
ssh: ssh
http: http
https: https
ingressClass: "{{ gitea_ingress_class }}"
tcp:
22: "{{ gitea_namespace | default(namespace) }}/{{ namespace }}-gitea-ssh:22"
2021-01-09 17:54:42 +00:00
gitea_dns_default_values:
fullnameOverride: "{{ gitea_dns_name | default(namespace + '-gitea-internal-dns') }}"
annotationFilter: "kubernetes.io/ingress.class={{ gitea_ingress_class }}"
domainFilters: ["{{ domain }}"]
provider: rfc2136
rfc2136:
host: "{{ dns_ip }}"
port: 53
zone: "{{ domain }}"
tsigSecret: "{{ k8s_tsig }}"
tsigSecretAlg: "{{ gitea_dns_tsigSecretAlg | default('hmac-sha512') }}"
tsigKeyname: "{{ gitea_dns_tsigKeyname | default('k8s') }}"
tsigAxfr: true
## Possible units [ns, us, ms, s, m, h], see more https://golang.org/pkg/time/#ParseDuration
minTTL: "30s"