Guest User

Untitled

a guest
Aug 10th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [ $# -lt 1 ]; then
  4. echo "usage: $0 <path/to/aws-cluster-up/examples/aws/ocp-3.11/single-master.inventory> [ <master-ip> <infra-ip> <node-ip> ]"
  5. exit 1
  6. fi
  7.  
  8. : ${AWS_ACCESS:=foo}
  9. : ${AWS_ACCESS_KEY_ID:=bar}
  10. : ${AWS_SECRET_ACCESS_KEY:=bar}
  11. : ${ACU_CLUSTER_NAME:=amcdermo-ocp311}
  12. : ${OREG_AUTH_USER:=unused}
  13. : ${OREG_AUTH_PASSWORD:=unused}
  14.  
  15. declare -A ACU_INVENTORY_INSTANCE_PUBLIC_IP
  16.  
  17. ACU_INVENTORY_INSTANCE_PUBLIC_IP[master]=${2:-localhost}
  18. ACU_INVENTORY_INSTANCE_PUBLIC_IP[infra]=${3:-localhost}
  19. ACU_INVENTORY_INSTANCE_PUBLIC_IP[node]=${4:-localhost}
  20.  
  21. source $1
Add Comment
Please, Sign In to add comment