跳至正文
Wener Notes

Consul Template

约 1 分钟阅读
标签:DevOps服务Consul自动化

provides a convenient way to populate values from Consul into the file system.

Installation

bash
brew install consul-template

Usage

Example of reading a key:

hcl
{{ key "/hashicorp/street_address" }}

Execution command:

bash
consul-template -template "find_address.tpl:hashicorp_address.txt"

Syntax

格式: 模板:目标文件:命令

bash
consul-template \
  -consul-addr "10.4.4.6:8500" \
  -vault-addr "https://10.5.32.5:8200"

关联信息

反向链接、本文链接的其他页面和外部资料。

参考资料

GitHub1 条
其他外链2 条
最近更新commit 906e816编辑