diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-02-28 23:42:58 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-02-28 23:42:58 -0500 |
commit | 609d3ab1ced1ae3458dd52f6c3c949f7130f9e54 (patch) | |
tree | ae9d4e8ee17dc660a35bb1d8ad334b15ca26073b /modules/mail/facts.d | |
parent | 8a23eab3adf423b562856f6e4dab3d050d600213 (diff) | |
download | puppet-tozt-609d3ab1ced1ae3458dd52f6c3c949f7130f9e54.tar.gz puppet-tozt-609d3ab1ced1ae3458dd52f6c3c949f7130f9e54.zip |
bail out early if we can't connect to the metadata endpoint
not sure how to get this to not be annoying on non-digitalocean machines
otherwise
Diffstat (limited to 'modules/mail/facts.d')
-rwxr-xr-x | modules/mail/facts.d/bind_address | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mail/facts.d/bind_address b/modules/mail/facts.d/bind_address index 4aef713..7762076 100755 --- a/modules/mail/facts.d/bind_address +++ b/modules/mail/facts.d/bind_address @@ -3,4 +3,4 @@ set -eu set -o pipefail printf "bind_address=" -curl -s http://169.254.169.254/metadata/v1/interfaces/public/0/ipv4/address +curl --connect-timeout 1 -s http://169.254.169.254/metadata/v1/interfaces/public/0/ipv4/address |