def print_intro(): init_cbreak_infra(create=False) print('\033[1m' + "Welcome to Whoville!" + '\033[0m') if horton.cbd: cbd_public_ip = horton.cbd.public_ips[0] url = 'https://' + cbd_public_ip + '/sl' print("\nCloudbreak is available at (browser): " + url) print("\nAltus Director is available at (browser): " + url.replace('/sl', ':7189')) print("Currently Deployed Environments: " + 'Cloudbreak: ' + str([x.name for x in deploy.list_stacks()]) + '\n' + 'Director: ' + ', '.join([ 'http://{0}:7180'.format( director.get_deployment(dep_name=x).manager_instance. properties['publicIpAddress']) for x in director.list_deployments() ])) log.info( "Suggested Hosts File Entries for Director Environments:\n{0}". format('\n'.join(director.get_hostfile_list()))) if horton.k8svm: k8s_master_name = [x for x in horton.k8svm if 'k8s-master' in x][0] if isinstance(horton.k8svm[k8s_master_name], list): k8s_master_ip = horton.k8svm[k8s_master_name][0].public_ips[0] else: k8s_master_ip = horton.k8svm[k8s_master_name].public_ips[0] print("\nThe K8s Cluster Master is on: " + k8s_master_ip) print("\nThe following Definitions are available for Deployment:") for def_key in horton.defs.keys(): print('\033[1m' + "\n " + def_key + '\033[0m') print(" " + horton.defs[def_key].get('desc'))
def print_intro(): cbd_public_ip = horton.cbd.public_ips[0] url = 'https://' + cbd_public_ip + '/sl' print('\033[1m' + "Welcome to Whoville!" + '\033[0m') print("\nCloudbreak is available at (browser): " + url) print("Currently Deployed Environments: " + str([x.name for x in deploy.list_stacks()])) print("\nThe following Definitions are available for Deployment to " "Cloudbreak:") for def_key in horton.defs.keys(): print('\033[1m' + "\n " + def_key + '\033[0m') print(" " + horton.defs[def_key].get('desc'))
def print_intro(): print('\033[1m' + "Welcome to Whoville!" + '\033[0m') if horton.cbd: cbd_public_ip = horton.cbd.public_ips[0] url = 'https://' + cbd_public_ip + '/sl' print("\nCloudbreak is available at (browser): " + url) print("\nAltus Director is available at (browser): " + url.replace('/sl', ':7189')) print("Currently Deployed Environments: " + str([x.name for x in deploy.list_stacks()])) print("\nThe following Definitions are available for Deployment:") for def_key in horton.defs.keys(): print('\033[1m' + "\n " + def_key + '\033[0m') print(" " + horton.defs[def_key].get('desc')) print("\nTo deploy a CDH cluster, type 'cdh-' followed by the version " "number, e.g. 'cdh-5.12.2'")
def print_intro(): init_cbreak_infra(create=False) print('\033[1m' + "Welcome to Whoville!" + '\033[0m') if horton.cbd: cbd_public_ip = horton.cbd.public_ips[0] url = 'https://' + cbd_public_ip + '/sl' print("\nCloudbreak is available at (browser): " + url) print("\nAltus Director is available at (browser): " + url.replace('/sl', ':7189')) print("Currently Deployed Environments: " + str([x.name for x in deploy.list_stacks()])) if horton.k8svm: k8s_master_name = [x for x in horton.k8svm if 'k8s-master' in x][0] if isinstance(horton.k8svm[k8s_master_name], list): k8s_master_ip = horton.k8svm[k8s_master_name][0].public_ips[0] else: k8s_master_ip = horton.k8svm[k8s_master_name].public_ips[0] print("\nThe K8s Cluster Master is on: " + k8s_master_ip) print("\nThe following Definitions are available for Deployment:") for def_key in horton.defs.keys(): print('\033[1m' + "\n " + def_key + '\033[0m') print(" " + horton.defs[def_key].get('desc')) print("\nTo deploy a CDH cluster, type 'cdh-' followed by the version " "number, e.g. 'cdh-5.12.2'")