Skip to content

Instantly share code, notes, and snippets.

View wallnerryan's full-sized avatar

Ryan Wallner wallnerryan

  • Boston, MA
  • 14:30 (UTC -05:00)
View GitHub Profile
@wallnerryan
wallnerryan / inventory2json.py
Created December 11, 2019 17:07 — forked from sivel/inventory2json.py
Ansible inventory to dynamic inventory JSON output, accepts all inventory input formats
import sys
import json
from ansible.parsing.dataloader import DataLoader
try:
from ansible.inventory.manager import InventoryManager
A24 = True
except ImportError:
from ansible.vars import VariableManager
@wallnerryan
wallnerryan / ClusterHQ-FlockerHub-Demo.sh
Last active November 18, 2016 19:06 — forked from pcgeek86/ClusterHQ-FlockerHub-Demo.sh
This Bash script is a simple end-to-end example of ClusterHQ Fli + FlockerHub.
#!/bin/bash
set -e
shopt -s expand_aliases
function Prereq {
### Install the ZFS Utilities for Linux
sudo apt install httpie zfsutils-linux -y
echo "Installed ZFS Linux utilities"
}
[[local|localrc]]
# Credentials
DATABASE_PASSWORD=devstack
ADMIN_PASSWORD=devstack
SERVICE_PASSWORD=devstack
SERVICE_TOKEN=devstack
RABBIT_PASSWORD=devstack
# Services