Consul Template
Consul Template provides a convenient way to populate values from Consul into the file system.
Installation
brew install consul-template
Usage
Example of reading a key:
{{ key "/hashicorp/street_address" }}
Execution command:
consul-template -template "find_address.tpl:hashicorp_address.txt"
Syntax
格式: 模板:目标文件:命令
consul-template \
-consul-addr "10.4.4.6:8500" \
-vault-addr "https://10.5.32.5:8200"