add support for aws

pull/48/merge
Kelsey Hightower 2016-09-11 03:07:28 -07:00
parent fbe25cf929
commit e9633430d1
1 changed files with 3 additions and 3 deletions

View File

@ -85,14 +85,14 @@ EOF
#### GCE #### GCE
``` ```
export INTERNAL_IP=$(curl -s -H "Metadata-Flavor: Google" \ INTERNAL_IP=$(curl -s -H "Metadata-Flavor: Google" \
http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/ip) http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/ip)
``` ```
#### AWS #### AWS
``` ```
export INTERNAL_IP=$(curl -s http://169.254.169.254/latest/meta-data/local-ipv4) INTERNAL_IP=$(curl -s http://169.254.169.254/latest/meta-data/local-ipv4)
``` ```
--- ---
@ -100,7 +100,7 @@ export INTERNAL_IP=$(curl -s http://169.254.169.254/latest/meta-data/local-ipv4)
Set the etcd name: Set the etcd name:
``` ```
export ETCD_NAME=etcd$(echo $INTERNAL_IP | cut -c 11) ETCD_NAME=etcd$(echo $INTERNAL_IP | cut -c 11)
``` ```
``` ```