-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.yml
59 lines (51 loc) · 1.93 KB
/
main.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
# Defaults variables for role boot-server
# This boot-server role would install necessary pxe services, only if set to True
# Do we want dhcp
boot_dhcpd: True
boot_dhcpd_domain: domain.com
boot_dhcpd_ns:
- 172.16.1.1
- 172.16.1.2
boot_dhcpd_networks:
- subnet: 172.16.1.0
netmask: 255.255.255.0
range: 172.16.1.50 172.16.1.70
router: 172.16.1.254
pxe_boot: True
pxe_server: 172.16.1.1
dhcp_client_groups:
- ansible-inventory-group1 # This group will be parsed to construct fixed-ip/mac-address association outside of pool/range) , ignored if not declared
- subnet: 172.16.2.0
netmask: 255.255.255.0
range: 172.16.2.50 172.16.2.70
router: 172.16.2.254
boot_dhcpd_lease_time: 6000
# Do we want tftp
boot_tftpd: True
# Do we want to also support RHEL for pxe boot ?
# If so we'll just inherit some needed 'rhel_deploy_mirror_url' variable defined in inventory to fetch files
# We can then also add RHEL in the boot_pxe_entries list below (through inventory)
boot_pxe_rhel_support: False
# Default vnc password if we want to start inst.vnc for pxe installs
boot_pxe_vncpass: laix4eeR
boot_pxe_entries:
- dist: CentOS
release: 9-stream
arch: x86_64
vnc: true
- dist: CentOS
release: 9-stream
arch: x86_64
vnc: false
# efi files to download to pxe boot with grub/uefi
boot_pxe_source_files:
- source: http://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/EFI/BOOT/BOOTX64.EFI
dest: /var/lib/tftpboot/shimx64.efi
- source: http://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/EFI/BOOT/grubx64.efi
dest: /var/lib/tftpboot/grubx64.efi
- source: http://mirror.stream.centos.org/9-stream/BaseOS/aarch64/os/EFI/BOOT/BOOTAA64.EFI
dest: /var/lib/tftpboot/shimx64.efi
- source: http://mirror.stream.centos.org/9-stream/BaseOS/aarch64/os/EFI/BOOT/grubaa64.efi
dest: /var/lib/tftpboot/grubaa64.efi
# Do we want to serve files (like kickstarts) over http
boot_http: True