forked from TEDxOrganizers/IdeasToAction
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Envfile
34 lines (31 loc) · 1.53 KB
/
Envfile
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
#
# Demonstrates an environment on Amazon AWS across multiple regions and availability zones
#
# To launch:
# > AWS_ACCESS_KEY_ID=<your key> AWS_SECRET_ACCESS_KEY=<your secret> politburo -e Amazon.envfile.rb Amazon#ready
#
# To terminate:
# > AWS_ACCESS_KEY_ID=<your key> AWS_SECRET_ACCESS_KEY=<your secret> politburo -e Amazon.envfile.rb Amazon#terminate
#
#
environment(name: 'CI-Actionman', description: "Actionman development environment",
region: 'ap-southeast-2',
provider: :aws,
provider_config: { aws_access_key_id: ENV['AWS_ACCESS_KEY_ID'], aws_secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'] } ) do
key_pair(name: "Default Key Pair for #{region}", cloud_counterpart_name: 'actionman') { }
facet(name: "CI") do
node(name: "Jenkins", user: 'ubuntu') {
state(:configured) {
# remote_task(name: 'updated apt-get', command: 'sudo apt-get -q -y update', met_test_command: 'sudo apt-cache showpkg git | grep Versions:') {}
# remote_task(name: 'install git', command: 'sudo apt-get -q -y install git', met_test_command: 'which git') {
# depends_on remote_task('updated apt-get')
# }
# remote_task(name: 'install jenkins', command: 'sudo apt-get -q -y install jenkins', met_test_command: '[ -d "/var/lib/jenkins" ]') {
# depends_on remote_task('updated apt-get')
# }
remote_task(name: 'install babushka', command: 'sudo sh -c "`curl https://babushka.me/up`"', met_test_command: 'which babushka') { }
babushka_task(dep: 'DiUS:ci') {}
}
}
end
end