forked from gwagner/packer-centos
-
Notifications
You must be signed in to change notification settings - Fork 12
/
centos-i386.json
142 lines (141 loc) · 3.73 KB
/
centos-i386.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{
"builders": [
{
"type": "virtualbox-iso",
"boot_command": [
"<esc>",
"<wait>linux ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/anaconda-ks.i386.cfg<enter>"
],
"boot_wait": "5s",
"disk_size": 40000,
"guest_os_type": "RedHat",
"headless": true,
"http_directory": "./http_directory",
"iso_checksum": "ec1f887d9097ac704bb8d5624cda13af",
"iso_checksum_type": "md5",
"iso_urls": [
"http://centos.mirror.nucleus.be/6.7/isos/i386/CentOS-6.7-i386-netinstall.iso",
"http://mirror.ubiquityservers.com/centos/6.7/isos/i386/CentOS-6.7-i386-netinstall.iso",
"http://mirrors.arsc.edu/centos/6.7/isos/i386/CentOS-6.7-i386-netinstall.iso"
],
"output_directory": "/tmp/packer-virtualbox",
"shutdown_command": "shutdown -P now",
"ssh_password": "vagrant",
"ssh_username": "root",
"ssh_timeout": "20m",
"guest_additions_sha256": "c76dd5ec86f61ad72263ab6d2405723b06badfc2fae57f83ffa5de96f553400d"
},
{
"type": "vmware-iso",
"boot_command": [
"<esc>",
"<wait>linux ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/anaconda-ks.i386.cfg<enter>"
],
"boot_wait": "5s",
"disk_size": 40000,
"guest_os_type": "linux",
"headless": true,
"http_directory": "./http_directory",
"iso_checksum": "ec1f887d9097ac704bb8d5624cda13af",
"iso_checksum_type": "md5",
"iso_urls": [
"http://centos.mirror.nucleus.be/6.7/isos/i386/CentOS-6.7-i386-netinstall.iso",
"http://mirror.ubiquityservers.com/centos/6.7/isos/i386/CentOS-6.7-i386-netinstall.iso",
"http://mirrors.arsc.edu/centos/6.7/isos/i386/CentOS-6.7-i386-netinstall.iso"
],
"output_directory": "/tmp/packer",
"shutdown_command": "shutdown -P now",
"ssh_password": "vagrant",
"ssh_username": "root",
"ssh_timeout": "20m",
"tools_upload_flavor": "linux"
},
{
"type": "amazon-ebs",
"ami_name": "centos-6_7-32_percona {{timestamp}}",
"ami_regions": [
"us-west-1",
"eu-west-1"
],
"instance_type": "t1.micro",
"region": "us-east-1",
"source_ami": "ami-e786ea82",
"security_group_id": "sg-29d99144",
"associate_public_ip_address": "true",
"ssh_timeout": "10m",
"ssh_pty": "true",
"ssh_username": "root",
"ami_groups": [ "all" ],
"ami_block_device_mappings": [
{
"device_name": "/dev/sda1",
"delete_on_termination": true
}
]
}
],
"provisioners": [
{
"script": "provisioners/base.sh",
"type": "shell",
"override": {
"amazon-ebs": {
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}"
}
}
},
{
"script": "provisioners/vm.sh",
"type": "shell",
"only": ["virtualbox-iso", "vmware-iso"]
},
{
"script": "provisioners/amazon-ebs-32bit.sh",
"type": "shell",
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}",
"only": ["amazon-ebs"]
},
{
"script": "provisioners/cloud.sh",
"type": "shell",
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}",
"only": ["amazon-ebs"]
}
],
"post-processors": [[
{
"type": "vagrant",
"output": "boxes/centos-6_7-32_percona_{{.Provider}}.box"
},
{
"type": "atlas",
"artifact": "grypyrg/centos-i386",
"artifact_type": "vagrant.box",
"only": ["virtualbox-iso"],
"metadata": {
"provider": "virtualbox",
"version": "6.7.{{isotime \"20060102\"}}"
}
},
{
"type": "atlas",
"artifact": "grypyrg/centos-i386",
"artifact_type": "vagrant.box",
"only": ["vmware-iso"],
"metadata": {
"provider": "vmware_desktop",
"version": "6.7.{{isotime \"20060102\"}}"
}
},
{
"type": "atlas",
"artifact": "grypyrg/centos-i386",
"artifact_type": "vagrant.box",
"only": ["amazon-ebs"],
"metadata": {
"provider": "aws",
"version": "6.7.{{isotime \"20060102\"}}"
}
}
]]
}