Skip to content

Instantly share code, notes, and snippets.

root@zeus:~# nova-manage service list
Binary Host Zone Status State Updated_At
nova-scheduler zeus internal enabled XXX 2013-09-20 14:16:55
nova-conductor zeus internal enabled XXX 2013-09-20 14:16:56
nova-network zeus internal enabled XXX 2013-09-20 14:17:01
nova-compute zeus nova enabled XXX 2013-09-19 20:43:34
nova-consoleauth zeus internal enabled XXX 2013-09-20 14:16:53
nova-cert zeus internal enabled XXX 2013-09-20 14:16:54
nova-compute zeus.americancouncils.org nova enabled :-) 2013-09-20 16:54:16
nova-scheduler zeus.americancouncils.org internal enabled :-) 2013-09-20 16:54:14
@DavidMikeSimon
DavidMikeSimon / foo3 status
Last active December 23, 2015 12:59
OpenStack rpc error
root@zeus:~# nova show foo3
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------+
| Property | Value |
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------+
| status | ERROR |
| updated | 2013-09-20T15:26:07Z |
| OS-EXT-STS:task_state | deleting |
| OS-EXT-SRV-ATTR:host | zeus.americancouncils.org
ave@shelly: ~
$ mkdir foo
dave@shelly: ~
$ cd foo
dave@shelly: ~/foo
$ git init
Initialized empty Git repository in /home/dave/foo/.git/
framework:
#esi: ~
translator: { fallback: en }
secret: %secret%
router:
resource: "%kernel.root_dir%/config/routing.yml"
strict_requirements: %kernel.debug%
form: ~
csrf_protection: ~
validation: { enable_annotations: true }
1. Implement UserInterface to be a shell around the phpbb user system
2. Implement UserProviderInterface to hand back the prior UserInterface implementation
3. Implement AuthenticationSuccessHandlerInterface to set the phpbb session key
4. Implement logout page to unset the phpbb session key
@DavidMikeSimon
DavidMikeSimon / gist:5488593
Created April 30, 2013 13:11
Git info in bash prompt, customized
### http://asemanfar.com/Current-Git-Branch-in-Bash-Prompt
c_red=`tput setaf 1`
c_green=`tput setaf 2`
c_sgr0=`tput sgr0`
parse_git_branch ()
{
if git rev-parse --git-dir >/dev/null 2>&1
then
'use strict';
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet;
var mountFolder = function (connect, dir) {
return connect.static(require('path').resolve(dir));
};
module.exports = function (grunt) {
// load all grunt tasks
require('matchdep').
filterDev('grunt-*').
global
log 127.0.0.1 local0
chroot /home/haproxy
user haproxy
group haproxy
daemon
#debug
#quiet
defaults
- name: install haproxy required packages
apt: pkg=libssl0.9.8
# We can't use the regular Ubuntu packages because they only go up to
# haproxy 1.4, which does not have SSL support
- name: download haproxy deb file
get_url: url=http://debian.byte-consult.be/haproxy_1.5-dev17_amd64.deb
dest=/root/haproxy.deb
- name: install haproxy
- hosts: beatbox.actesting.org
tasks:
- name: sync repository to target system
local_action: command rsync -a -e ssh ${ENV(HOME)}/.ansible-cache-${name}
ubuntu@${inventory_hostname}:/home/ubuntu/ansible-cache-${name}
vars:
name: foo