fix: Complete migration to libtofsstack
This commit is contained in:
@@ -8,7 +8,6 @@
|
|||||||
{%- set tplroot = tpldir.split("/")[0] %}
|
{%- set tplroot = tpldir.split("/")[0] %}
|
||||||
{%- set sls_config_file = tplroot ~ ".config.file" %}
|
{%- set sls_config_file = tplroot ~ ".config.file" %}
|
||||||
{%- from tplroot ~ "/map.jinja" import mapdata as gitea with context %}
|
{%- from tplroot ~ "/map.jinja" import mapdata as gitea with context %}
|
||||||
{%- from tplroot ~ "/libtofs.jinja" import files_switch with context %}
|
|
||||||
|
|
||||||
Gitea RST external renderer is absent:
|
Gitea RST external renderer is absent:
|
||||||
file.absent:
|
file.absent:
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
{%- set sls_config_file = tplroot ~ ".config.file" %}
|
{%- set sls_config_file = tplroot ~ ".config.file" %}
|
||||||
{%- set sls_go_install = tplroot ~ ".go" %}
|
{%- set sls_go_install = tplroot ~ ".go" %}
|
||||||
{%- from tplroot ~ "/map.jinja" import mapdata as gitea with context %}
|
{%- from tplroot ~ "/map.jinja" import mapdata as gitea with context %}
|
||||||
{%- from tplroot ~ "/libtofs.jinja" import files_switch with context %}
|
{%- from tplroot ~ "/libtofsstack.jinja" import files_switch with context %}
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- {{ sls_go_install }}
|
- {{ sls_go_install }}
|
||||||
@@ -59,9 +59,11 @@ Chroma is installed:
|
|||||||
RST external renderer is installed:
|
RST external renderer is installed:
|
||||||
file.managed:
|
file.managed:
|
||||||
- name: {{ gitea.lookup.mod_rst.path }}
|
- name: {{ gitea.lookup.mod_rst.path }}
|
||||||
- source: {{ files_switch(["grst"],
|
- source: {{ files_switch(
|
||||||
|
["grst"],
|
||||||
|
config=gitea,
|
||||||
use_subpath=True,
|
use_subpath=True,
|
||||||
lookup="RST external renderer is installed"
|
lookup="RST external renderer is installed",
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
- mode: '0755'
|
- mode: '0755'
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{%- set tplroot = tpldir.split("/")[0] %}
|
{%- set tplroot = tpldir.split("/")[0] %}
|
||||||
{%- from tplroot ~ "/map.jinja" import mapdata as gitea with context %}
|
{%- from tplroot ~ "/map.jinja" import mapdata as gitea with context %}
|
||||||
{%- from tplroot ~ "/libtofs.jinja" import files_switch with context %}
|
{%- from tplroot ~ "/libtofsstack.jinja" import files_switch with context %}
|
||||||
|
|
||||||
Gitea user/group is present:
|
Gitea user/group is present:
|
||||||
user.present:
|
user.present:
|
||||||
@@ -140,9 +140,11 @@ Gitea service unit is available:
|
|||||||
file.managed:
|
file.managed:
|
||||||
- name: {{ gitea.lookup.service.unit.format(name=gitea.lookup.service.name) }}
|
- name: {{ gitea.lookup.service.unit.format(name=gitea.lookup.service.name) }}
|
||||||
- source: {{ files_switch(
|
- source: {{ files_switch(
|
||||||
["gitea.service.j2"],
|
["gitea.service", "gitea.service.j2"],
|
||||||
|
config=gitea,
|
||||||
lookup="Gitea service unit is available",
|
lookup="Gitea service unit is available",
|
||||||
) }}
|
)
|
||||||
|
}}
|
||||||
- template: jinja
|
- template: jinja
|
||||||
- mode: '0644'
|
- mode: '0644'
|
||||||
- user: root
|
- user: root
|
||||||
|
|||||||
Reference in New Issue
Block a user