mirror of
https://github.com/ben-grande/qusal.git
synced 2025-08-18 02:40:15 -04:00
feat: kicksecure minimal template
This commit is contained in:
parent
cd1786f67d
commit
efa4013e90
24 changed files with 1644 additions and 3 deletions
|
@ -13,18 +13,23 @@ Usage:
|
|||
{{ clone_template('debian-minimal', sls_path) }}
|
||||
#}
|
||||
|
||||
{% macro clone_template(source, name) -%}
|
||||
{% macro clone_template(source, name, noprefix) -%}
|
||||
|
||||
{%- import source ~ "/template.jinja" as template -%}
|
||||
|
||||
include:
|
||||
- {{ source }}.create
|
||||
|
||||
"tpl-{{ name }}-clone":
|
||||
{% set prefix = "tpl-" -%}
|
||||
{% if noprefix -%}
|
||||
{%- set prefix = "" -%}
|
||||
{% endif -%}
|
||||
|
||||
"{{ prefix }}{{ name }}-clone":
|
||||
qvm.clone:
|
||||
- require:
|
||||
- sls: {{ source }}.create
|
||||
- source: {{ template.template }}
|
||||
- name: tpl-{{ name }}
|
||||
- name: {{ prefix }}{{ name }}
|
||||
|
||||
{% endmacro -%}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue