Skip to content

Commit

Permalink
use export everywhere so cap can access the exported variables
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser committed Aug 24, 2011
1 parent 007afd5 commit 5cd6a81
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 20 deletions.
6 changes: 5 additions & 1 deletion Readme.md
Expand Up @@ -68,9 +68,13 @@ Usage

elb-delete-lb $LB_NAME --force --region $REGION

### Connect to all instances

source config/FOLDER/settings.sh && cap shell

TODO
====
- make download_tools script always fetch the newest version (not hardcoded)
- make download_tools script always fetch the newest version (no hardcoded versions)
- modify PATH only once

Author
Expand Down
10 changes: 5 additions & 5 deletions config/defaults.sh
Expand Up @@ -24,10 +24,10 @@ fi
export AWS_CREDENTIAL_FILE="$BASE_DIR/credentials"

# temporarily add each bin folders to PATH
PATH="$EC2_HOME/bin:$AWS_AUTO_SCALING_HOME/bin:$AWS_CLOUDWATCH_HOME/bin:$AWS_ELB_HOME/bin:$PATH" # TODO only do this once...
export PATH="$EC2_HOME/bin:$AWS_AUTO_SCALING_HOME/bin:$AWS_CLOUDWATCH_HOME/bin:$AWS_ELB_HOME/bin:$PATH" # TODO only do this once...

# Some sane defaults
SECURITY_GROUP="default"
LB_INSTANCE_PORT=80
MIN_INSTANCES=1
SCALE_UP_ADJUSTMENT=1
export SECURITY_GROUP="default"
export LB_INSTANCE_PORT=80
export MIN_INSTANCES=1
export SCALE_UP_ADJUSTMENT=1
28 changes: 14 additions & 14 deletions config/example/settings.sh
Expand Up @@ -3,23 +3,23 @@ source config/defaults.sh $(dirname $BASH_SOURCE)
# Enter your AMI ID here
# this is Ubuntu 10.04 with EBS on eu-west
# e.g. http://uec-images.ubuntu.com/releases/10.04/release/
LC_IMAGE_ID="ami-5c417128"
export LC_IMAGE_ID="ami-5c417128"

INSTANCE_SIZE="t1.micro" # Instance Type (micro, small, Large, ...)
export INSTANCE_SIZE="t1.micro" # Instance Type (micro, small, Large, ...)

ZONE="eu-west-1a" # Availability Zone
REGION="eu-west-1"
SECURITY_GROUP="default"
KEY_PAIR="my-autoscaling"
export ZONE="eu-west-1a" # Availability Zone
export REGION="eu-west-1"
export SECURITY_GROUP="default"
export KEY_PAIR="my-autoscaling"

LB_NAME="my-autoscaling"
LC_NAME="my-autoscaling-lc"
SG_NAME="my-autoscaling-sg"
export LB_NAME="my-autoscaling"
export LC_NAME="my-autoscaling-lc"
export SG_NAME="my-autoscaling-sg"

LB_INSTANCE_PORT=80
export LB_INSTANCE_PORT=80

# scale policy
LB_INSTANCE_PORT=80
MIN_INSTANCES=1
MAX_INSTANCES=5
SCALE_UP_ADJUSTMENT=1
export LB_INSTANCE_PORT=80
export MIN_INSTANCES=1
export MAX_INSTANCES=5
export SCALE_UP_ADJUSTMENT=1

0 comments on commit 5cd6a81

Please sign in to comment.