feat: Update template
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user