-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook-vm.yaml
72 lines (69 loc) · 1.83 KB
/
playbook-vm.yaml
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
---
- hosts: localhost
connection: local
gather_facts: false
vars:
namespace: demo-cluster-disco
tasks:
- name: VM
kubevirt.core.kubevirt_vm:
state: present
running: true # default
wait: true
name: beryllium
namespace: "{{ namespace }}"
data_volume_templates:
- metadata:
name: beryllium-root
spec:
storage:
accessModes:
- ReadWriteMany
storageClassName: coe-netapp-nas
resources:
requests:
storage: 80Gi
source:
blank: {}
spec:
volumes:
- name: cdrom
persistentVolumeClaim:
claimName: beryllium-1-i386-hybrid
- name: root
dataVolume:
name: beryllium-root
networks:
- name: coe
multus:
networkName: coe-bridge
- name: disco
multus:
networkName: coe-br-vlan-69
domain:
cpu:
cores: 4
memory:
guest: 8Gi
resources:
requests:
memory: 8Gi
devices:
disks:
- name: root
bootOrder: 1
disk:
bus: virtio
- name: cdrom
bootOrder: 2
cdrom:
bus: sata
interfaces:
- bridge: {}
# macAddress: 02:d8:6d:00:00:12
model: virtio
name: coe
- bridge: {}
# macAddress: 02:d8:6d:00:00:13
model: virtio
name: disco