-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx64.json
60 lines (60 loc) · 1.47 KB
/
nginx64.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": {
"name": "krastin/nginx64",
"build_name": "nginx64",
"build_cpu_cores": "2",
"build_memory": "1024",
"cpu_cores": "1",
"memory": "512",
"disk_size": "40960",
"headless": "false",
"iso_checksum": "737ae7041212c628de5751d15c3016058b0e833fdc32e7420209b76ca3d0a535",
"iso_checksum_type": "sha256",
"iso_url": "http://releases.ubuntu.com/16.04.2/ubuntu-16.04.2-server-amd64.iso",
"ssh_username": "vagrant",
"ssh_password": "vagrant"
},
"push": {
"name": "{{user `name`}}",
"exclude": [
".git",
"packer_cache",
"output*-vbox",
"output*-vmware",
"*.box"
]
},
"builders": [
{
"type": "amazon-ebs",
"region": "us-east-1",
"source_ami": "ami-07b4156579ea1d7ba",
"instance_type": "t2.micro",
"ssh_username": "ubuntu",
"ami_name": "nginx64_packer_example_{{timestamp}}",
"tags": {
"OS Version": "Ubuntu",
"Release": "Latest"
}
}
],
"provisioners": [
{
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"script": "scripts/provision.sh",
"type": "shell"
}
],
"post-processors": [
[
{
"type": "amazon-import",
"ami_name": "import_test",
"region": "{{ user `target_region` }}",
"s3_bucket_name": "{{ user `s3_artifact_bucket` }}",
"role_name": "{{ user `aws_vmimport_role` }}"
},
{ "type":"manifest" }
]
]
}