Skip to content

Instantly share code, notes, and snippets.

View tomellis's full-sized avatar

Tom Ellis tomellis

View GitHub Profile
@tomellis
tomellis / CCclient_full_prep.sh
Created November 8, 2012 00:51
Centos6 CCclient_full query
#!/bin/bash
# Prep el6 for CCclientfull
LIBS=/usr/lib64/
CRYPTOLIB_REQ="libcrypto.so.0.9.8"
CRYPTOLIB_EL6="libcrypto.so.1.0.0"
CURLLIB_REQ="libcurl-gnutls.so.4"
CURLLIB_EL6="libcurl.so.4.1.1"
if [ ! -f ${LIBS}/${CRYPTOLIB_REQ} -o ! -h ${LIBS}/${CRYPTOLIB_REQ} -a -f ${LIBS}/${CRYPTOLIB_EL6} ]; then
@tomellis
tomellis / start-instance-form.php
Created October 24, 2012 13:35
Simple AWS PHP SDK example for Eucalyptus
<?php
// Source AWS PHP SDK functions
require_once '../sdk.class.php';
// Instantiate the AmazonEC2 class
$options = array(
'key' => 'ENTER-YOUR-ACCESS-KEY-HERE',
'secret' => 'ENTER-YOUR-SECRET-KEY-HERE',
);
[root@test ~]# euca-describe-services -E -A
SERVICE eucalyptus eucalyptus x.x.x.x ENABLED 1006 http://x.x.x.x:8773/services/Eucalyptus arn:euca:eucalyptus:::x.x.x.x/
SERVICE eucalyptus eucalyptus x.x.x.5 DISABLED 1006 http://x.x.x.5:8773/services/Eucalyptus arn:euca:eucalyptus:::x.x.x.5/
SERVICE reporting bootstrap x.x.x.x ENABLED 1006 http://x.x.x.x:8773/services/Reporting arn:euca:bootstrap::reporting:x.x.x.x/
SERVICE configuration eucalyptus x.x.x.x ENABLED 1006 http://x.x.x.x:8773/services/Configuration arn:euca:eucalyptus::configuration:x.x.x.x/
SERVICE ldap eucalyptus x.x.x.x ENABLED 1006 http://x.x.x.x:8773/services/Ldap arn:euca:eucalyptus::ldap:x.x.x.x/
SERVICE db eucalyptus x.x.x.x ENABLED 1006 postgresql://x.x.x.x:8777/eucalyptus?ssl=true&sslfactory=com.eucalyptus.postgresql.PostgreSQLSSLSocketFactory arn:euca:eucalyptus::
@tomellis
tomellis / walrus-boto-example.py
Created August 15, 2012 12:31
Walrus Boto Example
#!/usr/bin/python
# Simple example to list all s3 buckets in Walrus
# Author: tom.ellis@eucalyptus.com
import boto
from boto.s3.connection import OrdinaryCallingFormat
# Credentials
access_key=""
@tomellis
tomellis / euca-boto-example.py
Created August 15, 2012 12:30
Eucalyptus Boto Example
#!/usr/bin/python
# Simple example to list all images in Eucalyptus via ec2-api
# Author: tom.ellis@eucalyptus.com
import boto
from boto.ec2.regioninfo import RegionInfo
# Credentials
access_key=""