-
Notifications
You must be signed in to change notification settings - Fork 1
/
packer.json
152 lines (152 loc) · 5 KB
/
packer.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
142
143
144
145
146
147
148
149
150
151
152
{
"push": {
"name": "SimonPe/centos-puppet"
},
"variables": {
"cloud_token": "{{env `ATLAS_TOKEN`}}",
"box_version": "{{env `VERSION`}}"
},
"provisioners": [{
"type": "shell",
"scripts": [
"scripts/base.sh",
"scripts/cleanup.sh",
"scripts/zerodisk.sh"
],
"execute_command": "sudo -S sh '{{.Path}}'",
"only": ["centos-7-vbox", "centos-6-vbox"]
}, {
"type": "shell",
"scripts": [
"scripts/base.sh",
"scripts/cleanup.sh"
],
"execute_command": "sudo -S sh '{{.Path}}'",
"only": ["centos-7-kvm", "centos-6-kvm"]
}],
"builders": [
{
"name": "centos-6-vbox",
"type": "virtualbox-iso",
"disk_size": 20480,
"guest_os_type": "RedHat_64",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"virtualbox_version_file": ".vbox_version",
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "512"],
[ "modifyvm", "{{.Name}}", "--cpus", "2"]
],
"iso_checksum": "5458f357e8a55e3a866dd856896c7e0ac88e7f9220a3dd74c58a3b0acede8e4d",
"iso_checksum_type": "sha256",
"iso_url": "http://ftp.belnet.be/ftp.centos.org/6/isos/x86_64/CentOS-6.6-x86_64-minimal.iso",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "sudo -S poweroff",
"http_directory": "http",
"boot_wait": "5s",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.el6.cfg<enter><wait>"
]
}, {
"name": "centos-7-vbox",
"type": "virtualbox-iso",
"disk_size": 20480,
"guest_os_type": "RedHat_64",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"virtualbox_version_file": ".vbox_version",
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "512"],
[ "modifyvm", "{{.Name}}", "--cpus", "2"]
],
"iso_checksum": "7cf1ac8da13f54d6be41e3ccf228dc5bb35792f515642755ff4780d5714d4278",
"iso_checksum_type": "sha256",
"iso_url": "http://ftp.belnet.be/ftp.centos.org/7/isos/x86_64/CentOS-7-x86_64-Minimal-1503-01.iso",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "sudo -S poweroff",
"http_directory": "http",
"boot_wait": "5s",
"boot_command": [
"<tab> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.el7.cfg<enter><wait>"
]
}, {
"name": "centos-6-kvm",
"type": "qemu",
"disk_size": 20480,
"format": "qcow2",
"headless": false,
"accelerator": "kvm",
"net_device": "virtio-net",
"disk_interface": "virtio",
"iso_checksum": "5458f357e8a55e3a866dd856896c7e0ac88e7f9220a3dd74c58a3b0acede8e4d",
"iso_checksum_type": "sha256",
"iso_url": "http://ftp.belnet.be/ftp.centos.org/6/isos/x86_64/CentOS-6.6-x86_64-minimal.iso",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "sudo -S poweroff",
"http_directory": "http",
"boot_wait": "5s",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.el6.cfg<enter><wait>"
]
}, {
"name": "centos-7-kvm",
"type": "qemu",
"disk_size": 20480,
"format": "qcow2",
"headless": false,
"accelerator": "kvm",
"net_device": "virtio-net",
"disk_interface": "virtio",
"iso_checksum": "7cf1ac8da13f54d6be41e3ccf228dc5bb35792f515642755ff4780d5714d4278",
"iso_checksum_type": "sha256",
"iso_url": "http://ftp.belnet.be/ftp.centos.org/7/isos/x86_64/CentOS-7-x86_64-Minimal-1503-01.iso",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "sudo -S poweroff",
"http_directory": "http",
"boot_wait": "5s",
"boot_command": [
"<tab> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.el7.cfg<enter><wait>"
]
}],
"post-processors": [
[
{
"type": "vagrant",
"compression_level": 1,
"output": "centos7-puppet_{{.Provider}}.box",
"only": ["centos-7-kvm", "centos-7-vbox"]
}, {
"type": "vagrant-cloud",
"box_tag": "SimonPe/centos7-puppet",
"version": "{{user `box_version`}}",
"no_release": "true",
"access_token": "{{user `cloud_token`}}",
"only": ["centos-7-kvm", "centos-7-vbox"]
}
], [
{
"type": "vagrant",
"compression_level": 1,
"output": "centos6-puppet_{{.Provider}}.box",
"only": ["centos-6-kvm", "centos-6-vbox"]
}, {
"type": "vagrant-cloud",
"box_tag": "SimonPe/centos6-puppet",
"version": "{{user `box_version`}}",
"no_release": "true",
"access_token": "{{user `cloud_token`}}",
"only": ["centos-6-kvm", "centos-6-vbox"]
}
]
]
}