TEST=$(host proxy.service.consul)
RV=$?
if [ ${RV} == 0 ]; then
    export http_proxy="http://proxy.service.consul:3128/"
    export https_proxy="http://proxy.service.consul:3128/"
    export no_proxy="localhost,127.0.0.1,.localdomain,10.0.0.0/8,169.254.169.254"
    export HTTP_PROXY="$http_proxy"
    export HTTPS_PROXY="$https_proxy"
    export NO_PROXY="$no_proxy"
fi

TEST=$(host proxy.service.consul)
RV=$?
if [ ${RV} == 0 ]; then
    export http_proxy="http://proxy.service.consul:3128/"
    export https_proxy="http://proxy.service.consul:3128/"
    export no_proxy="localhost,127.0.0.1,.localdomain,10.0.0.0/8"
    export HTTP_PROXY="$http_proxy"
    export HTTPS_PROXY="$https_proxy"
    export NO_PROXY="$no_proxy"
fi

--- 
+++ 
@@ -3,7 +3,7 @@
 if [ ${RV} == 0 ]; then
     export http_proxy="http://proxy.service.consul:3128/"
     export https_proxy="http://proxy.service.consul:3128/"
-    export no_proxy="localhost,127.0.0.1,.localdomain,10.0.0.0/8"
+    export no_proxy="localhost,127.0.0.1,.localdomain,10.0.0.0/8,169.254.169.254"
     export HTTP_PROXY="$http_proxy"
     export HTTPS_PROXY="$https_proxy"
     export NO_PROXY="$no_proxy"
Add EC2 metadata service to no_proxies list

Fixes #235
