Created
June 8, 2018 14:25
-
-
Save JayH5/c2919318aa7f60270fc1bf6986ee64de to your computer and use it in GitHub Desktop.
Consul Template template for Vault certificate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ with secret "pki/vault/issue/server" "common_name=vault01" "alt_names=vault.service.internal,vault" "ip_sans=10.70.4.10,127.0.0.1" -}} | |
{{ .Data.certificate }} | |
{{ range .Data.ca_chain -}} | |
{{ . }} | |
{{- end }} | |
{{- end }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment