This file contains hidden or 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 | |
# | |
# Test for a reboot, if this is a reboot just skip this script. | |
# | |
if test "$RS_REBOOT" = "true" -o "$RS_ALREADY_RUN" = "true" ; then | |
logger -t RightScale "AWS::S3 install, skipped on a reboot." | |
exit 0 | |
fi |
This file contains hidden or 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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'aws/s3' | |
local_file = ARGV[0] | |
bucket = ARGV[1] | |
mime_type = ARGV[2] || "application/octet-stream" | |
AWS::S3::Base.establish_connection!( |
This file contains hidden or 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 -ex | |
# | |
if test "$RS_REBOOT" = "true" -o "$RS_ALREADY_RUN" = "true" ; then | |
logger -t RightScale "ssmtp Install, skipped on a reboot." | |
exit 0 | |
fi | |
#Create backup of conf file | |
ssmtp_file=/etc/ssmtp/ssmtp.conf |
This file contains hidden or 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 -x | |
# | |
# Linux detection | |
# | |
if [ -e /usr/bin/lsb_release ]; then | |
case `lsb_release -si` in | |
Ubuntu*) export RS_DISTRO=ubuntu | |
export RS_BASE_OS=debian |
This file contains hidden or 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 -e | |
# | |
# | |
# Test for a reboot, if this is a reboot just skip this script. | |
# | |
if test "$RS_REBOOT" = "true" -o "$RS_ALREADY_RUN" = "true" ; then | |
logger -t RightScale "WEB Apache ocs vhost, skipped on a reboot." | |
exit 0 | |
fi |
This file contains hidden or 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 -e | |
# Package requirements: archiva | |
#Archiva home directory: Recommended directory is "/mnt/storage1/" | |
if test "$RS_REBOOT" = "true" -o "$RS_ALREADY_RUN" = "true" ; then | |
logger -t RightScale "Archiva Install, skipped on a reboot." | |
exit 0 | |
fi |
This file contains hidden or 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/env ruby | |
require 'rubygems' | |
require 'aws/s3' | |
# Create a tar file with the wiki data files. | |
wiki_data = '/mnt/ephemeral' | |
target_dirs = ['mediawiki','log','www'] | |
tar_dirs = '' | |
target_dirs.each do |dir| |
This file contains hidden or 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 -e | |
# | |
# Test for a reboot, if this is a reboot just skip this script. | |
# | |
if test "$RS_REBOOT" = "true" ; then | |
logger -t RightScale "New Relic PHP Agent install, skipped on a reboot."; | |
exit 0; | |
fi |
This file contains hidden or 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
#! /usr/bin/ruby | |
require 'rubygems' | |
require 'aws-sdk' | |
r53 = AWS::Route53.new( | |
:access_key_id => ENV['AWS_ACCESS_KEY_ID'], | |
:secret_access_key => ENV['AWS_SECRET_ACCESS_KEY']) | |
response = r53.client.list_resource_record_sets( |
This file contains hidden or 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 -e | |
# Package requirements: jenkins | |
# Test for a reboot, if this is a reboot just skip this script. | |
# | |
if test "$RS_REBOOT" = "true" -o "$RS_ALREADY_RUN" = "true" ; then | |
logger -t RightScale "Jenkins Install, skipped on a reboot." | |
exit 0 | |
fi |
OlderNewer