Skip to content

Commit 5865160

Browse files
committed
Allow host based override to network settings. Update tftp path to rhel9 default.
1 parent e15185a commit 5865160

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

tasks/redhat.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
enabled: true
3939

4040
- name: copy undionly.kpxe chainboot
41-
copy: src=undionly.kpxe dest=/var/lib/tftpboot/undionly.kpxe owner=root group=root mode="0644"
41+
copy: src=undionly.kpxe dest=/var/tftp/undionly.kpxe owner=root group=root mode="0644"
4242

4343
- name: copy snponly.efi (UEFI 64-bit) chainboot
44-
copy: src=snponly.efi dest=/var/lib/tftpboot/snponly.efi owner=root group=root mode="0644"
44+
copy: src=snponly.efi dest=/var/tftp/snponly.efi owner=root group=root mode="0644"
4545

4646
- name: install selinux package
4747
package: name="policycoreutils" state=present

templates/dhcp_node.conf.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ host {{ item }} {
44
hardware ethernet {{ hostvars[item]['mac_address'] }};
55
fixed-address {{ hostvars[item]['int_ip_addr'] }};
66
send host-name "{{ item }}.{{ dhcp_common_domain }}";
7-
next-server {{ dhcp_tftp_server_ip }};
7+
next-server {{ hostvars[item]['dhcp_tftp_server_ip'] }};
88

99
if exists user-class and (option user-class = "iPXE"
1010
or option user-class = "gPXE") {
11-
filename "http://{{ dhcp_tftp_server_ip }}/cgi-bin/boot.py";
11+
filename "http://{{ hostvars[item]['dhcp_tftp_server_ip'] }}/cgi-bin/boot.py";
1212
} elsif option arch = 00:00 {
1313
# Legacy x86 BIOS
1414
filename "undionly.kpxe";

templates/kickstart.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ timezone --utc Europe/Helsinki
1818

1919
#firstboot --disable
2020
{% if hostvars[item].yum_proxy is defined %}
21-
url --url="{{ repo_location }}" --proxy={{ hostvars[item].yum_proxy }}
21+
url --url="{{ hostvars[item].repo_location }}" --proxy={{ hostvars[item].yum_proxy }}
2222
{% else %}
23-
url --url="{{ repo_location }}"
23+
url --url="{{ hostvars[item].repo_location }}"
2424
{% endif %}
2525

2626
# repos

0 commit comments

Comments
 (0)