Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve readme - escape Levant delimiter #437

Open
afelinczak opened this issue Nov 26, 2021 · 0 comments
Open

Improve readme - escape Levant delimiter #437

afelinczak opened this issue Nov 26, 2021 · 0 comments

Comments

@afelinczak
Copy link

Description

In some Nomad jobs we want to ignore Levant delimiters.
Good example is when we want to configure Telegraf using Template stanza

Relevant Nomad job specification file

 template {
        data = <<EOH
[agent]
  interval = "10s"
  omit_hostname = false
[[outputs.influxdb]]
  urls = ["http://influxdb.service.consul:8086"]
...
EOH
        destination = "local/telegraf.conf"
      }

This will fail to render as expecting outputs to be a function.

For users that ate not familiar with Go templates it is cumbersome how to fix it.
Please add details how to escape delimiter into template readme.

[["[["]]outputs.influxdb]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant