Added a basic setup with package install, config, and service management

This commit is contained in:
2023-03-21 12:56:17 -04:00
parent ab178945d1
commit fe72021f00
12 changed files with 139 additions and 2 deletions

18
gitea/config/file.sls Normal file
View File

@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
# vim: ft=sls
{%- set tplroot = tpldir.split('/')[0] %}
{%- set sls_package_install = tplroot ~ '.package.install' %}
{%- from tplroot ~ "/map.jinja" import gitea with context %}
include:
- {{ sls_package_install }}
gitea_config_file:
file.managed:
- name: {{ gitea.config_path }}
- user: {{ gitea.config_owner }}
- group: {{ gitea.config_group }}
- mode: {{ gitea.config_mode }}
- require:
- sls: {{ sls_package_install }}

5
gitea/config/init.sls Normal file
View File

@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
# vim: ft=sls
include:
- .file