SHARE
TWEET

preseed (kickstart) file

a guest Apr 4th, 2013 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Orchestra - Ubuntu Server Installation
  2. # * Minimal install
  3. # * Cloud-init for bare-metal
  4. # * Grab meta-data and user-data from cobbler server in a late command
  5.  
  6. # Locale
  7. d-i     debian-installer/locale string en_US.UTF-8
  8.  
  9. # No splash
  10. d-i     debian-installer/splash boolean false
  11.  
  12. # Keyboard layout
  13. d-i     console-setup/ask_detect        boolean false
  14. d-i     console-setup/layoutcode        string us
  15. d-i     console-setup/variantcode       string
  16.  
  17. # Network configuration
  18. d-i netcfg/choose_interface select auto
  19. d-i netcfg/dhcp_timeout string 60
  20. d-i netcfg/dhcp_failed note
  21. d-i netcfg/dhcp_options select Configure network manually
  22. d-i netcfg/get_nameservers string 172.25.20.24
  23. d-i netcfg/choose_interface select eth1
  24. d-i netcfg/get_ipaddress string 172.25.20.246
  25. d-i netcfg/get_netmask string 255.255.255.0
  26. d-i netcfg/choose_interface select eth0
  27. d-i netcfg/get_ipaddress string 10.145.88.246
  28. d-i netcfg/get_netmask string 255.255.254.0
  29. d-i netcfg/get_gateway string 10.145.88.1
  30. d-i netcfg/get_hostname string test1
  31. d-i netcfg/get_domain string unassigned-domain
  32.  
  33. # Local clock (set to UTC and use ntp)
  34. d-i     clock-setup/utc boolean true
  35. d-i     clock-setup/ntp boolean true
  36. d-i     clock-setup/ntp-server  string ntp.ubuntu.com
  37.  
  38. # Partitioning
  39. d-i partman-auto/disk string /dev/sda /dev/sdb
  40.  
  41. d-i partman-auto/method string lvm
  42.  
  43. d-i partman-lvm/device_remove_lvm boolean true
  44. d-i partman-md/device_remove_md boolean true
  45. d-i partman-md/confirm boolean true
  46.  
  47.  
  48. d-i partman/default_filesystem string ext4
  49. d-i partman-partitioning/confirm_write_new_label boolean true
  50. d-i partman/choose_partition select finish
  51. d-i partman/confirm boolean true
  52. d-i partman/confirm_nooverwrite boolean true
  53. d-i partman-auto/purge_lvm_from_device boolean true
  54.  
  55.  
  56. d-i     partman-auto/expert_recipe string \
  57. boot-root ::                              \
  58. 512 100 1024 ext4                         \
  59. $defaultignore{ }                         \
  60. $primary{ }                               \
  61. $bootable{ }                              \
  62. method{ format }                          \
  63. format{ }                                 \
  64. use_filesystem{ }                         \
  65. filesystem{ ext4 }                        \
  66. mountpoint{ /boot }                       \
  67. .                                         \
  68. 1024 200 1000000000 ext4                  \
  69. $defaultignore{ }                         \
  70. $primary{ }                               \
  71. device{ /dev/sda }                        \
  72. vg_name{ vg00 }                           \
  73. method{ lvm }                             \
  74. .                                         \
  75. 1024 200 1000000000 ext4                  \
  76. $defaultignore{ }                         \
  77. $primary{ }                               \
  78. device{ /dev/sdb }                        \
  79. vg_name{ vg01 }                           \
  80. method{ lvm }                             \
  81. .                                         \
  82. 1024 1000 1000000000 ext4                 \
  83. lvmok{ }                                  \
  84. $primary{ }                               \
  85. $bootable{ }                              \
  86. in_vg{ vg00 }                             \
  87. method{ format }                          \
  88. format{ }                                 \
  89. use_filesystem{ }                         \
  90. filesystem{ ext4 }                        \
  91. mountpoint{ / }                           \
  92. .                                         \
  93. 200% 500 200% linux-swap                  \
  94. lvmok{ }                                  \
  95. in_vg{ vg00 }                             \
  96. lv_name{ swap }                           \
  97. method{ swap }                            \
  98. format{ }                                 \
  99. .                                         \
  100. 1000 500 10000 ext4                       \
  101. lvmok{ }                                  \
  102. in_vg{ vg00 }                             \
  103. method{ format }                          \
  104. format{ }                                 \
  105. use_filesystem{ }                         \
  106. filesystem{ ext4 }                        \
  107. mountpoint{ /var/log }                    \
  108. .                                         \
  109. 512 500 1000000000 ext4                   \
  110. lvmok{ }                                  \
  111. in_vg{ vg01 }                             \
  112. method{ format }                          \
  113. format{ }                                 \
  114. use_filesystem{ }                         \
  115. filesystem{ ext4 }                        \
  116. mountpoint{ /usr }                        \
  117. .
  118.  
  119.  
  120. d-i partman/confirm boolean true
  121. d-i partman-lvm/confirm boolean true
  122. d-i partman-lvm/confirm_nooverwrite boolean true
  123.  
  124.  
  125. # Use server kernel
  126. d-i     base-installer/kernel/image     string linux-server
  127.  
  128. # User Setup
  129. d-i     passwd/root-login       boolean true
  130. d-i     passwd/root-password password 1qaz2wsx
  131. d-i     passwd/root-password-again password 1qaz2wsx
  132. d-i     passwd/make-user        boolean true
  133. d-i     passwd/user-fullname    string localadmin
  134. d-i     passwd/username string localadmin
  135. d-i     passwd/user-password password 1qaz2wsx
  136. d-i     passwd/user-password-again password 1qaz2wsx
  137. d-i     passwd/user-uid string
  138. d-i     user-setup/allow-password-weak  boolean true
  139. d-i     user-setup/encrypt-home boolean false
  140. d-i     passwd/user-default-groups      string adm cdrom dialout lpadmin plugdev sambashare
  141.  
  142. # APT
  143. d-i apt-setup/local0/repository string http://apt.opscode.com/ precise-0.10 main
  144. d-i apt-setup/local0/source boolean true
  145. d-i apt-setup/local0/key string http://apt.opscode.com/packages@opscode.com.gpg.key
  146.  
  147. d-i     mirror/country string manual
  148. d-i       mirror/http/hostname  string 172.25.20.36
  149. d-i       mirror/http/directory string /cobbler/ks_mirror/ubuntu-12.04-server-x86_64
  150.  
  151. # By default the installer requires that repositories be authenticated
  152. # using a known gpg key. This setting can be used to disable that
  153. # authentication. Warning: Insecure, not recommended.
  154. d-i debian-installer/allow_unauthenticated string false
  155.  
  156. # Lang
  157. d-i     pkgsel/language-packs   multiselect en
  158. d-i     pkgsel/update-policy    select none
  159. d-i     pkgsel/updatedb boolean true
  160.  
  161. # d-i pkgsel/include string openssh-server
  162. tasksel tasksel/first multiselect ubuntu-desktop
  163.  
  164. d-i pkgsel/include string build-essential chef curl tcpdump libshadow-ruby1.8 openssh-server wget
  165. d-i pkgsel/upgrade select full-upgrade
  166. d-i pkgsel/update-policy select none
  167. d-i pkgsel/updatedb boolean true
  168.  
  169. d-i grub-installer/only_debian boolean true
  170. d-i grub-installer/with_other_os boolean true
  171. d-i finish-install/reboot_in_progress note
  172.  
  173.  
  174.  
  175. # Eject cdrom
  176. d-i     cdrom-detect/eject      boolean true
  177.  
  178. # Do not halt/poweroff after install
  179. d-i     debian-installer/exit/halt      boolean false
  180. d-i     debian-installer/exit/poweroff  boolean false
  181.  
  182. # Install minimum packages that are essential for server bootstrapping
  183. d-i     pkgsel/include string ubuntu-orchestra-client
  184.  
  185.  
  186. # Launch byobu by default
  187.  
  188. # Set cloud-init data source to manual seeding
  189. cloud-init      cloud-init/datasources  multiselect     NoCloud
  190.  
  191. # Set rsyslog server
  192. ubuntu-orchestra-client ubuntu-orchestra-client/rsyslog_host string 172.25.20.36
  193.  
  194. d-i preseed/late_command string \
  195.     cd /target    \
  196.     in-target echo '' > /etc/network/interfaces  && \
  197.     in-target echo 'auto lo' >> /etc/network/interfaces  && \
  198.     in-target echo 'iface lo inet loopback' >> /etc/network/interfaces  && \
  199.     in-target echo '' >> /etc/network/interfaces  && \
  200.     in-target echo 'auto eth1' >> /etc/network/interfaces  && \
  201.     in-target echo 'iface eth1 inet static' >> /etc/network/interfaces  && \
  202.     in-target echo '        address 172.25.20.246' >> /etc/network/interfaces   && \
  203.     in-target echo '        netmask 255.255.255.0' >> /etc/network/interfaces  && \
  204.     in-target echo 'auto eth0' >> /etc/network/interfaces  && \
  205.     in-target echo 'iface eth0 inet static' >> /etc/network/interfaces  && \
  206.     in-target echo '        address 10.145.88.246' >> /etc/network/interfaces   && \
  207.     in-target echo '        netmask 255.255.254.0' >> /etc/network/interfaces  && \
  208.     in-target echo '        gateway 10.145.88.1' >> /etc/network/interfaces && \
  209.     in-target echo '' >> /etc/network/interfaces
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top