-
Notifications
You must be signed in to change notification settings - Fork 1
/
centos6-kvm.json
57 lines (57 loc) · 1.52 KB
/
centos6-kvm.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
{
"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}}'"
}],
"builders": [
{
"name": "centos-6-kvm",
"type": "qemu",
"disk_size": 20480,
"format": "qcow2",
"headless": false,
"accelerator": "kvm",
"net_device": "virtio-net",
"disk_interface": "virtio",
"iso_checksum": "9d3fec5897be6b3fed4d3dda80b8fa7bb62c616bbfd4bdcd27295ca9b764f498",
"iso_checksum_type": "sha256",
"iso_url": "http://centos.cu.be/6/isos/x86_64/CentOS-6.7-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>"
]
}],
"post-processors": [
[
{
"type": "vagrant",
"compression_level": 1,
"output": "centos6-puppet_{{.Provider}}.box",
}, {
"type": "vagrant-cloud",
"box_tag": "SimonPe/centos6-puppet",
"version": "{{user `box_version`}}",
"no_release": "true",
"access_token": "{{user `cloud_token`}}",
}
]
]
}