Skip to content

Instantly share code, notes, and snippets.

View wallnerryan's full-sized avatar

Ryan Wallner wallnerryan

  • Boston, MA
  • 02:44 (UTC -04:00)
View GitHub Profile

Getting Started

  • **Vagrant should be great than 1.6.2
Create a working dir
mkdir flocker-tutorial
cd flocker-tutorial

From a brand new Flocker cluster install via uft: 2 Agent + 1 Master

For more inforamation on installing flocker on aws easily, please see (http://doc-dev.clusterhq.com/labs/installer.html#labs-installer)

You will end up with a way to list your nodes.

wallnerryan@mac:-> uft-flocker-volumes list-nodes
SERVER     ADDRESS      
2cdbc6d7 
@wallnerryan
wallnerryan / profiles.md
Last active September 30, 2015 14:08
hackday profiles scaleio docs

Docs

First Step

git clone https://github.com/wallnerryan/profiles-poc
cd profiles-poc

ScaleIO

#!/bin/bash
while [[ $# > 1 ]]
do
key="$1"
case $key in
-o|--os)
OS="$2"
shift
;;
# Created by Jonas Rosland, @virtualswede & Matt Cowger, @mcowger
# Many thanks to this post by James Carr: http://blog.james-carr.org/2013/03/17/dynamic-vagrant-nodes/
#vagrantbox="centos_7"
vagrantbox="puppetlabs/centos-7.0-64-nocm"
# vagrant box url
vagrantboxurl="puppetlabs/centos-7.0-64-nocm"
# scaleio admin password
@wallnerryan
wallnerryan / ctddemoswarmmachine.md
Last active August 29, 2015 14:27
Walkthrough of machine swarm on virtualbox on Mac
Testing Xings scripts on Hypriot
HypriotOS: root@black-pearl in ~/pitest on master
$ python discover_register_devices.py 
Device: C8:1E:E7:7C:7F:41 -> Wally's iPhone
[{'name': "Wally's iPhone", 'address': 'C8:1E:E7:7C:7F:41'}]
HypriotOS: root@black-pearl in ~/pitest on master
$ python find_discovered_devices.py 
[{'name': "Wally's iPhone", 'address': 'C8:1E:E7:7C:7F:41'}]
@wallnerryan
wallnerryan / pihack-with-mounts.sh
Last active August 29, 2015 14:25
LXC on Pi with mounts for data
(Check Kernel)
--------------
CONFIG=/home/pi/linux/.config lxc-checkconfig
--- Namespaces ---
Namespaces: enabled
Utsname namespace: enabled
Ipc namespace: required
Pid namespace: enabled
User namespace: enabled
--- a/VagrantSpicedir/spice-conf/provider_config.rb
+++ b/VagrantSpicedir/spice-conf/provider_config.rb
@@ -1617,7 +1617,7 @@ EOF
",
:box => 'dummy',
:defaults => {
- :common_location_name => 'us_west',
+ :common_location_name => 'us_west_2a',
:common_image_name => 'CentOS-6.5-x64',
:common_instance_type => 'small',
@wallnerryan
wallnerryan / commands.md
Last active August 29, 2015 14:23
demo commands

make sure dataset agents are running on all nodes

sudo systemctl restart flocker-dataset-agent

Start showing the env.

Show flocker configured with scaleio

sudo vi /etc/flocker/agent.yml