Advertisement
Guest User

Untitled

a guest
May 4th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. #version=DEVEL
  2. # System authorization information
  3. auth --enableshadow --passalgo=sha512
  4. repo --name="Server-HighAvailability" --baseurl=file:///run/install/repo/addons/HighAvailability
  5. repo --name="Server-ResilientStorage" --baseurl=file:///run/install/repo/addons/ResilientStorage
  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. # Keyboard layouts
  14. keyboard --vckeymap=jp --xlayouts='jp'
  15. # System language
  16. lang ja_JP.UTF-8
  17.  
  18. # Network information
  19. network --bootproto=dhcp --device=enp0s3 --ipv6=auto --activate
  20. network --hostname=rhel7
  21.  
  22. # Root password is PASSWORD
  23. rootpw --iscrypted $6$37a5ec68c43d0522$8lqJNDajgg362q9pBFWWWztFLELotDEbwTaRjX3Zvz37Hq/2VViawgl0IZxSFTQdJ9y7sUUY8cXjt.ZBS834m/
  24. # System timezone
  25. timezone Asia/Tokyo --isUtc
  26. # password is PASSWORD
  27. user --groups=wheel --name=rhel7 --password=$6$a58429ffe28bf988$aB52XqWFRhmXf2LGkDFVujcgZjGZr44cuGoCv1OEF2Ou2Iw7R7E7Ip8FDNRmQxjNS.cBCh/uSDB1pJl1kzu9T/ --iscrypted --gecos="Red Hat"
  28. # System bootloader configuration
  29. bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda
  30. autopart --type=lvm
  31. # Partition clearing information
  32. clearpart --all --initlabel --drives=sda
  33.  
  34. %packages
  35. @^minimal
  36. @core
  37. kexec-tools
  38.  
  39. %end
  40.  
  41. %post --log=/root/registration_results.out
  42. subscription-manager register --auto-attach --username=YOUR_USERNAME --password=CLEAR_TEXT_PASSWORD
  43.  
  44. subscription-manager repos --enable=rhel-7-server-extras-rpms
  45. subscription-manager repos --enable=rhel-7-server-optional-rpms
  46. # Docker
  47. yum install -y docker docker-registry
  48. yum install -y device-mapper-libs device-mapper-event-libs
  49. systemctl start docker.service
  50. systemctl enable docker.service
  51.  
  52. %end
  53.  
  54. %addon com_redhat_kdump --enable --reserve-mb='auto'
  55.  
  56. %end
  57.  
  58. # Reboot after installation
  59. reboot --eject
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement