Advertisement
devinteske

settings

Jun 8th, 2015
414
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.10 KB | None | 0 0
  1. ############################################################ CONFIGURATION
  2.  
  3. #
  4. # Where to find ISO files when configuring the PXE menu
  5. #
  6. ISOIMPORT_DIR="/images"
  7.  
  8. #
  9. # Filter against ISO files to find in the import directory
  10. # NB: Only items matching this pattern are acted-on when using `-A' or `-a'
  11. # NB: This is an awk(1) regular expression
  12. #
  13. ISOFILTER="^(Free|True).+"
  14.  
  15. #
  16. # Base path to NFS/SMB exported directory to unpack ISO to
  17. #
  18. # NB: Feel free to set this to $ISOIMPORT_DIR but beware that the files are
  19. #     unpacked as `root' so will may be immutable to the user that uploaded
  20. #     the original ISO into the same directory. However, you can always use
  21. #     the `-R' flag to prune entries.
  22. #
  23. ROOTEXPORT_DIR="/pxe"
  24.  
  25. #
  26. # Path to our boot image build-framework
  27. #
  28. NETBOOT_SRC="$0"
  29. NETBOOT_SRC="${NETBOOT_SRC%/*}/netboot"
  30.  
  31. #
  32. # What is the IP address of the HTTP server (usually this machine) that serves
  33. # the netboot ISO images?
  34. #
  35. # NB: If not this machine, make sure the $HTTP_DATA files get pushed there
  36. #
  37. HTTP_SERVER="192.168.1.1"
  38.  
  39. #
  40. # URI to the HTTP exported directory serving pxe-config ISOs
  41. # NB: Served from $HTTP_DATA as configured in `httpd.conf'
  42. # NB: This can be a directory or symlink (e.g., to $ROOTEXPORT_DIR)
  43. #
  44. ISOEXPORT_URI="/pxe"
  45.  
  46. ############################################################ MORE CONFIGURATION
  47.  
  48. #
  49. # Samba configuration file and template
  50. #
  51. SMB_CONF_TEMPLATE="/usr/local/etc/smb.conf.template"
  52. SMB_CONF="${SMB_CONF_TEMPLATE%.*}"
  53.  
  54. #
  55. # syslinux menu configuration file and template
  56. #
  57. MENU_CONF_TEMPLATE="/tftpboot/boot/pxe-config/isolinux.cfg.template"
  58. MENU_CONF="${MENU_CONF_TEMPLATE%.*}"
  59.  
  60. #
  61. # Text to replace `@TITLE@` in $MENU_CONF_TEMPLATE with
  62. #
  63. MENU_TITLE="ISO Options:"
  64.  
  65. #
  66. # apache httpd DocumentRoot (configured in `httpd.conf')
  67. #
  68. HTTP_DATA="/usr/local/www/apache22/data"
  69.  
  70. #
  71. # Where to temporarily mount the ISO
  72. #
  73. ISO_MNT="/tmp/pxe-config.iso.$$"
  74.  
  75. #
  76. # Where to temporarily mount FreeNAS md(4) volume (e.g., base.ufs.uzip)
  77. #
  78. MD_MNT="/tmp/pxe-config.md.$$"
  79.  
  80. ############################################################ GLOBALS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement