Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This file should be sourced by scripts that need access to
- # the IP address of the cloud controller, such that the (albeit ugly)
- # logic is in a single place, and consistent.
- default_route=$(ip route show to exact 0/0)
- default_interface=$(echo $default_route | sed -e 's/^.*dev \([^ ]*\).*$/\1/')
- addr_withprefix=$(ip addr show label $default_interface scope global | awk '$1 == "inet" { print $2 }')
- addr=${addr_withprefix%%/*}
- # In the default UEC, all of these components live on the same system.
- #
- # It is possible, however, to install each of (cloud, cc, walrus, sc, cloud)
- # on separate hosts. The admin must ensure that the public key of
- # eucalyptus@cloud is installed on each of the systems to be registered.
- #
- # This sourcable file can be used to statically configure these IPs, or use
- # logic to discover the IPs of these services.
- #
- # Note that CC_IP_ADDR and SC_IP_ADDR can be a quoted, whitespace separated
- # list of IP addresses.
- CC_IP_ADDR="192.168.1.1"
- WALRUS_IP_ADDR="$addr"
- SC_IP_ADDR="192.168.1.1"
- CLOUD_IP_ADDR="$addr"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement