Andrew Woodlee
4b382bddd9
* Getting environment variables and passwords from Vault (not tested yet) * Vault configuration to config (not tested yet) * Ability to run scripts from file on local machine on the remote host * Ability to get ouput in the notification of a list for individual commands or all commands * Make SSH connections close after all commands have been run; reuse previous connections if needed
20 lines
802 B
Plaintext
20 lines
802 B
Plaintext
{{- $hook := .hook }}
|
|
{{- $page := .page }}
|
|
{{- $parameter := .parameter }}
|
|
{{- $outputFormat := .outputFormat }}
|
|
{{- if not $outputFormat }}
|
|
{{- $outputFormat = partial "output-format.hugo" $page }}
|
|
{{- end }}
|
|
{{- $archetype := "default" }}
|
|
{{- if $page.Params.archetype }}
|
|
{{- $archetype = $page.Params.archetype }}
|
|
{{- else if $page.Params.chapter }}
|
|
{{- $archetype = "deprecated-chapter" }}
|
|
{{- else if $page.IsHome }}
|
|
{{- $archetype = "deprecated-home" }}
|
|
{{- end }}
|
|
{{- $f := printf "/layouts/partials/archetypes/%s" $archetype }}
|
|
{{- if not (partialCached "fileExists.hugo" $f $f) }}
|
|
{{- $archetype = "default" }}
|
|
{{- end }}
|
|
{{- partial "output-partial.hugo" (dict "base" (printf "archetypes/%s/%s" $archetype $hook) "page" $page "parameter" $parameter "outputFormat" $outputFormat) }} |