feat: Update template

This commit is contained in:
jeanluc
2023-02-05 18:55:53 +01:00
parent f3a5dead23
commit c58b3ea081
53 changed files with 672 additions and 265 deletions

View File

@@ -1,10 +1,13 @@
# -*- coding: utf-8 -*-
# vim: ft=sls
{#-
This state will stop the gitea service and disable it at boot time.
#}
{%- set tplroot = tpldir.split('/')[0] %}
{%- from tplroot ~ "/map.jinja" import mapdata as gitea with context %}
gitea-service-clean-service-dead:
Gitea is dead:
service.dead:
- name: {{ gitea.lookup.service.name }}
- enable: False

View File

@@ -1,5 +1,9 @@
# -*- coding: utf-8 -*-
# vim: ft=sls
{#-
This state will start the gitea service
and has a dependency on ``gitea.config`` via include list.
#}
include:
- .running

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# vim: ft=sls
{%- set tplroot = tpldir.split('/')[0] %}
@@ -8,7 +7,7 @@
include:
- {{ sls_config_file }}
gitea-service-running-service-running:
Gitea is running:
service.running:
- name: {{ gitea.lookup.service.name }}
- enable: True