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
| sources: | |
| - name: meter_source | |
| interval: 600 | |
| meters: | |
| - "!disk.*" | |
| - "*" | |
| sinks: | |
| - meter_sink | |
| - name: cpu_source | |
| interval: 600 |
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
| #!/usr/bin/env python | |
| import os | |
| import sys | |
| import keystoneclient.v2_0.client as ksclient | |
| import neutronclient.v2_0.client as nclient | |
| def usage(): | |
| print "listorphans.py <object> where object is one or more of", | |
| print "'networks', 'routers', 'subnets', 'floatingips' or 'all'" |
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
| # == Class: nova::vncproxy::common | |
| # | |
| # [*vncproxy_host*] | |
| # (optional) The host of the VNC proxy server | |
| # Defaults to false | |
| # | |
| # [*vncproxy_protocol*] | |
| # (optional) The protocol to communicate with the VNC proxy server | |
| # Defaults to 'http' | |
| # |
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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # Ensure everyone is running a consistent vagrant version | |
| Vagrant.require_version '~> 1.7.2' | |
| Vagrant.configure('2') do |config| | |
| config.vm.box = 'puppetlabs/ubuntu-14.04-64-puppet' | |
| config.vm.box_version = '1.0.1' | |
| config.vm.box_check_update = true |
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
| heat_template_version: 2014-10-16 | |
| description: Demo template to deploy a pair of webservers and a loadbalancer | |
| parameters: | |
| key_name: | |
| type: string | |
| description: Name of SSH keypair to be used for compute instance | |
| flavor: | |
| type: string |
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
| heat_template_version: 2014-10-16 | |
| description: Deploy a CoreOS cluster | |
| parameters: | |
| count: | |
| description: Number of CoreOS machines to deploy | |
| type: number | |
| default: 3 | |
| constraints: |
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
| #!/usr/bin/env python | |
| import os | |
| import sys | |
| import keystoneclient.v2_0.client as ksclient | |
| import neutronclient.v2_0.client as nclient | |
| def usage(): | |
| print "listorphans.py <object> where object is one or more of", | |
| print "'networks', 'routers', 'subnets', 'floatingips' or 'all'" |
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
| FROM ubuntu:12.04 | |
| MAINTAINER Nick Jones "nick@dischord.org" | |
| RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" >> /etc/apt/sources.list | |
| RUN apt-get -y update | |
| RUN dpkg-divert --local --rename --add /sbin/initctl | |
| RUN ln -s /bin/true /sbin/initctl | |
| RUN locale-gen en_US en_US.UTF-8 | |
| RUN dpkg-reconfigure locales |
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
| # nick's .bashrc | |
| # nick@dischord.org | |
| # basics | |
| set -o vi | |
| set show-all-if-ambiguous on | |
| shopt -s checkwinsize | |
| PATH=/usr/local/bin:$PATH:~/bin:~/.rvm/bin:/Applications/VMware\ Fusion.app/Contents/Library:/usr/local/sbin:/usr/texbin/ | |
| PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting |
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
| # | |
| # Thanks: | |
| # @gf3 | |
| # @mathiasbynens | |
| # | |
| if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then | |
| export TERM=gnome-256color | |
| elif [[ $TERM != dumb ]] && infocmp xterm-256color >/dev/null 2>&1; then | |
| export TERM=xterm-256color |