Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Orchestra - Ubuntu Server Installation
- # * Minimal install
- # * Cloud-init for bare-metal
- # * Grab meta-data and user-data from cobbler server in a late command
- # Locale
- d-i debian-installer/locale string en_US.UTF-8
- # No splash
- d-i debian-installer/splash boolean false
- # Keyboard layout
- d-i console-setup/ask_detect boolean false
- d-i console-setup/layoutcode string us
- d-i console-setup/variantcode string
- # Network configuration
- d-i netcfg/choose_interface select auto
- d-i netcfg/dhcp_timeout string 60
- d-i netcfg/dhcp_failed note
- d-i netcfg/dhcp_options select Configure network manually
- d-i netcfg/get_nameservers string 172.25.20.24
- d-i netcfg/choose_interface select eth1
- d-i netcfg/get_ipaddress string 172.25.20.246
- d-i netcfg/get_netmask string 255.255.255.0
- d-i netcfg/choose_interface select eth0
- d-i netcfg/get_ipaddress string 10.145.88.246
- d-i netcfg/get_netmask string 255.255.254.0
- d-i netcfg/get_gateway string 10.145.88.1
- d-i netcfg/get_hostname string test1
- d-i netcfg/get_domain string unassigned-domain
- # Local clock (set to UTC and use ntp)
- d-i clock-setup/utc boolean true
- d-i clock-setup/ntp boolean true
- d-i clock-setup/ntp-server string ntp.ubuntu.com
- # Partitioning
- d-i partman-auto/disk string /dev/sda /dev/sdb
- d-i partman-auto/method string lvm
- d-i partman-lvm/device_remove_lvm boolean true
- d-i partman-md/device_remove_md boolean true
- d-i partman-md/confirm boolean true
- d-i partman/default_filesystem string ext4
- 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 partman-auto/purge_lvm_from_device boolean true
- d-i partman-auto/expert_recipe string \
- boot-root :: \
- 512 100 1024 ext4 \
- $defaultignore{ } \
- $primary{ } \
- $bootable{ } \
- method{ format } \
- format{ } \
- use_filesystem{ } \
- filesystem{ ext4 } \
- mountpoint{ /boot } \
- . \
- 1024 200 1000000000 ext4 \
- $defaultignore{ } \
- $primary{ } \
- device{ /dev/sda } \
- vg_name{ vg00 } \
- method{ lvm } \
- . \
- 1024 200 1000000000 ext4 \
- $defaultignore{ } \
- $primary{ } \
- device{ /dev/sdb } \
- vg_name{ vg01 } \
- method{ lvm } \
- . \
- 1024 1000 1000000000 ext4 \
- lvmok{ } \
- $primary{ } \
- $bootable{ } \
- in_vg{ vg00 } \
- method{ format } \
- format{ } \
- use_filesystem{ } \
- filesystem{ ext4 } \
- mountpoint{ / } \
- . \
- 200% 500 200% linux-swap \
- lvmok{ } \
- in_vg{ vg00 } \
- lv_name{ swap } \
- method{ swap } \
- format{ } \
- . \
- 1000 500 10000 ext4 \
- lvmok{ } \
- in_vg{ vg00 } \
- method{ format } \
- format{ } \
- use_filesystem{ } \
- filesystem{ ext4 } \
- mountpoint{ /var/log } \
- . \
- 512 500 1000000000 ext4 \
- lvmok{ } \
- in_vg{ vg01 } \
- method{ format } \
- format{ } \
- use_filesystem{ } \
- filesystem{ ext4 } \
- mountpoint{ /usr } \
- .
- d-i partman/confirm boolean true
- d-i partman-lvm/confirm boolean true
- d-i partman-lvm/confirm_nooverwrite boolean true
- # Use server kernel
- d-i base-installer/kernel/image string linux-server
- # User Setup
- d-i passwd/root-login boolean true
- d-i passwd/root-password password 1qaz2wsx
- d-i passwd/root-password-again password 1qaz2wsx
- d-i passwd/make-user boolean true
- d-i passwd/user-fullname string localadmin
- d-i passwd/username string localadmin
- d-i passwd/user-password password 1qaz2wsx
- d-i passwd/user-password-again password 1qaz2wsx
- d-i passwd/user-uid string
- d-i user-setup/allow-password-weak boolean true
- d-i user-setup/encrypt-home boolean false
- d-i passwd/user-default-groups string adm cdrom dialout lpadmin plugdev sambashare
- # APT
- d-i apt-setup/local0/repository string http://apt.opscode.com/ precise-0.10 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
- d-i mirror/country string manual
- d-i mirror/http/hostname string 172.25.20.36
- d-i mirror/http/directory string /cobbler/ks_mirror/ubuntu-12.04-server-x86_64
- # By default the installer requires that repositories be authenticated
- # using a known gpg key. This setting can be used to disable that
- # authentication. Warning: Insecure, not recommended.
- d-i debian-installer/allow_unauthenticated string false
- # Lang
- d-i pkgsel/language-packs multiselect en
- d-i pkgsel/update-policy select none
- d-i pkgsel/updatedb boolean true
- # d-i pkgsel/include string openssh-server
- tasksel tasksel/first multiselect ubuntu-desktop
- d-i pkgsel/include string build-essential chef curl tcpdump libshadow-ruby1.8 openssh-server wget
- d-i pkgsel/upgrade select full-upgrade
- d-i pkgsel/update-policy select none
- d-i pkgsel/updatedb boolean true
- d-i grub-installer/only_debian boolean true
- d-i grub-installer/with_other_os boolean true
- d-i finish-install/reboot_in_progress note
- # Eject cdrom
- d-i cdrom-detect/eject boolean true
- # Do not halt/poweroff after install
- d-i debian-installer/exit/halt boolean false
- d-i debian-installer/exit/poweroff boolean false
- # Install minimum packages that are essential for server bootstrapping
- d-i pkgsel/include string ubuntu-orchestra-client
- # Launch byobu by default
- # Set cloud-init data source to manual seeding
- cloud-init cloud-init/datasources multiselect NoCloud
- # Set rsyslog server
- ubuntu-orchestra-client ubuntu-orchestra-client/rsyslog_host string 172.25.20.36
- d-i preseed/late_command string \
- cd /target \
- in-target echo '' > /etc/network/interfaces && \
- in-target echo 'auto lo' >> /etc/network/interfaces && \
- in-target echo 'iface lo inet loopback' >> /etc/network/interfaces && \
- in-target echo '' >> /etc/network/interfaces && \
- in-target echo 'auto eth1' >> /etc/network/interfaces && \
- in-target echo 'iface eth1 inet static' >> /etc/network/interfaces && \
- in-target echo ' address 172.25.20.246' >> /etc/network/interfaces && \
- in-target echo ' netmask 255.255.255.0' >> /etc/network/interfaces && \
- in-target echo 'auto eth0' >> /etc/network/interfaces && \
- in-target echo 'iface eth0 inet static' >> /etc/network/interfaces && \
- in-target echo ' address 10.145.88.246' >> /etc/network/interfaces && \
- in-target echo ' netmask 255.255.254.0' >> /etc/network/interfaces && \
- in-target echo ' gateway 10.145.88.1' >> /etc/network/interfaces && \
- in-target echo '' >> /etc/network/interfaces
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement