Merge "Openstack: Using VSPERF to Test on Openstack."
[vswitchperf.git] / tools / md-testvnf / testVNF_image.json
1
2   "builders": [
3     {
4       "boot_command": [
5         "<tab> text biosdevname=0 net.ifnames=0 ",
6         "ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg<enter><wait>"
7       ],
8       "accelerator": "kvm",
9       "boot_wait": "10s",
10       "disk_size": 2048,
11       "disk_interface": "virtio-scsi",
12       "http_directory": "http",
13       "iso_checksum": "101bc813d2af9ccf534d112cbe8670e6d900425b297d1a4d2529c5ad5f226372",
14       "iso_checksum_type": "sha256",
15       "iso_url": "http://centos.osuosl.org/7.8.2003/isos/x86_64/CentOS-7-x86_64-NetInstall-2003.iso",
16       "output_directory": "image",
17       "qemuargs": [ [ "-m", "1024M" ]],
18       "shutdown_command": "echo 'centos'|sudo -S /sbin/halt -h -p",
19       "ssh_password": "centos",
20       "ssh_port": 22,
21       "ssh_username": "centos",
22       "ssh_wait_timeout": "10000s",
23       "type": "qemu",
24       "vm_name": "packer-centos-7-x86_64-openstack",
25       "vnc_bind_address": "0.0.0.0",
26       "Headless": "true"
27     },
28     {
29       "name": "openstack",
30       "type": "openstack",
31         "image_name": "testvnf_image",
32         "identity_endpoint": "{{user `identiy_endpoint`}}",
33         "username": "{{user `username`}}",
34         "password": "{{user `password`}}",
35         "ssh_username": "centos",
36         "networks" : "{{user `networks`}}",
37         "source_image": "{{user `source_image`}}",
38         "flavor": "{{user `flavor`}}",
39         "domain_name": "{{user `domain_name`}}",
40         "ssh_timeout": "15m",
41         "use_floating_ip": "true",
42         "floating_ip_network" : "{{user `floating_ip_network`}}"
43        } 
44 ],
45   "provisioners": [
46     {
47       "type": "shell",
48       "execute_command": "echo testvnf | {{.Vars}} sudo -S -E bash '{{.Path}}'",
49       "script": "scripts/ansible.sh"
50     },
51     {
52       "type": "file",
53       "source": "scripts/deploycentostools.sh",
54       "destination": "deploycentostools.sh"
55     },
56     {
57       "type": "ansible-local",
58       "playbook_file": "playbook.yml"
59     },
60     {
61       "type": "file",
62       "source": "{{user `ssh_path`}}",
63       "destination": "temp"
64     },
65     {
66       "type": "shell",
67       "execute_command": "echo testvnf | {{.Vars}} sudo -S -E bash '{{.Path}}'",
68       "script": "scripts/sshConfig.sh"
69     }
70   ]
71 }
72