* Updated System->get_os_type() to add comments for RHEL8 and remove Fedora support.

* Updated the pxe.txt template to use RHEL8 and remove Fedora support.
* Updated striker-manage-install-target to support RHEL8 and remove Fedora support.

Signed-off-by: Digimer <digimer@alteeve.ca>
main
Digimer 6 years ago
parent 06228918d6
commit 3e2a1faf06
  1. 14
      Anvil/Tools/System.pm
  2. 22
      html/skins/alteeve/pxe.txt
  3. 30
      notes
  4. 2
      pxe/kickstart/dr.ks
  5. 2
      pxe/kickstart/node.ks
  6. 2
      pxe/kickstart/striker.ks
  7. 22
      pxe/tftpboot/pxelinux.cfg/default
  8. 1068
      tools/striker-manage-install-target

@ -999,7 +999,7 @@ This returns the operating system type and the system architecture as two separa
# Run on RHEL 7, on a 64-bit system
my ($os_type, $os_arch) = $anvil->System->get_os_type();
# '$os_type' holds 'rhel7' ('rhel', 'centos' or 'fedora' + release version)
# '$os_type' holds 'rhel8' ('rhel' or 'centos' + release version)
# '$os_arch' holds 'x86_64' (specifically, 'uname --hardware-platform')
If either can not be determined, C<< unknown >> will be returned.
@ -1019,12 +1019,10 @@ sub get_os_type
my $os_arch = "unknown";
### NOTE: Examples;
# Red Hat Enterprise Linux Server release 6.10 (Santiago)
# Red Hat Enterprise Linux release 8.0 Beta (Ootpa)
# Red Hat Enterprise Linux Server release 7.5 (Maipo)
# CentOS release 6.10 (Final)
# CentOS Linux release 7.5.1804 (Core)
# Fedora release 28 (Twenty Eight)
#
# Read in the /etc/redhat-release file
my $release = $anvil->Storage->read_file({file => $anvil->data->{path}{data}{'redhat-release'}});
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => $debug, list => { release => $release }});
@ -1040,12 +1038,6 @@ sub get_os_type
$os_type = "centos".$1;
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => $debug, list => { os_type => $os_type }});
}
elsif ($release =~ /Fedora .*? (\d+) /)
{
# Fedora, with the version number appended
$os_type = "fedora".$1;
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => $debug, list => { os_type => $os_type }});
}
my $output = $anvil->System->call({shell_call => $anvil->data->{path}{exe}{uname}." --hardware-platform"});
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => $debug, list => { output => $output }});

@ -678,41 +678,41 @@ menu label #!string!message_0084!#
TEXT HELP
#!string!message_0085!#
ENDTEXT
kernel fedora28/vmlinuz
kernel rhel8/vmlinuz
# NOTE: add ' rd.debug' below for debugging
append initrd=fedora28/initrd.img root=live:#!variable!base_url!#/images/install.img inst.stage2=#!variable!base_url!#/os/ ip=dhcp inst.ks=#!variable!base_url!#/kickstart/striker.ks inst.gpt inst.sshd
append initrd=rhel8/initrd.img root=live:#!variable!base_url!#/images/install.img inst.stage2=#!variable!base_url!#/os/ ip=dhcp inst.ks=#!variable!base_url!#/kickstart/striker.ks inst.gpt inst.sshd
label node
menu label #!string!message_0086!#
TEXT HELP
#!string!message_0087!#
ENDTEXT
kernel fedora28/vmlinuz
append initrd=fedora28/initrd.img root=live:#!variable!base_url!#/images/install.img inst.stage2=#!variable!base_url!#/os/ ip=dhcp inst.ks=#!variable!base_url!#/kickstart/node.ks inst.gpt inst.sshd
kernel rhel8/vmlinuz
append initrd=rhel8/initrd.img root=live:#!variable!base_url!#/images/install.img inst.stage2=#!variable!base_url!#/os/ ip=dhcp inst.ks=#!variable!base_url!#/kickstart/node.ks inst.gpt inst.sshd
label node
menu label #!string!message_0088!#
TEXT HELP
#!string!message_0089!#
ENDTEXT
kernel fedora28/vmlinuz
append initrd=fedora28/initrd.img root=live:#!variable!base_url!#/images/install.img inst.stage2=#!variable!base_url!#/os/ ip=dhcp inst.ks=#!variable!base_url!#/kickstart/dr.ks inst.gpt inst.sshd
kernel rhel8/vmlinuz
append initrd=rhel8/initrd.img root=live:#!variable!base_url!#/images/install.img inst.stage2=#!variable!base_url!#/os/ ip=dhcp inst.ks=#!variable!base_url!#/kickstart/dr.ks inst.gpt inst.sshd
label rescue
menu label #!string!message_0090!#
TEXT HELP
#!string!message_0091!#
ENDTEXT
kernel fedora28/vmlinuz
append initrd=fedora28/initrd.img ip=dhcp root=live:#!variable!base_url!#/LiveOS/squashfs.img rescue inst.repo=#!variable!base_url!#/os/ ip=dhcp inst.sshd
kernel rhel8/vmlinuz
append initrd=rhel8/initrd.img ip=dhcp root=live:#!variable!base_url!#/LiveOS/squashfs.img rescue inst.repo=#!variable!base_url!#/os/ ip=dhcp inst.sshd
label fedora
label rhel8
menu label #!string!message_0092!#
TEXT HELP
#!string!message_0093!#
ENDTEXT
kernel fedora28/vmlinuz
append initrd=fedora28/initrd.img root=live:#!variable!base_url!#/images/install.img inst.repo=#!variable!base_url!#/os/ ip=dhcp inst.gpt inst.sshd
kernel rhel8/vmlinuz
append initrd=rhel8/initrd.img root=live:#!variable!base_url!#/images/install.img inst.repo=#!variable!base_url!#/os/ ip=dhcp inst.gpt inst.sshd
label next
menu default

30
notes

@ -664,7 +664,7 @@ clearpart --none --initlabel
# Use graphical install
graphical
# Use network installation
url --url="http://10.1.4.1/fedora28/x86_64/iso/"
url --url="http://10.1.4.1/rhel8/x86_64/iso/"
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'
# System language
@ -1197,3 +1197,31 @@ diff -uNr htop-2.2.0 htop-2.2.0-digimer > whatever.patch
# Fabio's way
diff -Naurd htop-2.2.0 htop-2.2.0-digimer > htop_python3_MakeHeader.patch
=======================================
chrissie's cluster script
# Run these commands on all nodes:
cp ../ifup-local /sbin
/sbin/ifup-local
pcs host auth -uhacluster -phacluster amy.chrissie.net anna.chrissie.net clara.chrissie.net fanny.chrissie.net
if [ "$(hostname)" != "amy.chrissie.net" -a "$(hostname)" != "amy" ]
then
exit
fi
# and these on just one:
pcs cluster setup taroxVMs amy.chrissie.net anna.chrissie.net clara.chrissie.net fanny.chrissie.net
pcs cluster start --all
sleep 30
pcs stonith create fence-virsh fence_virsh ipaddr=192.168.100.1 login=root passwd=christine pcmk_host_map="amy:rhel8-1;anna:rhel8-2;clara:rhel8-3;fanny:rhel8-4"
pcs property set stonith-enabled=true
pcs resource create dlm ocf:pacemaker:controld op monitor interval=60s on-fail=fence clone meta interleave=true clone-node-max=1 ordered=true
pcs resource create lvmlock ocf:heartbeat:lvmlockd op monitor interval=60s on-fail=fence clone meta interleave=true
pcs constraint order start dlm-clone then lvmlock-clone
pcs constraint colocation add lvmlock-clone with dlm-clone

@ -20,7 +20,7 @@ firstboot --disable
reboot
# Install from the source Striker
url --url=http://10.1.4.1/fedora28/x86_64/os/
url --url=http://10.201.4.1/rhel8/x86_64/os/
### TODO: These should be configurable eventually.
# Keyboard layouts

@ -20,7 +20,7 @@ firstboot --disable
reboot
# Install from the source Striker
url --url=http://10.1.4.1/fedora28/x86_64/os/
url --url=http://10.201.4.1/rhel8/x86_64/os/
### TODO: These should be configurable eventually.
# Keyboard layouts

@ -20,7 +20,7 @@ firstboot --disable
reboot
# Install from the source Striker
url --url=http://10.1.4.1/fedora28/x86_64/os/
url --url=http://10.201.4.1/rhel8/x86_64/os/
### TODO: These should be configurable eventually.
# Keyboard layouts

@ -74,8 +74,8 @@ TEXT HELP
*** THERE WILL BE NO FURTHER PROMPT! PROCEED CAREFULLY! ***
ENDTEXT
# \-----------------------------------------------------------------------------------------------------------/
kernel fedora28/vmlinuz
append initrd=fedora28/initrd.img root=live:http://10.1.4.1/fedora28/x86_64/os/images/install.img inst.stage2=http://10.1.4.1/fedora28/x86_64/os/ ip=dhcp inst.ks=http://10.1.4.1/fedora28/x86_64/kickstart/striker.ks inst.sshd rd.debug
kernel rhel8/vmlinuz
append initrd=rhel8/initrd.img root=live:http://10.201.4.1/rhel8/x86_64/os/images/install.img inst.stage2=http://10.201.4.1/rhel8/x86_64/os/ ip=dhcp inst.ks=http://10.201.4.1/rhel8/x86_64/kickstart/striker.ks inst.sshd rd.debug
label node
menu label Install an Anvil! ^Node (Fedora 28 64-bit)
@ -92,8 +92,8 @@ TEXT HELP
*** THERE WILL BE NO FURTHER PROMPT! PROCEED CAREFULLY! ***
ENDTEXT
# \-----------------------------------------------------------------------------------------------------------/
kernel fedora28/vmlinuz
append initrd=fedora28/initrd.img root=live:http://10.1.4.1/fedora28/x86_64/os/images/install.img inst.stage2=http://10.1.4.1/fedora28/x86_64/os/ ip=dhcp inst.ks=http://10.1.4.1/fedora28/x86_64/kickstart/node.ks inst.sshd rd.debug
kernel rhel8/vmlinuz
append initrd=rhel8/initrd.img root=live:http://10.201.4.1/rhel8/x86_64/os/images/install.img inst.stage2=http://10.201.4.1/rhel8/x86_64/os/ ip=dhcp inst.ks=http://10.201.4.1/rhel8/x86_64/kickstart/node.ks inst.sshd rd.debug
label node
menu label Install an Anvil! ^Disaster Recover Host (Fedora 28 64-bit)
@ -110,8 +110,8 @@ TEXT HELP
*** THERE WILL BE NO FURTHER PROMPT! PROCEED CAREFULLY! ***
ENDTEXT
# \-----------------------------------------------------------------------------------------------------------/
kernel fedora28/vmlinuz
append initrd=fedora28/initrd.img root=live:http://10.1.4.1/fedora28/x86_64/os/images/install.img inst.stage2=http://10.1.4.1/fedora28/x86_64/os/ ip=dhcp inst.ks=http://10.1.4.1/fedora28/x86_64/kickstart/dr.ks inst.sshd rd.debug
kernel rhel8/vmlinuz
append initrd=rhel8/initrd.img root=live:http://10.201.4.1/rhel8/x86_64/os/images/install.img inst.stage2=http://10.201.4.1/rhel8/x86_64/os/ ip=dhcp inst.ks=http://10.201.4.1/rhel8/x86_64/kickstart/dr.ks inst.sshd rd.debug
label rescue
menu label Boot into a ^Rescue session
@ -125,10 +125,10 @@ TEXT HELP
No data on the target machine will be changed by this option.
ENDTEXT
# \-----------------------------------------------------------------------------------------------------------/
kernel fedora28/vmlinuz
append initrd=fedora28initrd.img ip=dhcp root=live:http://10.1.4.1/fedora28/x86_64/os/LiveOS/squashfs.img rescue
kernel rhel8/vmlinuz
append initrd=rhel8initrd.img ip=dhcp root=live:http://10.201.4.1/rhel8/x86_64/os/LiveOS/squashfs.img rescue
label fedora
label rhel8
menu label Install ^Standard Fedora 28 64-bit Install
# Keep help text wrapped within the area shown directly below.
# /-----------------------------------------------------------------------------------------------------------\
@ -139,8 +139,8 @@ TEXT HELP
This option will not change anything on disk until and unless you choose to do so.
ENDTEXT
# \-----------------------------------------------------------------------------------------------------------/
kernel fedora28/vmlinuz
append initrd=fedora28/initrd.img root=live:http://10.1.4.1/fedora28/x86_64/os/images/install.img
kernel rhel8/vmlinuz
append initrd=rhel8/initrd.img root=live:http://10.201.4.1/rhel8/x86_64/os/images/install.img
label next
menu default

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save