Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
233 lines (199 sloc) 8.01 KB
#
# Preseed for Debian 7.7 (wheezy) computational chemistry cluster
# modified for debian 8.0 (jessie)
# by @jckromann
#
### Localization
# Preseeding only locale sets language, country and locale.
d-i debian-installer/locale string en_US
# Keyboard selection.
# keymap is an alias for keyboard-configuration/xkb-keymap
d-i keyboard-configuration/xkb-keymap select dk
d-i keyboard-configuration/variant select Danish
d-i keyboard-configuration/layoutcode string dk
d-i keyboard-configuration/layout select da
### Network configuration
# netcfg will choose an interface that has link if possible. This makes it
# skip displaying a list if there is more than one interface.
d-i netcfg/choose_interface select auto
# If you have a slow dhcp server and the installer times out waiting for
# it, this might be useful.
d-i netcfg/dhcp_timeout string 60
d-i netcfg/dhcpv6_timeout string 60
#JCK for z820
d-i netcfg/get_nameservers string 192.168.10.1
# Any hostname and domain names assigned from dhcp take precedence over
# values set here. However, setting the values still prevents the questions
# from being shown, even if values come from dhcp.
d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string unassigned-domain
d-i netcfg/get_hostname seen true
d-i netcfg/get_domain seen true
# HARDCODE HOSTNAME
d-i netcfg/hostname string spasnode102
# Disable that annoying WEP key dialog.
d-i netcfg/wireless_wep string
### Mirror settings
# select the masternode as mirror for apt
d-i mirror/country string manual
d-i mirror/http/hostname string 192.168.10.1
d-i mirror/http/directory string /debian/
d-i mirror/http/proxy string
d-i mirror/codename string jessie
d-i mirror/suite string jessie
### Account setup
# Alternatively, to skip creation of a normal user account.
d-i passwd/make-user boolean false
# Root password, either in clear text
d-i passwd/root-password password jimmyisgreat
d-i passwd/root-password-again password jimmyisgreat
# or encrypted using an MD5 hash.
# echo -n "r00tme" | md5sum
#d-i passwd/root-password-crypted password b0a5940680356c2ef73030e09f912f5e
### Clock and time zone setup
# Controls whether or not the hardware clock is set to UTC.
d-i clock-setup/utc boolean true
# You may set this to any valid setting for $TZ; see the contents of
# /usr/share/zoneinfo/ for valid values.
d-i time/zone string Europe/Copenhagen
# Controls whether to use NTP to set the clock during the install
d-i clock-setup/ntp boolean true
# NTP server to use:
clock-setup clock-setup/ntp-server string sunray
# #### PARITION BEGIN
#
#
# ### Partitioning
# d-i disk-detect/dmraid/enable boolean true
#
# ## Partitioning example
# # If the system has free space you can choose to only partition that space.
# # This is only honoured if partman-auto/method (below) is not set.
# #d-i partman-auto/init_automatically_partition select biggest_free
#
# # Alternatively, you may specify a disk to partition. If the system has only
# # one disk the installer will default to using that, but otherwise the device
# # name must be given in traditional, non-devfs format (so e.g. /dev/hda or
# # /dev/sda, and not e.g. /dev/discs/disc0/disc).
# # For example, to use the first SCSI/SATA hard disk:
#
# ### SINGLE HDD
# # d-i partman-auto/disk string /dev/sda
# ## SINGLE HDD
#
# # In addition, you'll need to specify the method to use.
# # The presently available methods are:
# # - regular: use the usual partition types for your architecture
# # - lvm: use LVM to partition the disk
# # - crypto: use LVM within an encrypted partition
# d-i partman-auto/method string lvm
#
# # If one of the disks that are going to be automatically partitioned
# # contains an old LVM configuration, the user will normally receive a
# # warning. This can be preseeded away...
# d-i partman-lvm/device_remove_lvm boolean true
# # The same applies to pre-existing software RAID array:
# d-i partman-md/device_remove_md boolean true
# # And the same goes for the confirmation to write the lvm partitions.
# d-i partman-lvm/confirm boolean true
# d-i partman-lvm/confirm_nooverwrite boolean true
#
# # You can choose one of the three predefined partitioning recipes:
# # - atomic: all files in one partition
# # - home: separate /home partition
# # - multi: separate /home, /usr, /var, and /tmp partitions
# d-i partman-auto/choose_recipe select atomic
#
#
# ### NOTE
# ### NOTE
# ### NOTE
# ### THIS IS FOR THE HP PROLIAN PARTITIONING
# ### RAID 0 FOR 4 DRIVES
# ## Partitioning using RAID
# # The method should be set to "raid".
# d-i partman-auto/method string raid
# # Specify the disks to be partitioned. They will all get the same layout,
# # so this will only work if the disks are the same size.
# d-i partman-auto/disk string /dev/sda /dev/sdb /dev/sdc /dev/sdd
#
# # Next you need to specify the physical partitions that will be used.
# d-i partman-auto/expert_recipe string \
# multiraid :: \
# 1000 5000 4000 raid \
# $primary{ } method{ raid } \
# . \
# 64 512 300% raid \
# method{ raid } \
# . \
# 500 10000 1000000000 raid \
# method{ raid } \
# .
#
# # Last you need to specify how the previously defined partitions will be
# # used in the RAID setup. Remember to use the correct partition numbers
# # for logical partitions. RAID levels 0, 1, 5, 6 and 10 are supported;
# # devices are separated using "#".
# # Parameters are:
# # <raidtype> <devcount> <sparecount> <fstype> <mountpoint> \
# # <devices> <sparedevices>
#
# d-i partman-auto-raid/recipe string \
# 0 4 0 ext4 / \
# /dev/sda1#/dev/sdb1#/dev/sdc1#/dev/sdd1 \
# . \
# 0 4 0 swap - \
# /dev/sda5#/dev/sdb5#/dev/sdc5#/dev/sdd5 \
# . \
# 0 4 0 ext4 /scratch \
# /dev/sda6#/dev/sdb6#/dev/sdc6#/dev/sdd6 \
# .
#
# d-i partman-md/confirm boolean true
# d-i partman-md/confirm_nooverwrite boolean false # JCK no idea why it should be false, but works
#
# ### NOTE
# ### NOTE
# ### NOTE
#
# # For additional information see the file partman-auto-raid-recipe.txt
# # included in the 'debian-installer' package or available from D-I source
# # repository.
#
# # This makes partman automatically partition without confirmation.
# d-i partman-partitioning/confirm_write_new_label boolean true
# d-i partman/choose_partition select finish
# d-i partman/confirm boolean true
# d-i partman/confirm_nooverwrite boolean true
#
# # Do you want to resume partitioning?
# partman-target partman-target/mount_failed boolean true # skip mounting fail
#
#
#
#
# # PARTITION END
### Package selection
tasksel tasksel/first multiselect none
# Individual additional packages to install
d-i pkgsel/include string openssh-server puppet facter
# Whether to upgrade packages after debootstrap.
# Allowed values: none, safe-upgrade, full-upgrade
d-i pkgsel/upgrade select none
# Some versions of the installer can report back on what software you have
# installed, and what software you use. The default is not to report back,
# but sending reports helps the project determine what software is most
# popular and include it on CDs.
popularity-contest popularity-contest/participate boolean false
# grub (for debian 8)
d-i grub-installer/only_debian true
d-i grub-installer/bootdev string default
### Finishing up the installation
# Avoid that last message about the install being complete.
d-i finish-install/reboot_in_progress note
#### Advanced options
### Running custom commands during the installation
# post install command to configure puppet
d-i preseed/late_command string \
in-target wget -O /tmp/postinstall.sh http://192.168.10.1/sunray-node-fix.sh; \
in-target /bin/sh /tmp/postinstall.sh;