This file contains 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
#!/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 |
This file contains 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
#!/bin/bash | |
#------------------------------------------------------------------------------ | |
# SETTINGS | |
#------------------------------------------------------------------------------ | |
MYSQL_ROOT_PASSWORD=password | |
MYSQL_GITORIOUS_PASSWORD=password | |
GITORIOUS_HOST=gitorious | |
SYSADMIN=sysadmin |
This file contains 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
#!/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 |
This file contains 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
#!/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 |
This file contains 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
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]}) |
This file contains 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
destination_nc = None | |
while ( destination_nc not source_nc): | |
destination_nc = random.choice(all_nc) |
This file contains 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 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") |
This file contains 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
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()) |
This file contains 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
#!/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 |
This file contains 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
#!/bin/bash | |
echo "Winning" |
OlderNewer