Guest User

Untitled

a guest
Aug 8th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. # Prior to use: crypt passwords and add here
  2.  
  3. install
  4. # System authorization information
  5. auth --enableshadow --passalgo=sha512
  6. # Use CDROM installation media
  7. #cdrom
  8. # Use graphical install
  9. #graphical
  10. # Run the Setup Agent on first boot
  11. firstboot --enable
  12. # ignoredisk --only-use=sda
  13.  
  14. # Keyboard layouts
  15. keyboard --vckeymap=gb --xlayouts='gb'
  16. # System language
  17. lang en_GB.UTF-8
  18. # Timezone
  19. timezone --utc
  20.  
  21. # Network information
  22. network --bootproto=dhcp --device=eth0 --activate
  23. network --hostname=hardbox
  24.  
  25. # Root password - disable in post-install script
  26. rootpw --iscrypted ${ROOT_PW_HASH}
  27. # Grub password
  28. bootloader --password=${GRUB_PW_HASH} --iscrypted
  29.  
  30.  
  31. # System services
  32. services --disabled="chronyd"
  33. # System timezone
  34. timezone Europe/London --isUtc --nontp
  35. # User to begin with - change immediately after install
  36. user --groups=wheel --name=${ADMIN_USER} --password="${ADMIN_PW_HASH}" --iscrypted --gecos="Admin User"
  37. # Disable root from ssh during installation
  38. sshpw --username=root --plaintext root --lock
  39. # System bootloader configuration
  40. bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda
  41.  
  42. # Partition clearing information
  43. zerombr
  44. clearpart --all --drives=sda --initlabel
  45. part /boot --fstype="xfs" --ondisk=sda --size=${BOOT_SIZE}
  46. part pv.01 --fstype="lvmpv" --ondisk=sda --size=${PV_SIZE} --grow --encrypted --passphrase=${ENCRYPTION_PASS}
  47. volgroup centos pv.01
  48. logvol /tmp --fstype="xfs" --size=${TMP_SIZE} --name=tmp --vgname=centos
  49. logvol /var --fstype="xfs" --size=${VAR_SIZE} --name=var --vgname=centos
  50. logvol swap --fstype="swap" --recommended --name=swap --vgname=centos
  51. logvol /var/tmp --fstype="xfs" --size=${VAR_TMP_SIZE} --name=var_tmp --vgname=centos
  52. logvol / --fstype="xfs" --size=${ROOT_SIZE} --name=root --vgname=centos
  53. logvol /var/log --fstype="xfs" --size=${VAR_LOG_SIZE} --name=var_log --vgname=centos
  54. logvol /var/log/audit --fstype="xfs" --size=${VAR_LOG_AUDIT_SIZE} --name=var_log_audit --vgname=centos
  55. logvol /home --fstype="xfs" --size=${HOME_SIZE} --name=home --vgname=centos
  56.  
  57. selinux --enforcing
  58.  
  59. reboot
  60.  
  61. %packages
  62. @^minimal
  63. @core
  64. kexec-tools
  65.  
  66. %end
  67.  
  68. %addon com_redhat_kdump --enable --reserve-mb='auto'
  69.  
  70. %end
  71.  
  72. %anaconda
  73. pwpolicy root --minlen=14 --minquality=1 --nochanges --notempty
  74. pwpolicy user --minlen=14 --minquality=1 --nochanges --notempty
  75. pwpolicy luks --minlen=14 --minquality=1 --nochanges --notempty
  76. %end
Add Comment
Please, Sign In to add comment