48 lines
1.1 KiB
Plaintext
48 lines
1.1 KiB
Plaintext
|
gitea_repo:
|
||
|
pkgrepo.managed:
|
||
|
- name: deb http://mirrors.dotsrc.org/osdn/storage/g/r/ra/raspbian-addons/debian precise main
|
||
|
- key_url: https://apt.raspbian-addons.org/KEY.gpg
|
||
|
- file: /etc/apt/sources.list.d/respbian-addons.list
|
||
|
|
||
|
gitea:
|
||
|
pkg.installed
|
||
|
|
||
|
gitea_app_ini:
|
||
|
file.managed:
|
||
|
- name: /etc/gitea/app.ini
|
||
|
- source: salt://gitea/app.ini
|
||
|
- template: jinja
|
||
|
service.running:
|
||
|
- name: gitea
|
||
|
- restart: true
|
||
|
- watch:
|
||
|
- file: /etc/gitea/app.ini
|
||
|
|
||
|
var_lib_gitea_directory:
|
||
|
file.directory:
|
||
|
- name: /var/lib/gitea
|
||
|
- user: git
|
||
|
- group: git
|
||
|
- recurse:
|
||
|
- user
|
||
|
- group
|
||
|
|
||
|
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
|
||
|
|