Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pjkerpan/c3297608f0571396be63cc44a95faa89 to your computer and use it in GitHub Desktop.
Save pjkerpan/c3297608f0571396be63cc44a95faa89 to your computer and use it in GitHub Desktop.
#!/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