This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MacBook-Air-de-Diego:bosh-bootstrap diego$ ruby -v | |
ruby 2.0.0p451 (2014-02-24 revision 45167) [universal.x86_64-darwin13] | |
MacBook-Air-de-Diego:bosh-bootstrap diego$ gem list bosh | |
*** LOCAL GEMS *** | |
bosh-director-core (1.2685.0, 1.2681.0, 1.2671.0) | |
bosh-registry (1.2685.0, 1.2681.0, 1.2671.0) | |
bosh-stemcell (1.2685.0, 1.2681.0, 1.2671.0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MacBook-Air-de-Diego:bosh-bootstrap diego$ ./bin/bosh-bootstrap deploy | |
Using provider OpenStack | |
Confirming: Using OpenStack (user: XXXXXXXX) | |
Confirming: Using address 10.0.61.66 | |
Reusing security group ssh | |
-> no additional ports opened |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MacBook-Air-de-Diego:bosh-bootstrap diego$ ./bin/bosh-bootstrap deploy | |
1. AWS | |
2. OpenStack | |
3. vSphere | |
Choose your infrastructure: 2 | |
Using provider OpenStack | |
Username: XXXXXXXXXXX | |
Password: XXXXXXXXXXX | |
Tenant: XXXXXXXXX |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Migrate a VM to another StackOps Cloud | |
# This is the kind of rubbish written by a CEO. Don't be cruel | |
# ENTER THE USERNAME, PASSWORD AND TENANT OF THE SOURCE AND DESTINATION TENANTS | |
# ALSO CHECK THE KEYSTONE ENDPOINT | |
# | |
#!/usr/bin/env bash | |
#set -x | |
SOURCE_KEYSTONE_HOST=<<CHANGE_ME>> | |
SOURCE_OS_USERNAME=<<CHANGE_ME>> | |
SOURCE_OS_PASSWORD=<<CHANGE_ME>> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import uuid | |
import jwt | |
import requests | |
import re | |
# config | |
SHARED = 'YOUR SHARED KEY' | |
SUB = 'YOURSUBDOMAIN' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cat /cgroup/blkio/libvirt/qemu/blkio.throttle.read_bps_device | |
cat /cgroup/blkio/libvirt/qemu/blkio.throttle.write_bps_device | |
cat /cgroup/blkio/libvirt/qemu/*/blkio.throttle.read_bps_device | |
cat /cgroup/blkio/libvirt/qemu/*/blkio.throttle.write_bps_device | |
# 10MBps | |
#BPSLIMIT=10485760 |
NewerOlder