Last active
November 28, 2019 07:46
-
-
Save pjkerpan/c3297608f0571396be63cc44a95faa89 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# These functions expect CLOUD_PLATFORM to be bound to one of the values below. | |
# Read in if this is a specific cloud. | |
# cloud_platform options: | |
# AWS | |
# AZURE | |
# GCE | |
# ORACLE | |
# SOFTLAYER | |
# VMWARE | |
function is_cloud { | |
[ "$CLOUD_PLATFORM" == "$1" ] | |
} | |
## | |
# Functions | |
# | |
function has_metadata { | |
} | |
function instance_id { | |
} | |
function default_password { | |
} | |
function is_classic { | |
} | |
function cloud_region { | |
} | |
function cloud_zone { | |
} | |
function public_ip_from_interface { | |
} | |
function primary_private_ip_from_interface { | |
} | |
function secondary_private_ips_from_interface { | |
} | |
function gateway_from_interface { | |
} | |
function network_range { | |
} | |
function subnet_range_from_interface { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment