feat(mods): Add external RST renderer
This commit is contained in:
14
gitea/go/clean.sls
Normal file
14
gitea/go/clean.sls
Normal file
@@ -0,0 +1,14 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=sls
|
||||
|
||||
{%- set tplroot = tpldir.split('/')[0] %}
|
||||
{%- set sls_config_file = tplroot ~ '.config.file' %}
|
||||
{%- from tplroot ~ "/map.jinja" import mapdata as gitea with context %}
|
||||
|
||||
Go is absent for build user:
|
||||
file.absent:
|
||||
- name: {{ gitea.lookup.build_user_home | path_join("go") }}
|
||||
|
||||
Gitea build user is absent:
|
||||
user.absent:
|
||||
- name: {{ gitea.lookup.build_user }}
|
||||
19
gitea/go/init.sls
Normal file
19
gitea/go/init.sls
Normal file
@@ -0,0 +1,19 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=sls
|
||||
|
||||
{%- set tplroot = tpldir.split('/')[0] %}
|
||||
{%- set sls_config_file = tplroot ~ '.config.file' %}
|
||||
{%- from tplroot ~ "/map.jinja" import mapdata as gitea with context %}
|
||||
|
||||
Gitea build user is present:
|
||||
user.present:
|
||||
- name: {{ gitea.lookup.build_user }}
|
||||
- home: {{ gitea.lookup.build_user_home }}
|
||||
- createhome: true
|
||||
|
||||
Go is installed for build user:
|
||||
archive.extracted:
|
||||
- name: {{ gitea.lookup.build_user_home }}
|
||||
- source: {{ gitea.lookup.go.pkg }}
|
||||
- source_hash: {{ gitea.lookup.go.source_hash }}
|
||||
- user: {{ gitea.lookup.build_user }}
|
||||
Reference in New Issue
Block a user