-
Notifications
You must be signed in to change notification settings - Fork 8
/
template.json
44 lines (44 loc) · 1.05 KB
/
template.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
{
"variables": {
"deckbrew_database_user": "{{env `DATABASE_USER`}}",
"deckbrew_database_password": "{{env `DATABASE_PASSWORD`}}"
},
"builders": [
{
"type": "amazon-ebs",
"region": "us-west-1",
"source_ami": "ami-c45f6281",
"instance_type": "t1.micro",
"ssh_username": "ubuntu",
"ami_name": "Deckbrew API {{isotime | clean_ami_name}}"
}
],
"provisioners": [
{
"type": "shell",
"execute_command": "{{ .Vars }} sudo sh '{{ .Path }}'",
"inline": [
"mkdir -p /usr/local/deckbrew",
"chmod -R 777 /usr/local/deckbrew"
]
},
{
"type": "file",
"source": "deckbrew/",
"destination": "/usr/local/deckbrew"
},
{
"type": "chef-solo",
"cookbook_paths": ["cookbooks"],
"json": {
"deckbrew": {
"database": {
"user": "{{user `deckbrew_database_user`}}",
"password": "{{user `deckbrew_database_password`}}"
}
}
},
"run_list": ["deckbrew::database"]
}
]
}