Merge pull request #403 from thekleine/consul-version-0.5.2

Consul version 0.5.2
This commit is contained in:
Nico Schottelius 2015-08-28 10:57:53 +02:00
commit 68370db5c3
5 changed files with 10 additions and 0 deletions

View file

@ -0,0 +1 @@
2207534901 18245010 consul

View file

@ -0,0 +1 @@
https://dl.bintray.com/mitchellh/consul/0.5.2_linux_amd64.zip

View file

@ -109,6 +109,12 @@ for param in $(ls "$__object/parameter/"); do
# remove trailing , # remove trailing ,
printf ' ,"retry_join": [%s]\n' "${retry_join%*,}" printf ' ,"retry_join": [%s]\n' "${retry_join%*,}"
;; ;;
retry-join-wan)
# join multiple parameters into json array over wan
retry_join_wan="$(awk '{printf "\""$1"\","}' "$__object/parameter/retry-join-wan")"
# remove trailing ,
printf ' ,"retry_join_wan": [%s]\n' "${retry_join_wan%*,}"
;;
bootstrap-expect) bootstrap-expect)
# integer key=value parameters # integer key=value parameters
key="$(echo "$param" | tr '-' '_')" key="$(echo "$param" | tr '-' '_')"

View file

@ -17,3 +17,4 @@ key-file-source
node-name node-name
user user
state state
advertise-wan

View file

@ -1 +1,2 @@
retry-join retry-join
retry-join-wan