This repository has been archived by the owner on Aug 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
centos7-local.json
137 lines (137 loc) · 6.86 KB
/
centos7-local.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
{
"variables": {
"version" : "1.0.{{timestamp}}",
"http":"http/centos/7/",
"ks_file": "centos7.cfg",
"distribution":"centos7",
"scripts_path":"scripts/centos/7",
"name":"packer-centos-7-x86_64",
"shutdown":"echo 'vagrant'|sudo -S /sbin/halt -h -p",
"iso_base_url": "iso",
"iso_checksum_type": "sha256",
"username": "vagrant",
"password": "vagrant",
"disk_size": "40960",
"timeout": "300m",
"headless": "true",
"iso_checksum": "714acc0aefb32b7d51b515e25546835e55a90da9fb00417fbee2d03a62801efd"
},
"builders": [
{
"type": "qemu",
"iso_urls": [
"{{user `iso_base_url`}}/CentOS-7-x86_64-Minimal-1804.iso",
"http://ftp.rezopole.net/centos/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://miroir.univ-paris13.fr/centos/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://mirror.in2p3.fr/linux/CentOS/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://fr2.rpmfind.net/linux/centos/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://centos.mirrors.proxad.net/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://rep-centos-fr.upress.io/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://centos.mirror.ate.info/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://centos.quelquesmots.fr/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://centos.mirrors.benatherton.com/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://mir01.syntis.net/CentOS/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://mirrors.ircam.fr/pub/CentOS/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://distrib-coffee.ipsl.jussieu.fr/pub/linux/centos/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://miroir.univ-lorraine.fr/centos/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://mirrors.atosworldline.com/public/centos/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://mirror.plusserver.com/centos/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://mirrors.standaloneinstaller.com/centos/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://ftp.pasteur.fr/mirrors/CentOS/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://centos.crazyfrogs.org/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://centos.mirror.fr.planethoster.net/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://mirrors.mit.edu/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso"
],
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"ssh_username": "{{user `username`}}",
"ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "{{user `timeout`}}",
"disk_size": "{{user `disk_size`}}",
"headless": "{{user `headless`}}",
"format": "{{user `format`}}",
"accelerator": "kvm",
"net_device": "virtio-net",
"disk_interface": "virtio",
"http_directory": "{{user `http`}}",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_file`}}<enter><wait>"
],
"shutdown_command": "{{user `shutdown`}}",
"qemuargs": [[ "-m", "2048M" ],[ "-smp", "2" ]],
"vm_name": "{{user `name`}}"
},
{
"type": "virtualbox-iso",
"iso_urls": [
"{{user `iso_base_url`}}/CentOS-{{user `centos_version`}}-{{user `centos_arch`}}-{{user `iso_filename`}}.iso",
"http://ftp.rezopole.net/centos/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://miroir.univ-paris13.fr/centos/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://mirror.in2p3.fr/linux/CentOS/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://fr2.rpmfind.net/linux/centos/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://centos.mirrors.proxad.net/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://rep-centos-fr.upress.io/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://centos.mirror.ate.info/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://centos.quelquesmots.fr/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://centos.mirrors.benatherton.com/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://mir01.syntis.net/CentOS/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://mirrors.ircam.fr/pub/CentOS/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://distrib-coffee.ipsl.jussieu.fr/pub/linux/centos/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://miroir.univ-lorraine.fr/centos/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://mirrors.atosworldline.com/public/centos/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://mirror.plusserver.com/centos/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://mirrors.standaloneinstaller.com/centos/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://ftp.pasteur.fr/mirrors/CentOS/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://centos.crazyfrogs.org/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://centos.mirror.fr.planethoster.net/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"http://mirrors.mit.edu/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso"
],
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"ssh_username": "{{user `username`}}",
"ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "{{user `timeout`}}",
"disk_size": "{{user `disk_size`}}",
"guest_os_type": "RedHat_64",
"headless": "{{user `headless`}}",
"http_directory": "{{user `http`}}",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_file`}}<enter><wait>"
],
"shutdown_command": "{{user `shutdown`}}",
"virtualbox_version_file": ".vbox_version",
"vm_name": "{{user `name`}}",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"2048"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"2"
]
]
}
],
"provisioners": [
{
"type": "shell",
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"scripts": [
"{{user `scripts_path`}}/vagrant.sh",
"{{user `scripts_path`}}/cleanup.sh"
]
}
],
"post-processors": [
{
"output": "builds/{{user `distribution`}}-{{.Provider}}.box",
"compression_level": 9,
"type": "vagrant"
}
]
}