forked from zalando-stups/taupage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-stups-example.sh
59 lines (46 loc) · 1.39 KB
/
config-stups-example.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# ssh keypair for installation
#TODO generate on the fly and clean up later
keypair="jdoe"
# The created hosts are ephemeral and their keys useless
ssh_args="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
# region
region="eu-west-1"
# base AMI (Ubuntu 14.04 LTS)
base_ami="ami-accff2b1"
instance_type="c3.large"
# test common instance types
testinstance_types="
$instance_type
t2.micro
m4.xlarge
p2.xlarge
"
config_dir=$(dirname $1)
secret_dir="$config_dir/secret"
# uncomment this if you want to use non open-source binary blobs
# proprietary_dir="$config_dir/proprietary"
# AWS accounts to share the AMI with
# first internal for testing
accounts="
123456789
123456788
"
# after successfull tests for all other
all_accounts=$(tool/to/get/all/accounts)
# AWS regions to copy the AMI to
copy_regions="
eu-central-1
"
# security group with SSH and HTTP open
security_group="sg-123456"
# subnet to use:
subnet="subnet-123456"
# HipChat notification when AMI is built
hipchat_notification_enabled=false
hipchat_server_address="hipchat.com" # Put your server address here
hipchat_room_id="notifications" # Room ID (the room name)
hipchat_auth_token="" # Auth token for the HipChat room
hipchat_message="[Taupage] AMI $ami_name ($imageid) successfully created and shared."
# Disable AMI sharing for CD build pipeline or different purposes, default: false
disable_ami_sharing="false"
disable_tests="false"