You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Copy-paste your configuration files here. Only include what is necessary or# what you've changed from defaults. Include all referenced configurations.
N/A
<!-- Copy-paste your Consul Template template here -->
<html>
<table>
<tr>
<th>Name</th>
<th>Detail</th>
</tr>
{{- with $g := key"help.yaml" | parseYAML }}
{{- rangeindex $g.rows0 }}
<tr>
<td>{{ .name }}</td>
<td>{{ .msg }}</td>
</tr>
{{- end }}
{{- end }}
</table>
</html>
# Include sample data you reference in the template from Consul or Vault here.rows:
- - name: Wikimsg: Editable knowledge base that contains a lot of helpful things.btn: Open The Wikitags:
- name: Wiki
- name: Unifi Protectmsg: Manage and view cameras via the UniFi Protect web interface.# default button will be "Open $TITLE"# btn: Open The Wikitags:
- name: Cameras
- name: UniFi Managementmsg: Manage the network including Switches, Router and Access Points. Also manage/view VPN settings.btn: Open UniFitags:
- name: Network
Command
# Place your Consul Template command here
$ ./consul-template -consul-addr https://consul.lab -template test.html.ct -once -dry
<html><table><tr><th>Name</th><th>Detail</th></tr><tr><td>StokesNet Wiki</td><td>Editable knowledge base that contains a lot of helpful things.</td></tr><tr><td>Unifi Protect</td><td>Manage and view cameras via the UniFi Protect web interface.</td></tr><tr><td>UniFi Management</td><td>Manage the network including Switches, Router and Access Points. Also manage/view VPN settings to StokesNet UK.</td></tr></table></html>
Debug output
Provide a link to a GitHub Gist containing the complete debug
output by running with -log-level=trace.
N/A
Expected behavior
What should have happened?
YAML would be parsed just like JSON
Actual behavior
What actually happened? parseYAML is not a valid helper so it breaks.
Steps to reproduce
See above template
Details
I did this a bit backwards, I already have the PR ready but forgot to read the contrib guide that said I needed an issue first. The issue template here seems to be provided for mainly bugs but I tried filling it out the best I could.
The text was updated successfully, but these errors were encountered:
Consul Template version
Configuration
Command
Debug output
Provide a link to a GitHub Gist containing the complete debug
output by running with
-log-level=trace
.N/A
Expected behavior
What should have happened?
YAML
would be parsed just likeJSON
Actual behavior
What actually happened?
parseYAML
is not a valid helper so it breaks.Steps to reproduce
See above template
Details
I did this a bit backwards, I already have the PR ready but forgot to read the contrib guide that said I needed an issue first. The issue template here seems to be provided for mainly bugs but I tried filling it out the best I could.
The text was updated successfully, but these errors were encountered: