Skip to content

Instantly share code, notes, and snippets.

View viglesiasce's full-sized avatar

Vic Iglesias viglesiasce

View GitHub Profile
@viglesiasce
viglesiasce / bash
Created July 25, 2012 01:44 — forked from haf/bash
Installing graphite Ubuntu 11.10
#!/bin/bash
####################################
# BASIC REQUIREMENTS
# http://graphite.wikidot.com/installation
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
# Last tested & updated 7/24/2012
####################################
cd /opt
wget http://launchpad.net/graphite/0.9/0.9.9/+download/graphite-web-0.9.9.tar.gz
@viglesiasce
viglesiasce / install.sh
Created November 25, 2012 23:39 — forked from padcom/install.sh
Gitorious installation on Ubuntu 12.04
#!/bin/bash
#------------------------------------------------------------------------------
# SETTINGS
#------------------------------------------------------------------------------
MYSQL_ROOT_PASSWORD=password
MYSQL_GITORIOUS_PASSWORD=password
GITORIOUS_HOST=gitorious
SYSADMIN=sysadmin
@viglesiasce
viglesiasce / install_scalr.sh
Last active December 11, 2015 01:59
Install Scalr on Ubuntu 12.04 Precise Pangolin
#!/bin/bash
export PASSWORD=yourpassword
export HOSTNAME='scalr'
export DOMAIN='.local'
export SCALR_BASE=/usr/local/scalr
export SCALR_HOME=$SCALR_BASE/scalr-home
export SCALR_FILES=$SCALR_BASE/scalr-files
export CURRENT=$SCALR_BASE/current
@viglesiasce
viglesiasce / gist:4584074
Created January 21, 2013 06:52
install_graphite.sh
#!/bin/bash
####################################
# BASIC REQUIREMENTS
# http://graphite.wikidot.com/installation
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
# Last tested & updated 10/13/2011
####################################
cd /opt
wget http://launchpad.net/graphite/0.9/0.9.9/+download/graphite-web-0.9.9.tar.gz
for line in output[2:]:
line = line.strip()
if line == "":
continue
domain_line = line.split()
for key in keys:
instance_list.append({keys[0]:domain_line[0], keys[1]:domain_line[1], keys[2]:domain_line[2]})
destination_nc = None
while ( destination_nc not source_nc):
destination_nc = random.choice(all_nc)
from eucaops import Eucaops
tester = Eucaops(config_file="<config-with-ips-from-qa>",password="foobar", boto_debug=2)
tester.modify_property("my.property", "new value")
clcs = tester.get_component_machines("clc")
for clc in clcs:
dns_names = ['eucalyptus.my-domain.org', 'walrus.my-domain.org']
for name in dns_names:
clc.sys("nslookup " + address + " 127.0.0.1")
if re.search("^3.2", self.old_version):
if hasattr(self.args, 'ebs_storage_manager'):
if re.search("SANManager" ,self.args.ebs_storage_manager):
if re.search("clc", " ".join(machine.components)):
if hasattr(self.args, 'san_provider'):
if re.search("NetappProvider", self.args.san_provider):
for zone in self.tester.get_zones():
machine.sys("source " + self.tester.credpath + "/eucarc && " +
self.tester.eucapath + "/usr/sbin/euca-modify-property -p " +
zone + ".storage.chapuser=" + self.tester.id_generator())
@viglesiasce
viglesiasce / gist:5847752
Last active January 10, 2018 21:08
Micro QA user data
#!/bin/bash
yum install -y python-devel python-setuptools gcc make python-virtualenv java-1.6.0-openjdk.x86_64 git ntp wget unzip
wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
yum install -y jenkins
chkconfig jenkins on
chkconfig ntpd on
#!/bin/bash
echo "Winning"