-
-
Save statik/981961 to your computer and use it in GitHub Desktop.
preseed.cfg for automated installations with chef from apt.opscode.com
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. | |
# | |
### 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 example.com | |
d-i netcfg/wireless_wep string | |
### Mirror settings | |
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 UTC | |
d-i clock-setup/ntp boolean true | |
# Change to your preferred NTP server. | |
d-i clock-setup/ntp-server string time.example.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 ubuntu | |
d-i passwd/username string ubuntu | |
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. | |
# 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 | |
d-i apt-setup/local0/source boolean true | |
d-i apt-setup/local0/key string http://apt.opscode.com/packages@opscode.com.gpg.key | |
tasksel tasksel/first multiselect server | |
d-i pkgsel/include string openssh-server build-essential ruby ruby-dev \ | |
libopenssl-ruby rdoc ri irb wget curl ssl-cert git-core rake | |
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 | |
#### 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
# Boot Options line: | |
# auto url=http://build.int.example.com/seed console-setup/ask_detect=false \ | |
# console-setup/layoutcode=us locale=en_US netcfg/get_hostname=ubuntu1004test \ | |
# initrd=/install/initrd.gz quiet -- | |
# Add Opscode APT repository to sources. | |
d-i apt-setup/local0/repository string \ | |
http://apt.opscode.com/ &releasename; 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/packages@opscode.com.gpg.key | |
# Add Chef client package | |
d-i pkgsel/include string chef | |
# Later in the debconf for other packages settings (end of file), | |
# preseed the chef server URL. | |
# If the Opscode Platform is your Chef Server, change ORGNAME | |
#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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment