{{- $requiredClass := "confkey-required" }}{{ $requiredText := "required" }} {{- with .Get "required" }} {{- if (eq . "no") }}{{ $requiredClass = "confkey-notrequired" }}{{ $requiredText = "not required" }} {{- else if (eq . "situational") }}{{ $requiredClass = "confkey-situational" }}{{ $requiredText = "situational" }} {{ end }}{{- end }} {{- $type := "string" }}{{ with .Get "type" }}{{ $type = . }}{{ end }} {{- $syntax := "" }}{{ with .Get "syntax" }}{{ $syntax = . }}{{ end }} {{- $structure := "" }}{{ with .Get "structure" }}{{ $structure = . }}{{ end }} {{- $ref := (.Get "common") }} {{- if not $ref }} {{- if eq $type "structure" }} {{- with $structure }}{{ $ref = . }}{{ end }} {{- else if eq $syntax "duration" }}{{ $ref = "duration" }} {{- else if eq $syntax "address" }}{{ $ref = "address" }} {{- else if eq $syntax "network" }}{{ $ref = "network" }} {{- end }} {{- end }}
Reference Note
{{ $text }}For more information please see both the configuration example and the {{ $description }} reference guide.
Important Note
This can also be defined using a secret which is strongly recommended especially for containerized deployments.