def main():
    """
    The Fun Starts Here.
    """
    detect_debug_mode()

    # Shell out to the oddball storage script from external deps.
    # See the external_dependencies.yml for details.

    # By default, put the storage script in "Big Hammer" mode.
    os.environ["VERBOSE"] = "1"
    os.environ["FORCE"] = "1"
    os.environ["DRY"] = "0"

    # The new storage script does not consistently honor all of the names
    # dumped in the environment by previous iterations of the RightScripts
    # so we're going to have to do a dirty little translation.

    translated = {"STORAGE_MOUNTPOINT": "MOUNT_POINT"}
    for key, val in translated.items():
        if key in environ:
            log_and_stdout(
                "   *** Translating {}={} into {}={} for mount"
                " script ***   ".format(key, environ.get(key), val, environ.get(key))
            )
            os.environ[val] = os.environ.get(key)

    assert_command(
        "chmod +x ./setup.sh ./setup_aws.sh ./common.sh" " ./addons/bcache.sh",
        "Failed to mark storage scripts executable!",
        cwd="./lib/shell/storage-scripts",
    )

    assert_command("./setup.sh", "Storage/Volume setup failed!", cwd="./lib/shell/storage-scripts")
def main():
    """
    The Fun Starts Here.
    """
    utils.detect_debug_mode()
    utils.validate_env('RS_CLOUD_PROVIDER', '^(ec2|google)$')
    if not 'ec2' == os.environ['RS_CLOUD_PROVIDER']:
        sys.exit("RS_CLOUD_PROVIDER=\'{}\' not supported!".format(
            os.environ['RS_CLOUD_PROVIDER']))
    else:
        install_dependencies()
        set_hostname_w_fqdn()
def main():
    """
    All the fun starts here!
    """
    utils.detect_debug_mode()
    elb_connect()