Skip to content

Commit 8990667

Browse files
author
Gabriel Monroy
committed
add deis-optimized amis to provision-ec2-controller script #21
1 parent a61da77 commit 8990667

1 file changed

Lines changed: 31 additions & 3 deletions

File tree

contrib/provision-ec2-controller.sh

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,36 @@
11
#!/bin/sh
22

3+
if [ -z $1 ]; then
4+
echo usage: $0 [region]
5+
exit 1
6+
fi
7+
8+
region=$1
9+
10+
# see contrib/prepare-ubuntu-ami.sh for instructions
11+
# on creating your own deis-optmized AMIs
12+
if [ "$region" == "ap-northeast-1" ]; then
13+
image=ami-a57aeca4
14+
elif [ "$region" == "ap-southeast-1" ]; then
15+
image=ami-e03a72b2
16+
elif [ "$region" == "ap-southeast-2" ]; then
17+
image=ami-bd801287
18+
elif [ "$region" == "eu-west-1" ]; then
19+
image=ami-d9d3cdad
20+
elif [ "$region" == "sa-east-1" ]; then
21+
image=ami-a7df7bba
22+
elif [ "$region" == "us-east-1" ]; then
23+
image=ami-e85a2081
24+
elif [ "$region" == "us-west-1" ]; then
25+
image=ami-ac6942e9
26+
elif [ "$region" == "us-west-2" ]; then
27+
image=ami-b55ac885
28+
else
29+
echo "Cannot find AMI for region: $region"
30+
exit 1
31+
fi
32+
333
# ec2 settings
4-
region="us-west-2"
5-
image="ami-bf41d28f"
634
flavor="m1.large"
735
ebs_size=100
836
sg_name=deis-controller
@@ -16,7 +44,7 @@ ssh_user="ubuntu"
1644

1745
# chef settings
1846
node_name="deis-controller"
19-
run_list="recipe[deis::default],recipe[deis::gitosis],recipe[deis::build],recipe[deis::postgresql],recipe[deis::server]"
47+
run_list="recipe[deis],recipe[deis::postgresql],recipe[deis::server],recipe[deis::gitosis],recipe[deis::build]"
2048
chef_version=11.4.4
2149

2250
function echo_color {

0 commit comments

Comments
 (0)