2024-05-12 10:59:12 +01:00
|
|
|
git_repo_key:
|
|
|
|
file.managed:
|
|
|
|
- name: /etc/apt/trusted.gpg.d/morph027-gitea.asc
|
|
|
|
- source: https://packaging.gitlab.io/gitea/gpg.key
|
|
|
|
- skip_verify: true
|
|
|
|
|
2023-02-27 18:02:28 +00:00
|
|
|
gitea_repo:
|
|
|
|
pkgrepo.managed:
|
2024-05-12 10:59:12 +01:00
|
|
|
- name: deb https://packaging.gitlab.io/gitea gitea main
|
|
|
|
- file: /etc/apt/sources.list.d/morph027-gitea.list
|
2023-02-27 18:02:28 +00:00
|
|
|
|
|
|
|
gitea:
|
|
|
|
pkg.installed
|
|
|
|
|
|
|
|
gitea_app_ini:
|
|
|
|
file.managed:
|
|
|
|
- name: /etc/gitea/app.ini
|
|
|
|
- source: salt://gitea/app.ini
|
|
|
|
- template: jinja
|
2024-05-12 10:59:12 +01:00
|
|
|
- user: gitea
|
|
|
|
- group: gitea
|
|
|
|
- mode: '0600'
|
2023-02-27 18:02:28 +00:00
|
|
|
service.running:
|
|
|
|
- name: gitea
|
|
|
|
- restart: true
|
|
|
|
- watch:
|
|
|
|
- file: /etc/gitea/app.ini
|
|
|
|
|
|
|
|
gitea_web:
|
|
|
|
file.managed:
|
|
|
|
- require:
|
|
|
|
- sls: apache
|
|
|
|
- sls: certificates
|
|
|
|
- names:
|
|
|
|
- /etc/apache2/sites-available/git.lunch.org.uk.conf:
|
|
|
|
- source: salt://gitea/git.lunch.org.uk.conf
|
|
|
|
apache_site.enabled:
|
|
|
|
- require:
|
|
|
|
- file: /etc/apache2/sites-available/git.lunch.org.uk.conf
|
|
|
|
- name: git.lunch.org.uk
|
|
|
|
service.running:
|
|
|
|
- name: apache2
|
|
|
|
- reload: true
|
|
|
|
- watch:
|
|
|
|
- file: /etc/apache2/sites-available/git.lunch.org.uk.conf
|
|
|
|
|