diff --git a/.envrc b/.envrc index ec65b91a7898..9fc79484aef6 100644 --- a/.envrc +++ b/.envrc @@ -9,6 +9,8 @@ PATH_add "$(expand_path "${GOPATH}/bin")" # Python export VIRTUAL_ENV="$(expand_path ./.venv)" PATH_add "$(expand_path "${VIRTUAL_ENV}/bin")" +# Minijinja +export MINIJINJA_CONFIG_FILE="$(expand_path ./.minijinja.toml)" # Taskfile export TASK_X_ENV_PRECEDENCE=1 export TASK_X_MAP_VARIABLES=0 diff --git a/.minijinja.toml b/.minijinja.toml new file mode 100644 index 000000000000..05c2a7b6a055 --- /dev/null +++ b/.minijinja.toml @@ -0,0 +1,5 @@ +autoescape = "none" +newline = true +trim-blocks = true +lstrip-blocks = true +env = true diff --git a/Taskfile.yaml b/Taskfile.yaml index fa2cd628f369..6910379c1789 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -12,6 +12,7 @@ vars: env: GOPATH: '{{.ROOT_DIR}}/.go' KUBECONFIG: '{{.CLUSTER_DIR}}/kubeconfig' + MINIJINJA_CONFIG_FILE: '{{.ROOT_DIR}}/.minijinja.toml' SOPS_AGE_KEY_FILE: '{{.ROOT_DIR}}/age.key' TALOSCONFIG: '{{.CLUSTER_DIR}}/talosconfig' VIRTUAL_ENV: '{{.ROOT_DIR}}/.venv' @@ -25,4 +26,6 @@ includes: tasks: - default: task --list + default: + cmd: task --list + silent: true