diff options
Diffstat (limited to 'configs/data-dir/preseed')
-rw-r--r-- | configs/data-dir/preseed/common.preseed.slc | 12 | ||||
-rw-r--r-- | configs/data-dir/preseed/debian.preseed.slc | 36 | ||||
-rw-r--r-- | configs/data-dir/preseed/storage.preseed.slc | 104 | ||||
-rw-r--r-- | configs/data-dir/preseed/ubuntu-minimal.preseed.slc | 36 |
4 files changed, 188 insertions, 0 deletions
diff --git a/configs/data-dir/preseed/common.preseed.slc b/configs/data-dir/preseed/common.preseed.slc new file mode 100644 index 0000000..bcbf98b --- /dev/null +++ b/configs/data-dir/preseed/common.preseed.slc @@ -0,0 +1,12 @@ +{{define "common.preseed"}} +d-i auto-install/enable boolean true +d-i debian-installer/locale string en_US +d-i console-setup/ask_detect boolean false + +d-i user-setup/allow-password-weak boolean true +d-i passwd/root-login boolean true +d-i passwd/make-user boolean false + +d-i passwd/root-password password password +d-i passwd/root-password-again password password +{{end}}
\ No newline at end of file diff --git a/configs/data-dir/preseed/debian.preseed.slc b/configs/data-dir/preseed/debian.preseed.slc new file mode 100644 index 0000000..0915fe3 --- /dev/null +++ b/configs/data-dir/preseed/debian.preseed.slc @@ -0,0 +1,36 @@ +{{define "debian.preseed" -}} +{{template "common.preseed"}} + +d-i partman-auto/method string regular +d-i partman-lvm/device_remove_lvm boolean true +d-i partman-md/device_remove_md boolean true +d-i partman-lvm/confirm boolean true +d-i partman-lvm/confirm_nooverwrite boolean true + +# atomic: Just one partition +d-i partman-auto/choose_recipe select atomic + +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 + +d-i user-setup/encrypt-home boolean false + +d-i base-installer/install-recommends boolean true + +d-i clock-setup/utc boolean true +d-i time/zone string America/Los_Angeles + +d-i clock-setup/ntp boolean true + +d-i debian-installer/quiet boolean false +d-i debian-installer/splash boolean false + +d-i pkgsel/update-policy select unattended-upgrades + +d-i grub-installer/timeout string 5 +d-i popularity-contest/participate boolean false + +d-i finish-install/reboot_in_progress note +{{end}} diff --git a/configs/data-dir/preseed/storage.preseed.slc b/configs/data-dir/preseed/storage.preseed.slc new file mode 100644 index 0000000..982b41b --- /dev/null +++ b/configs/data-dir/preseed/storage.preseed.slc @@ -0,0 +1,104 @@ +{{define "storage.preseed" -}} +{{template "common.preseed"}} + +# 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 + +d-i partman-lvm/device_remove_lvm boolean true +d-i partman-lvm/device_remove_lvm_span boolean true +d-i partman-auto/purge_lvm_from_device boolean true +d-i partman-md/device_remove_md boolean true +d-i partman-lvm/confirm boolean true +d-i partman-auto-lvm/new_vg_name string vg0 + +# Next you need to specify the physical partitions that will be used. +d-i partman-auto/expert_recipe string \ + multiraid :: \ + 256 512 1024 raid \ + $lvmignore{ } \ + $primary{ } \ + method{ raid } \ + raidid{ 1 } \ + . \ + 4000 4096 -1 raid \ + $lvmignore{ } \ + method{ raid } \ + raidid{ 2 } \ + . \ + 2000 4096 50000 ext4 \ + $defaultignore{ } \ + $lvmok{ } \ + method{ format } \ + format{ } \ + use_filesystem{ } \ + filesystem{ ext4 } \ + mountpoint{ / } \ + lv_name{ root } \ + options/noatime{ noatime } \ + options/nodiratime{ nodiratime } \ + options/discard{ discard } \ + . \ + 100% 512 100% linux-swap \ + $defaultignore{ } \ + $lvmok{ } \ + method{ swap } \ + format{ } \ + lv_name{ swap } \ + . + + +# 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 \ + 1 2 0 ext3 /boot \ + raidid=1 \ + . \ + 1 2 0 lvm - \ + raidid=2 \ + . + + + +d-i mdadm/boot_degraded boolean true +d-i partman-md/confirm boolean true +d-i partman-partitioning/confirm_write_new_label boolean true +d-i partman/choose_partition select Finish partitioning and write changes to disk +d-i partman/confirm boolean true +d-i partman-md/confirm_nooverwrite boolean true +d-i partman/confirm_nooverwrite boolean true + +d-i user-setup/encrypt-home boolean false + +d-i base-installer/install-recommends boolean false + +d-i clock-setup/utc boolean true +d-i time/zone string UTC + +d-i clock-setup/ntp boolean true + +d-i debian-installer/quiet boolean false +d-i debian-installer/splash boolean false + +##This should be set by Puppet instead. +d-i pkgsel/update-policy select none +## + +d-i grub-installer/timeout string 5 +d-i popularity-contest/participate boolean false + + +d-i finish-install/keep-consoles boolean true +d-i finish-install/reboot_in_progress note + +# This just halts, we want a reboot. +#d-i debian-installer/exit/poweroff boolean true +{{end}} diff --git a/configs/data-dir/preseed/ubuntu-minimal.preseed.slc b/configs/data-dir/preseed/ubuntu-minimal.preseed.slc new file mode 100644 index 0000000..2138764 --- /dev/null +++ b/configs/data-dir/preseed/ubuntu-minimal.preseed.slc @@ -0,0 +1,36 @@ +{{define "ubuntu-minimal.preseed" -}} +{{template "common.preseed"}} + +d-i partman-auto/method string regular +d-i partman-lvm/device_remove_lvm boolean true +d-i partman-md/device_remove_md boolean true +d-i partman-lvm/confirm boolean true +d-i partman-lvm/confirm_nooverwrite boolean true + +# atomic: Just one partition +d-i partman-auto/choose_recipe select atomic + +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 + +d-i user-setup/encrypt-home boolean false + +d-i base-installer/install-recommends boolean true + +d-i clock-setup/utc boolean true +d-i time/zone string America/Los_Angeles + +d-i clock-setup/ntp boolean true + +d-i debian-installer/quiet boolean false +d-i debian-installer/splash boolean false + +d-i pkgsel/update-policy select unattended-upgrades + +d-i grub-installer/timeout string 5 +d-i popularity-contest/participate boolean false + +d-i finish-install/reboot_in_progress note +{{end}} |