forked from myoung34/vagrant-ovirt4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.kitchen.yml
83 lines (80 loc) · 2.52 KB
/
.kitchen.yml
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
driver:
name: vagrant
vagrantfile_erb: templates/Vagrantfile.erb
provider: ovirt4
verifier:
name: inspec
format: doc
platforms:
- name: centos7
driver_plugin: vagrant
driver_config:
customize:
memory_size: 1024 MB
url: <%= ENV['OVIRT_URL'] %>
insecure: true
username: <%= ENV['OVIRT_USERNAME'] %>
password: <%= ENV['OVIRT_PASSWORD'] %>
cluster: Default
debug: true
box: ovirt4
box_url: https://github.com/myoung34/vagrant-ovirt4/blob/master/example_box/dummy.box?raw=true
suites:
- name: singleton-static_network
driver_config:
vm_hostname: static
customize:
template: vagrant-centos7
network:
- ["private_network", {ovirt__ip: <%= "192.168.2.254" %>, ovirt__network_name: 'ovirtmgmt', ovirt__gateway: 192.168.2.1, ovirt__netmask: 255.255.255.0, ovirt__dns_servers: 192.168.2.1}]
- name: dynamic_network
driver_config:
vm_hostname: dynamic
network:
- ["private_network", {ovirt__network_name: 'ovirtmgmt'}]
customize:
template: vagrant-centos7
cloud_init: |
runcmd:
- ifdown eth0
- service network restart
- name: bios_serial
driver_config:
vm_hostname: bios-serial
network:
- ["private_network", {ovirt__network_name: 'ovirtmgmt'}]
customize:
template: vagrant-centos7
bios_serial: 'banana-hammock'
cloud_init: |
runcmd:
- ifdown eth0
- service network restart
- name: optimized_for_default
verifier:
name: shell
command: curl --silent -k -L --user "${OVIRT_USERNAME}:${OVIRT_PASSWORD}" --header 'Content-Type: application/xml' --header 'Accept: application/xml' ${OVIRT_URL}/vms/d3f659e1-21ff-42a0-b5fa-7c2f74a36c2b | xmllint --xpath '/vm/type/text()' - | grep desktop
driver_config:
vm_hostname: optimized-for
network:
- ["private_network", {ovirt__network_name: 'ovirtmgmt'}]
customize:
template: vagrant-centos7
cloud_init: |
runcmd:
- ifdown eth0
- service network restart
- name: optimized_for_set
verifier:
name: shell
command: test/integration/optimized_for.sh
driver_config:
vm_hostname: optimized-for
network:
- ["private_network", {ovirt__network_name: 'ovirtmgmt'}]
customize:
template: vagrant-centos7
cloud_init: |
runcmd:
- ifdown eth0
- service network restart