-
Notifications
You must be signed in to change notification settings - Fork 0
/
bamboo_elastic.json
87 lines (85 loc) · 2.12 KB
/
bamboo_elastic.json
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"variables": {
"aws_access_key": "",
"aws_secret_key": "",
"aws_region": "us-east-1",
"aws_ami": "ami-e894719f"
},
"builders": [
{
"name": "aws",
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "{{user `aws_region`}}",
"source_ami": "{{user `aws_ami`}}",
"instance_type": "t1.micro",
"ssh_username": "ubuntu",
"ami_name": "Bamboo Elastic Image {{timestamp}}"
}
],
"provisioners": [
{
"type": "shell",
"scripts": [
"scripts/update.sh",
"scripts/bamboo_agent.sh"
],
"execute_command": "{{ .Vars }} sudo -E sh '{{ .Path }}'"
},
{
"type": "chef-solo",
"install_command": "curl -L https://www.opscode.com/chef/install.sh | {{if .Sudo}}sudo{{end}} bash -s -- -v 10.28.0",
"cookbook_paths": ["cookbooks", "site-cookbooks"],
"run_list": [
"git",
"java",
"maven",
"nodejs",
"grunt",
"bower"
],
"json": {
"java": {
"install_flavor": "openjdk",
"jdk_version": "7",
"arch": "x86_64",
"oracle": { "accept_oracle_download_terms": true}
},
"maven": {
"m2_home": "/opt/maven-3.0",
"repository_root": "~/.m2/repository"
},
"nodejs": {
"install_method": "binary",
"version": "0.10.18",
"dir": "/opt/node-0.10",
"check_sha": false
}
}
},
// Copy some config files to the server's /tmp
{
"type": "file",
"source": "files/maven/settings.xml",
"destination": "/tmp/settings.xml"
},
{
"type": "file",
"source": "files/ssh/id_rsa",
"destination": "/tmp/id_rsa"
},
{
"type": "file",
"source": "files/ssh/id_rsa.pub",
"destination": "/tmp/id_rsa.pub"
},
{
"type": "shell",
"scripts": [
"scripts/setup_files.sh"
],
"execute_command": "{{ .Vars }} sudo -E sh '{{ .Path }}'"
}
]
}