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
#!/usr/bin/env python | |
""" | |
Required: | |
boto | |
IAM account credentials with EC2 instances describe,start,stop privileges | |
""" | |
import boto.ec2 | |
import sys |
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
Required: | |
An instance accessible with an EIP from each VPC network | |
Unique and non-overlapping CIDR ranges | |
Security Group allowing each others EIP (udp: 500,4500 and icmp: echo reply) | |
Disable Source/Dest Check on each Openswan AWS instance | |
Configure Routing Tables on each VPC (add tables with associated subnets) | |
Remote Network A: 10.11.0.0/16 -> openswan instance id | |
Remote Network B: 10.10.0.0/16 -> openswan instance id |
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 | |
MongoInstPath=/usr/local/mongodb | |
localbin=/usr/local/bin | |
USAGE="$(basename $0) [ remove | help ]" | |
HELP=" remove : uninstall the MongoDB symlinks in $localbin \n | |
help : this message" | |
MongoFiles="bsondump |
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
#!/usr/bin/env python | |
__author__ = 'Eric Sales' | |
INFO=""" | |
modconfig | |
Modify a setting in a config or property file. | |
It will overwrite the existing assignment or make an | |
addition if the variable isn't found.""" | |
USAGE=""" |
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 | |
## Timer Function - displays the timed duration between start and stop ## | |
# example: | |
# Timer start | |
# Script_Cmds | |
# Timer stop | |
Timer() { | |
## Set a timer to display duration ## |
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 | |
## LockFile function ## | |
# example: | |
# main() { | |
# LockFile create | |
# RunScriptStuff | |
# LockFile remove | |
# } | |
#Globals |
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 | |
# Modified to check if the already exists | |
# processname: ec2-get-ssh | |
# description: Capture AWS public key credentials for EC2 user | |
# Source function library | |
. /etc/rc.d/init.d/functions | |
# Source networking configuration | |
[ -r /etc/sysconfig/network ] && . /etc/sysconfig/network |