-
Notifications
You must be signed in to change notification settings - Fork 0
/
subman-centos7.json
60 lines (60 loc) · 1.63 KB
/
subman-centos7.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": {
"centos7_iso_url": "http://mirror.math.princeton.edu/pub/centos/7/isos/x86_64/CentOS-7-x86_64-NetInstall-1810.iso",
"headless": "true",
"version": "0.1.{{timestamp}}"
},
"provisioners": [
{
"type": "ansible",
"playbook_file": "./subman-vagrant.yml"
}
],
"builders": [
{
"type": "qemu",
"iso_url": "{{ user `centos7_iso_url` }}",
"iso_checksum": "19d94274ef856c4dfcacb2e7cfe4be73e442a71dd65cc3fb6e46db826040b56e",
"iso_checksum_type": "sha256",
"output_directory": "output",
"shutdown_command": "sudo systemctl poweroff",
"disk_size": 40960,
"disk_image": false,
"format": "qcow2",
"headless": "{{ user `headless` }}",
"accelerator": "kvm",
"http_directory": "kickstarts",
"http_port_min": 10082,
"http_port_max": 10089,
"ssh_host_port_min": 2222,
"ssh_host_port_max": 2229,
"ssh_username": "vagrant",
"ssh_private_key_file": "keys/vagrant",
"ssh_port": 22,
"ssh_timeout": "10000s",
"vm_name": "centos7",
"net_device": "virtio-net",
"disk_interface": "virtio",
"boot_wait": "5s",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos7.ks<enter><wait>"
],
"qemuargs": [
[ "-m", "1024M" ]
]
}
],
"post-processors": [
[
{
"output": "builds/{{.Provider}}-subman-centos7.box",
"type": "vagrant"
},
{
"type": "vagrant-cloud",
"box_tag": "candlepin/subscription-manager-centos7",
"version": "{{ user `version` }}"
}
]
]
}