Created
November 5, 2010 18:58
-
-
Save coderanger/664608 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is the entire preseed config file used on an example Lucid system. See the preseed | |
# documentation for more information on the options here. This will use US English by default. | |
# | |
# https://help.ubuntu.com/10.04/installation-guide/amd64/preseed-contents.html | |
# | |
# This preseed will automatically install Ubuntu 10.04 with default options. Understand what | |
# it is doing before you use it. | |
# | |
# Boot Options line: | |
# | |
# auto url=http://build.example.com/seed console-setup/ask_detect=false \ | |
# console-setup/layoutcode=us locale=en_US netcfg/get_hostname=ubuntu1004test \ | |
# initrd=/install/initrd.gz quiet -- | |
# | |
# All on one line, wrapped here for line width readability. Also, the preseed must be | |
# retrievable at the URL given, change to suit. See the preseed documentation for more | |
# information. | |
# | |
### Localization | |
# Locale sets language and country. | |
d-i debian-installer/locale string en_US | |
# Keyboard selection. | |
d-i console-setup/ask_detect boolean false | |
d-i console-setup/layoutcode string us | |
### Network configuration | |
d-i netcfg/choose_interface select eth0 | |
d-i netcfg/dhcp_timeout string 60 | |
# Change to the desired default hostname, or pass 'netcfg/get_hostname=HOST' to boot options | |
d-i netcfg/get_hostname string unassigned-hostname | |
# Change example.com to your domain or pass 'netcfg/get_domain=DOMAIN' to boot options | |
d-i netcfg/get_domain string paragon.crypticstudio.com | |
d-i netcfg/wireless_wep string | |
### Mirror settings | |
d-i mirror/country string manual | |
d-i mirror/http/hostname string us.archive.ubuntu.com | |
d-i mirror/http/directory string /ubuntu | |
d-i mirror/http/proxy string | |
d-i mirror/http/mirror select us.archive.ubuntu.com | |
d-i mirror/udeb/components multiselect main, restricted, universe, multiverse | |
d-i mirror/http/proxy string | |
### Clock and time zone setup | |
d-i clock-setup/utc boolean true | |
d-i time/zone string America/Los_Angeles | |
d-i clock-setup/ntp boolean true | |
# Change to your preferred NTP server. | |
d-i clock-setup/ntp-server string vesta.paragon.crypticstudios.com | |
### Partitioning | |
# Naive, please read the preseed documentation on how to change this. | |
d-i partman-auto/disk string /dev/sda | |
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-auto/choose_recipe select atomic | |
d-i partman/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 | |
### Base system installation | |
d-i base-installer/kernel/image string linux-generic | |
### Account setup | |
# Generate the PASSWORDHASH with: | |
# mkpasswd -m sha-512 | |
# | |
# If you want to use a root password, set this to true, generate a PASSWORDHASH with mkpasswd | |
# and uncomment the user-default-groups line so the user also gets sudo access. | |
#d-i passwd/root-login boolean false | |
#d-i passwd/root-password-crypted password PASSWORDHASH | |
d-i passwd/user-fullname string atari | |
d-i passwd/username string atari | |
d-i passwd/user-password-crypted password PASSWORDHASH | |
d-i user-setup/encrypt-home boolean false | |
#d-i passwd/user-default-groups string adm cdrom dialout lpadmin plugdev sambashare admin sudo | |
### Apt setup | |
# Additional repositories added here are appended to /etc/apt/sources.list. | |
# Add Opscode APT repository to sources. | |
# Be sure to change 'lucid' to the proper release if you're not using Ubuntu 10.04! | |
d-i apt-setup/local0/repository string \ | |
http://apt.opscode.com/ lucid main | |
# enable deb-src lines | |
d-i apt-setup/local0/source boolean true | |
# URL to the public key of the local repository; you must provide a key or | |
# apt will complain about the unauthenticated repository and so the | |
# sources.list line will be left commented out | |
d-i apt-setup/local0/key string http://apt.opscode.com/[email protected] | |
tasksel tasksel/first multiselect server | |
# change package list to suit your preferences | |
#d-i pkgsel/include string openssh-server build-essential ruby ruby-dev \ | |
# libopenssl-ruby rdoc ri irb wget curl ssl-cert git-core rake | |
# or use the following: | |
#d-i pkgsel/include string openssh-server chef wget curl ssl-cert | |
d-i pkgsel/include string openssh-server wget curl ssl-cert | |
d-i pkgsel/upgrade select safe-upgrade | |
d-i pkgsel/update-policy select none | |
d-i pkgsel/language-packs multiselect en | |
d-i pkgsel/install-language-support boolean false | |
### Boot loader installation | |
d-i grub-installer/only_debian boolean true | |
d-i grub-installer/with_other_os boolean true | |
### Finishing up the installation | |
d-i finish-install/reboot_in_progress note | |
### X configuration | |
# I don't know if this is required but leaving it in probably doesn't hurt. Don't want to | |
# end up having to reinstall because of a stupid prompt -jt | |
xserver-xorg xserver-xorg/autodetect_monitor boolean true | |
xserver-xorg xserver-xorg/config/monitor/selection-method \ | |
select medium | |
xserver-xorg xserver-xorg/config/monitor/mode-list \ | |
select 1024x768 @ 60 Hz | |
### Preseeding other packages | |
# You can preseed other packages too. For example setting the Chef Server's URL for the | |
# Opscode Platform (replace ORGNAME with your value): | |
#chef chef/chef_server_url string https://api.opscode.com/organizations/ORGNAME | |
# Or, if you use an internal chef server, change FQDN: | |
#chef chef/chef_server_url string http://chef.example.com | |
#### Advanced options | |
# Additional preseeding options here. | |
# This is where you could retrieve the validation certificate for Chef with a late install | |
# command. Read the preseed documentation on how to use these commands. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d-i preseed/include string preseed.cfg | |
chef chef/chef_server_url string http://risk-chef:4000 | |
d-i preseed/late_command string in-target wget -O /home/atari/updatens.pl http://risk-kickstart/updatens.pl; \ | |
in-target perl /home/atari/updatens.pl; \ | |
in-target mkdir -p /etc/chef; \ | |
in-target wget -O /etc/chef/validation.pem http://risk-kickstart/validation.pem; \ | |
apt-install chef; \ | |
in-target chef-client |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment