摘要:
保证模板的正常执行 使用||true $ consul template template "in.ctmpl:out.file:service nginx restart || true" 当nginx不返回0的时候,仍然返回OK exit code, consul模板仍然作为服务继续执行。 建议 阅读全文
posted @ 2016-05-25 16:20
过错
阅读(417)
评论(0)
推荐(0)
摘要:
datacenters {{datacenters}} 数据中心 file {{file "/path/to/local/file"}} 读取本地文件的内容。如果不可读的话,会报错 key {{key "service/redis/maxconns@east aws"}} 读取consul的键的值。 阅读全文
posted @ 2016-05-25 15:54
过错
阅读(668)
评论(0)
推荐(0)
摘要:
参看https://github.com/hashicorp/consul template examples // This is the address of the Consul agent. By default, this is 127.0.0.1:8500, // which is th 阅读全文
posted @ 2016-05-25 15:08
过错
阅读(1066)
评论(0)
推荐(0)
摘要:
Consul Template的使用 1安装 地址 https://github.com/hashicorp/consul template/releases wget https://releases.hashicorp.com/consul template/0.14.0/consul temp 阅读全文
posted @ 2016-05-25 14:46
过错
阅读(10618)
评论(0)
推荐(0)

浙公网安备 33010602011771号