Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris digitalformula

View GitHub Profile
@digitalformula
digitalformula / cluster.json
Created Aug 2, 2017
Output from Nutanix CE 2017.05.22 - "cluster" object via API 2.0
View cluster.json
{
"id": "000552d3-5320-5e42-1830-d8cb8ac3e5bf::1743131424510436799",
"uuid": "000552d3-5320-5e42-1830-d8cb8ac3e5bf",
"cluster_incarnation_id": 1498442469760578,
"cluster_uuid": "000552d3-5320-5e42-1830-d8cb8ac3e5bf",
"name": "CE-Lab",
"cluster_external_ipaddress": null,
"cluster_external_data_services_ipaddress": null,
"timezone": "Australia/Melbourne",
"support_verbosity_type": "BASIC_COREDUMP",
@digitalformula
digitalformula / salt-nginx-webserver.sh
Created Apr 25, 2017
SaltStack & Nginx Webserver Bootstrap
View salt-nginx-webserver.sh
#!/bin/bash
# download and run the SaltStack bootstrap installer
curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
sh bootstrap-salt.sh git develop
# stop the salt-minion service in preparation for reconfiguration
systemctl stop salt-minion
# create the required directory for Salt state files to live
@digitalformula
digitalformula / nutanix-cluster-info.py
Created Feb 15, 2016
nutanix-cluster-info.py - Updated variable substitution section for @MillenniaTom
View nutanix-cluster-info.py
# substitute the template variables for actual cluster data
template = source_html.safe_substitute(
day=day,
now=time,
name=name,
username=getpass.getuser(),
cluster_name=str(cluster_in["name"]),
cluster_ip=str(cluster_in["clusterExternalIPAddress"]) if cluster_in["clusterExternalIPAddress"] else "Not set",
nodes=str(cluster_in["numNodes"]),
nos=str(cluster_in["version"]),