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

Upgrade consul-template and remove deprecated Grace field #6946

Closed
schmichael opened this issue Jan 16, 2020 · 3 comments · Fixed by #7170
Closed

Upgrade consul-template and remove deprecated Grace field #6946

schmichael opened this issue Jan 16, 2020 · 3 comments · Fixed by #7170

Comments

@schmichael
Copy link
Member

Nomad version

Nomad v0.10.2

Issue

Nomad uses a Vault.Grace field which has been removed from both Vault and consul-template.

Nomad should upgrade consul-template and remove our use of the field.

@kecorbin
Copy link

Running into issues trying to create a service mesh ingress using nginx as outlined here

The following template stanza's are failing to retrieve connect CA information as it appears they are not yet integrated into Nomad.

      template {
        data = <<EOF
{{range caRoots}}{{.RootCertPEM}}{{end}}
EOF

        destination   = "local/ca.crt"
        change_mode   = "signal"
        change_signal = "SIGHUP"
      }


      template {
        data = <<EOF
{{with caLeaf "ingress"}}{{.CertPEM}}{{end}}
EOF

        destination   = "local/cert.pem"
        change_mode   = "signal"
        change_signal = "SIGHUP"
      }

      template {
        data = <<EOF
{{with caLeaf "ingress"}}{{.PrivateKeyPEM}}{{end}}
EOF

        destination   = "local/cert.key"
        change_mode   = "signal"
        change_signal = "SIGHUP"
      }

Returns error message such as

Template failed: (dynamic): parse: template: :1: function "caRoots" not defined

@schmichael schmichael added the theme/consul/connect Consul Connect integration label Jan 21, 2020
@perbly
Copy link

perbly commented Feb 13, 2020

Same issue here when trying to template connect services.

{{- range services }} {{- $service:=.Name}} {{- range .Tags }} {{- if eq . "external" }} {{- range connect $service }} {{- $service }} {{ .Name }} {{ .Address }}:{{ .Port }} {{ end -} {{end -}} {{end -}} {{end -}}

(dynamic): parse: template: :5: function "connect" not defined`

Works fine with consul-template alone.

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants