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 gitea_repo: pkgrepo.managed: - name: deb https://packaging.gitlab.io/gitea gitea main - file: /etc/apt/sources.list.d/morph027-gitea.list gitea: pkg.installed gitea_app_ini: file.managed: - name: /etc/gitea/app.ini - source: salt://gitea/app.ini - template: jinja - user: gitea - group: gitea - mode: '0600' 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