* 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
This commit is contained in:
2023-07-01 21:46:54 -05:00
parent 5e7c52997c
commit 4b382bddd9
831 changed files with 83782 additions and 107 deletions

View File

@ -0,0 +1,11 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/attachments.html" (dict
"context" .Page
"color" (.Get "color")
"content" .Inner
"icon" (.Get "icon")
"pattern" (.Get "pattern")
"style" (.Get "style")
"sort" (.Get "sort")
"title" (.Get "title")
) }}

View File

@ -0,0 +1,9 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/badge.html" (dict
"context" .Page
"color" (.Get "color")
"content" .Inner
"icon" (.Get "icon")
"style" (.Get "style")
"title" (.Get "title")
) }}

View File

@ -0,0 +1,13 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/button.html" (dict
"context" .Page
"color" (.Get "color")
"content" .Inner
"href" (.Get "href")
"icon" (.Get "icon")
"iconposition" ((.Get "iconposition") | default (.Get "icon-position"))
"style" (.Get "style")
"title" (.Get "title")
"target" (.Get "target")
"type" (.Get "type")
) }}

View File

@ -0,0 +1,10 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/children.html" (dict
"context" .Page
"containerstyle" (.Get "containerstyle")
"description" (.Get "description")
"depth" (.Get "depth")
"showhidden" (.Get "showhidden")
"sort" (.Get "sort")
"style" (.Get "style")
) }}

View File

@ -0,0 +1,15 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- $version := split hugo.Version "." }}
{{- $major := int (index $version 0) }}
{{- $minor := int (index $version 1) }}
{{- $id := "" }}
{{- if or (and (eq $major 0) (ge $minor 108)) (gt $major 0) }}
{{- $id = "" }}
{{- end }}
{{- partial "shortcodes/expand.html" (dict
"context" .Page
"content" .Inner
"open" (.Get "open" | default (.Get 1))
"title" (.Get "title" | default (.Get 0))
"id" $id
) }}

View File

@ -0,0 +1,5 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/icon.html" (dict
"context" .Page
"icon" (.Get "icon" | default (.Get 0))
) }}

View File

@ -0,0 +1,5 @@
{{- partial "shortcodes/include.html" (dict
"context" .Page
"file" (.Get "file" | default (.Get 0))
"hidefirstheading" (.Get "hidefirstheading" | default (.Get 1))
) }}

View File

@ -0,0 +1,6 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/math.html" (dict
"context" .Page
"content" .Inner
"align" (.Get "align")
) }}

View File

@ -0,0 +1,7 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/mermaid.html" (dict
"context" .Page
"content" .Inner
"align" (.Get "align")
"zoom" (.Get "zoom")
) }}

View File

@ -0,0 +1,9 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/notice.html" (dict
"context" .Page
"color" (.Get "color")
"content" .Inner
"icon" (.Get "icon" | default (.Get 2))
"style" (.Get "style" | default (.Get 0))
"title" (.Get "title" | default (.Get 1))
) }}

View File

@ -0,0 +1,12 @@
{{- $version := split hugo.Version "." }}
{{- $major := int (index $version 0) }}
{{- $minor := int (index $version 1) }}
{{- $id := "" }}
{{- if or (and (eq $major 0) (ge $minor 108)) (gt $major 0) }}
{{- $id = "" }}
{{- end }}
{{- partial "shortcodes/openapi.html" (dict
"context" .Page
"src" (.Get "src")
"id" $id
) }}

View File

@ -0,0 +1,4 @@
{{- partial "shortcodes/siteparam.html" (dict
"context" .Page
"name" (.Get "name" | default (.Get 0))
) }}

View File

@ -0,0 +1,12 @@
{{- $version := split hugo.Version "." }}
{{- $major := int (index $version 0) }}
{{- $minor := int (index $version 1) }}
{{- $id := "" }}
{{- if or (and (eq $major 0) (ge $minor 108)) (gt $major 0) }}
{{- $id = "" }}
{{- end }}
{{- partial "shortcodes/swagger.html" (dict
"context" .Page
"src" (.Get "src")
"id" $id
) }}

View File

@ -0,0 +1,33 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- $color := (.Get "color") }}
{{- $content := .Inner }}
{{- $icon := (.Get "icon") }}
{{- $name := (.Get "name") }}
{{- $style := (.Get "style") }}
{{- $title := (.Get "title") }}
{{- $tabs := slice }}
{{- if and .Parent (.Parent.Scratch.Get "tabs") }}
{{- $tabs = .Parent.Scratch.Get "tabs" }}
{{- end }}
{{- $tabs = $tabs | append (dict
"color" $color
"content" $content
"icon" $icon
"name" $name
"style" $style
"title" $title
) }}
{{- if .Parent }}
{{- $.Parent.Scratch.Set "tabs" $tabs }}
{{- else }}
{{- $c:=""}}{{/* if no containing tabs shortcode is present, we display this tab as single */}}
{{- partial "shortcodes/tabs.html" (dict
"context" .Page
"color" ""
"content" $tabs
"groupid" ""
"icon" ""
"style" ""
"title" ""
) }}
{{- end }}

View File

@ -0,0 +1,22 @@
{{- $unused := .Inner }}
{{- $version := split hugo.Version "." }}
{{- $major := int (index $version 0) }}
{{- $minor := int (index $version 1) }}
{{- $color := (.Get "color") }}
{{- $groupid := (.Get "groupid") }}
{{- if or (and (eq $major 0) (ge $minor 108)) (gt $major 0) }}
{{- $groupid = $groupid | default "" }}
{{- end }}
{{- $icon := (.Get "icon") }}
{{- $style := (.Get "style") }}
{{- $title := (.Get "title") }}
{{- $tabs := (.Scratch.Get "tabs") }}
{{- partial "shortcodes/tabs.html" (dict
"context" .Page
"color" $color
"content" $tabs
"groupid" $groupid
"icon" $icon
"style" $style
"title" $title
) }}