Skip to content

Instantly share code, notes, and snippets.

View dkavanagh's full-sized avatar

David Kavanagh dkavanagh

View GitHub Profile
@dkavanagh
dkavanagh / cloud-config-eucaconsole.txt
Created April 30, 2014 13:57
This script installs the eucalyptus management console on a centos instance. Edit the IP on line 10 to refer to the proper eucalyptus back end.
#cloud-config
# vim: syntax=yaml
#
# This config installs the eucalyptus and epel repos, then installs and
# configures the eucaconsole package
runcmd:
- [ yum, -y, install, "http://downloads.eucalyptus.com/software/eucalyptus/nightly/4.0/centos/6/x86_64/eucalyptus-release-4.0-0.1.el6.noarch.rpm" ]
- [ yum, -y, install, eucaconsole ]
- [ sed, -i, "s/localhost/10.111.5.78/", /etc/eucaconsole/console.ini ]
@dkavanagh
dkavanagh / cloud-config-eucaconsole.txt
Created June 11, 2014 18:08
Cloud Init script for the Eucalyptus Management console
#cloud-config
# vim: syntax=yaml
#
# This config installs the eucalyptus and epel repos, then installs and
# configures the eucaconsole package
runcmd:
- [ yum, -y, install, "http://downloads.eucalyptus.com/software/eucalyptus/nightly/4.0/centos/6/x86_64/eucalyptus-release-4.0-0.1.el6.noarch.rpm" ]
- [ yum, -y, install, eucaconsole ]
- [ sed, -i, "s/localhost/10.111.5.78/", /etc/eucaconsole/console.ini ]
@dkavanagh
dkavanagh / foundation.abide.js.patch
Created July 15, 2014 12:54
foundation abide patch to allow skipping validation for a form cancel button
index 9898eac..44eab0e 100644
--- a/eucaconsole/static/js/thirdparty/foundation/foundation.abide.js
+++ b/eucaconsole/static/js/thirdparty/foundation/foundation.abide.js
@@ -53,7 +53,8 @@
events : function (scope) {
var self = this,
form = $(scope).attr('novalidate', 'novalidate'),
- settings = form.data('abide-init');
+ settings = form.data('abide-init'),
+ cancel_target = form.attr('cancel-target');
@dkavanagh
dkavanagh / confg_cloud_volumes.sh
Created August 28, 2014 17:03
adjust cloud properties for larger volumes
yum install -y http://downloads.eucalyptus.com/software/eucalyptus/nightly/4.0/centos/6/x86_64/eucalyptus-4.0.0-0.0.1051.el6.x86_64.rpm
yum install -y http://downloads.eucalyptus.com/software/eucalyptus/nightly/4.0/centos/6/x86_64/eucalyptus-admin-tools-4.0.0-0.0.1051.el6.noarch.rpm
source eucarc
euca-modify-property -p PARTI00.storage.maxvolumesizeingb=25
euca-modify-property -p PARTI01.storage.maxvolumesizeingb=25
euca-modify-property -p PARTI00.storage.maxtotalvolumesizeingb=250
euca-modify-property -p PARTI01.storage.maxtotalvolumesizeingb=250
@dkavanagh
dkavanagh / get_cloud_ssl_cert.sh
Created September 10, 2015 16:27
extract eucalyptus default ssl cloud cert
keytool -exportcert -alias eucalyptus -file cloud-ssl.crt -keystore /var/lib/eucalyptus/keys/euca.p12 -storepass eucalyptus -storetype pkcs12 -rfc
@dkavanagh
dkavanagh / cloud-init-reqgen.txt
Created September 16, 2015 16:56
cloud init script for setting up a request generator against eucaconsole. Note: modify the endpoint on line 13
#cloud-config
# vim: syntax=yaml
#
# This config installs the eucalyptus and epel repos, then installs and
# configures the eucaconsole package
runcmd:
- [ yum, -y, install, wget, python-pip ]
- [ pip, install, requests, cachecontrol, beautifulsoup4 ]
- [ pip, install, --upgrade, urllib3, requests ]
@dkavanagh
dkavanagh / update_catalog.py
Created September 17, 2012 17:51
Tool for updating eustore catalog based on signature calculated from tarballs
#!/usr/bin/env python
import os
import sys
import urllib2
import json
import hashlib
import zlib
from optparse import OptionParser
@dkavanagh
dkavanagh / reqgen-scale.cfn
Created November 13, 2015 21:45
Setup request generator for eucaconsole for scale testing. Each instance in scaling group generates 100 users sessions.
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "Deploy request generator for console with Autoscaling.",
"Parameters" : {
"ImageId" : {
"Description" : "The ID of the image to use for the console",
"Type" : "String",
"ConstraintDescription" : "Must be the ID of a CentOS 7 image on the cloud."
@dkavanagh
dkavanagh / switchbranch.sh
Created February 5, 2013 20:48
This script is called by passing in a new branch name. It is used by eucalyptus where we have sub-modules that require updating as well as the top level refs. Errors will cause things to stop (like changes not checked in).
git submodule foreach git checkout $1
git submodule foreach git pull origin $1
git checkout $1
git pull origin $1
@dkavanagh
dkavanagh / shareimages.sh
Created May 22, 2013 13:03
make all images public (ec2, eucalyptus)
for i in `euca-describe-images | awk '{ print $2; }'`
do
echo $i
euca-modify-image-attribute -l -a all $i
done