-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpacker_ec2_annai.json
60 lines (59 loc) · 1.39 KB
/
packer_ec2_annai.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
{
"variables": {
"aws_access_key": "{{env `AWS_ACCESS_KEY`}}",
"aws_secret_key": "{{env `AWS_SECRET_ACCESS_KEY`}}",
"product_version": "{{env `PRODUCT_VERSION`}}"
},
"builders": [
{
"communicator": "ssh",
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "us-east-1",
"source_ami": "ami-6869aa05",
"instance_type": "c3.2xlarge",
"ssh_username": "ec2-user",
"ssh_timeout": "10m",
"ssh_pty" : true,
"ami_name": "Japanese DKAN {{user `product_version`}} {{timestamp}}"
}
],
"provisioners": [
{
"type": "shell",
"scripts": [
"chef_prepare.sh"
]
},
{
"type": "chef-solo",
"cookbook_paths": [
"cookbooks",
"site-cookbooks"
],
"json" : {
"lw1_dkan" : {
"install" : {
"version" : "7.x-1.10",
"checksum" : "1e25f71aef29c1d778e984b1ebbf1e4b1a1aa30c38dc5d90fc64e9359fd97cbb"
},
"profile" : "dkan_japanese",
"custom_makefile" : "build-dkan_japanese.make"
}
},
"run_list" : [
"lw1_dkan::drush",
"lw1_dkan::pre_packages",
"lw1_dkan::dkan",
"lw1_dkan::setup_tasks"
]
},
{
"type": "shell",
"scripts": [
"cleanup.sh"
]
}
]
}