-
Notifications
You must be signed in to change notification settings - Fork 0
/
vb-centos7-openstack-np.json
49 lines (49 loc) · 1.57 KB
/
vb-centos7-openstack-np.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
{
"builders": [{
"type": "virtualbox-iso",
"guest_os_type": "RedHat_64",
"iso_url": "{{user `mirror`}}/7/isos/x86_64/CentOS-7-x86_64-NetInstall-1511.iso",
"iso_checksum": "9ed9ffb5d89ab8cca834afce354daa70a21dcb410f58287d6316259ff89758f5",
"iso_checksum_type": "sha256",
"vm_name": "{{user `name`}}",
"name": "{{user `name`}}",
"disk_size": "40000",
"headless": true,
"http_directory": "kickstart",
"boot_wait": "5s",
"boot_command": [
"<tab> ",
"inst.ks=http://{{.HTTPIP}}:{{.HTTPPort}}/centos-openstack.ks.cfg",
"<enter>"
],
"ssh_timeout": "15m",
"ssh_username": "toto",
"ssh_private_key_file": "/home/bruno/.ssh/id_ecdsa",
"shutdown_command": "sudo systemctl poweroff",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "8096"],
["modifyvm", "{{.Name}}", "--cpus", "2"],
["modifyvm", "{{.Name}}", "--audio", "none"],
["modifyvm", "{{.Name}}", "--paravirtprovider", "kvm"],
["modifyvm", "{{.Name}}", "--vrde", "off"],
["modifyvm", "{{.Name}}", "--nic1", "nat"],
["modifyvm", "{{.Name}}", "--nic2", "hostonly"],
["modifyvm", "{{.Name}}", "--hostonlyadapter2", "vboxnet0"]
]
}],
"provisioners": [{
"type": "shell",
"scripts": [
"provisioners/shell/virtualbox.sh",
"provisioners/shell/openstack.sh"
]
},{
"type":"ansible",
"playbook_file":"provisioners/ansible/playbook.yml"
}],
"variables": {
"name": "vb-centos7-openstack-np",
"compression_level": "6",
"mirror": "http://mirrors.ircam.fr/pub/CentOS"
}
}