-
Notifications
You must be signed in to change notification settings - Fork 20
/
libvirt_resources.yml
111 lines (111 loc) · 3.09 KB
/
libvirt_resources.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
all:
vars:
prov_nic: eth0
pub_nic: eth1
provisionhost_user: dci
cluster: dciokd
domain: metalkube.org
masters_prov_nic: ens3
cluster_domain: "{{ cluster }}.{{ domain }}"
baremetal_net_ipv6: false
redfish_inspection: false
image_url: https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-GenericCloud-8-latest.x86_64.qcow2
enable_conserver: true
# in case you are using local dnsmasq provided by libvirt
apps_ip_address: 192.168.123.10
api_ip_address: 192.168.123.5
dns_vip_address: 192.168.123.6
networks:
- name: baremetal
ip: 192.168.123.1
dhcp_start: 192.168.123.100
dhcp_end: 192.168.123.150
domain: "{{ cluster_domain }}"
bridge: baremetal
forward_mode: nat
dns:
forwarders:
- domain: "apps.{{ cluster_domain }}"
addr: 127.0.0.1
hosts:
- ip: 192.168.123.5
hostnames:
- api
- name: provisioning
bridge: provisioning
hosts:
- name: provisionhost
domain: "{{ cluster_domain }}"
users:
- name: "{{ provisionhost_user }}"
gecos: Admin User
groups: wheel
sudo: ALL=(ALL) NOPASSWD:ALL
lock_passwd: false
run_commands:
- "sudo -u {{ provisionhost_user }} ssh-keygen -t rsa -b 4096 -f ~{{ provisionhost_user }}/.ssh/id_rsa -N ''"
- dnf install epel-release -y
driver: kvm
memory: 16384
vcpus: 8
arch: x86_64
boot_dev: hd
cpu_mode: host-passthrough
image_src: "{{ image_url }}"
disk_size: 42G
disk_cache: unsafe
disk_bus: virtio_scsi
networks:
- name: provisioning
- name: baremetal
- name: dciokd-master-0
domain: "{{ cluster_domain }}"
users: []
run_commands: []
driver: kvm
memory: 16384
vcpus: 8
arch: x86_64
boot_dev: hd
cpu_mode: host-passthrough
image_src: "{{ image_url }}"
disk_size: 42G
disk_cache: unsafe
disk_bus: virtio_scsi
networks:
- name: provisioning
- name: baremetal
- name: dciokd-master-1
domain: "{{ cluster_domain }}"
users: []
run_commands: []
driver: kvm
memory: 16384
vcpus: 8
arch: x86_64
boot_dev: hd
cpu_mode: host-passthrough
image_src: "{{ image_url }}"
disk_size: 42G
disk_cache: unsafe
disk_bus: virtio_scsi
networks:
- name: provisioning
- name: baremetal
- name: dciokd-master-2
domain: "{{ cluster_domain }}"
users: []
run_commands: []
driver: kvm
memory: 16384
vcpus: 8
arch: x86_64
boot_dev: hd
cpu_mode: host-passthrough
image_src: "{{ image_url }}"
disk_size: 42G
disk_cache: unsafe
disk_bus: virtio_scsi
networks:
- name: provisioning
- name: baremetal