Advertisement
Guest User

Untitled

a guest
Dec 19th, 2013
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.03 KB | None | 0 0
  1. [root@lattice ubuntu]# cat workstation.seed
  2. #### Contents of the preconfiguration file (for squeeze)
  3. ### Localization
  4. # Preseeding only locale sets language, country and locale.
  5. d-i debian-installer/locale string en_US
  6.  
  7. # The values can also be preseeded individually for greater flexibility.
  8. d-i debian-installer/language string en
  9. #d-i debian-installer/country string NL
  10. d-i debian-installer/locale string en_US.UTF-8
  11. # Optionally specify additional locales to be generated.
  12. #d-i localechooser/supported-locales en_US.UTF-8, nl_NL.UTF-8
  13.  
  14. # Keyboard selection.
  15. # Disable automatic (interactive) keymap detection.
  16. d-i console-setup/ask_detect boolean false
  17. #d-i keyboard-configuration/modelcode string pc105
  18. d-i keyboard-configuration/layoutcode string us
  19. # To select a variant of the selected layout (if you leave this out, the
  20. # basic form of the layout will be used):
  21. #d-i keyboard-configuration/variantcode string dvorak
  22.  
  23. ### Network configuration
  24. # Disable network configuration entirely. This is useful for cdrom
  25. # installations on non-networked devices where the network questions,
  26. # warning and long timeouts are a nuisance.
  27. d-i netcfg/enable boolean true
  28.  
  29. # netcfg will choose an interface that has link if possible. This makes it
  30. # skip displaying a list if there is more than one interface.
  31. d-i netcfg/choose_interface select auto
  32.  
  33. # To pick a particular interface instead:
  34. #d-i netcfg/choose_interface select eth1
  35.  
  36. # If you have a slow dhcp server and the installer times out waiting for
  37. # it, this might be useful.
  38. #d-i netcfg/dhcp_timeout string 60
  39.  
  40. # If you prefer to configure the network manually, uncomment this line and
  41. # the static network configuration below.
  42. #d-i netcfg/disable_autoconfig boolean true
  43.  
  44. # If you want the preconfiguration file to work on systems both with and
  45. # without a dhcp server, uncomment these lines and the static network
  46. # configuration below.
  47. #d-i netcfg/dhcp_failed note
  48. #d-i netcfg/dhcp_options select Configure network manually
  49.  
  50. # Static network configuration.
  51. #d-i netcfg/get_nameservers string 10.xxx.xxx.xxx 10.xxx.xxx.xxx
  52. #d-i netcfg/get_ipaddress string 192.168.1.42
  53. #d-i netcfg/get_netmask string 255.255.255.0
  54. #d-i netcfg/get_gateway string 192.168.1.1
  55. #d-i netcfg/confirm_static boolean true
  56.  
  57. # Any hostname and domain names assigned from dhcp take precedence over
  58. # values set here. However, setting the values still prevents the questions
  59. # from being shown, even if values come from dhcp.
  60. #d-i netcfg/get_hostname string unassigned-hostname
  61. d-i netcfg/get_domain string xxxxxx.xxxx.xxx
  62.  
  63. # Disable that annoying WEP key dialog.
  64. d-i netcfg/wireless_wep string
  65. # The wacky dhcp hostname that some ISPs use as a password of sorts.
  66. #d-i netcfg/dhcp_hostname string radish
  67.  
  68. # If non-free firmware is needed for the network or other hardware, you can
  69. # configure the installer to always try to load it, without prompting. Or
  70. # change to false to disable asking.
  71. #d-i hw-detect/load_firmware boolean true
  72.  
  73. ### Network console
  74. # Use the following settings if you wish to make use of the network-console
  75. # component for remote installation over SSH. This only makes sense if you
  76. # intend to perform the remainder of the installation manually.
  77. #d-i anna/choose_modules string network-console
  78. #d-i network-console/password password r00tme
  79. #d-i network-console/password-again password r00tme
  80.  
  81. ### Mirror settings
  82. # If you select ftp, the mirror/country string does not need to be set.
  83. #d-i mirror/protocol string ftp
  84. d-i mirror/protocol string http
  85. d-i mirror/country string manual
  86. #d-i mirror/http/hostname string archive.ubuntu.com
  87. d-i mirror/http/hostname string xxx.xxxx.xxxx.xxxx
  88. #d-i mirror/http/directory string /ubuntu
  89. d-i mirror/http/directory string /pub/ubuntu
  90. d-i mirror/http/proxy string
  91.  
  92. # Alternatively: by default, the installer uses CC.archive.ubuntu.com where
  93. # CC is the ISO-3166-2 code for the selected country. You can preseed this
  94. # so that it does so without asking.
  95. #d-i mirror/http/mirror select CC.archive.ubuntu.com
  96.  
  97. # Suite to install.
  98. #d-i mirror/suite string squeeze
  99. d-i mirror/suite string precise
  100. # Suite to use for loading installer components (optional).
  101. d-i mirror/udeb/suite string precise
  102. # Components to use for loading installer components (optional).
  103. #d-i mirror/udeb/components multiselect main, restricted
  104. d-i mirror/udeb/components multiselect main, restricted, multiverse, universe
  105.  
  106. ### Clock and time zone setup
  107. # Controls whether or not the hardware clock is set to UTC.
  108. d-i clock-setup/utc boolean true
  109.  
  110. # You may set this to any valid setting for $TZ; see the contents of
  111. # /usr/share/zoneinfo/ for valid values.
  112. d-i time/zone string US/Eastern
  113.  
  114. # Controls whether to use NTP to set the clock during the install
  115. d-i clock-setup/ntp boolean true
  116. # NTP server to use. The default is almost always fine here.
  117. #d-i clock-setup/ntp-server string ntp.example.com
  118. d-i clock-setup/ntp-server string ntp1.xxxxxx.xxx
  119.  
  120. ### Partitioning
  121. ## Partitioning example
  122. # If the system has free space you can choose to only partition that space.
  123. # This is only honoured if partman-auto/method (below) is not set.
  124. # Alternatives: custom, some_device, some_device_crypto, some_device_lvm.
  125. #d-i partman-auto/init_automatically_partition select biggest_free
  126.  
  127. # Alternatively, you may specify a disk to partition. If the system has only
  128. # one disk the installer will default to using that, but otherwise the device
  129. # name must be given in traditional, non-devfs format (so e.g. /dev/hda or
  130. # /dev/sda, and not e.g. /dev/discs/disc0/disc).
  131. # For example, to use the first SCSI/SATA hard disk:
  132. d-i partman-auto/disk string /dev/sdaa
  133. # In addition, you'll need to specify the method to use.
  134. # The presently available methods are:
  135. # - regular: use the usual partition types for your architecture
  136. # - lvm: use LVM to partition the disk
  137. # - crypto: use LVM within an encrypted partition
  138. d-i partman-auto/method string lvm
  139.  
  140. # If one of the disks that are going to be automatically partitioned
  141. # contains an old LVM configuration, the user will normally receive a
  142. # warning. This can be preseeded away...
  143. d-i partman-lvm/device_remove_lvm boolean true
  144. # The same applies to pre-existing software RAID array:
  145. d-i partman-md/device_remove_md boolean true
  146. # And the same goes for the confirmation to write the lvm partitions.
  147. d-i partman-lvm/confirm boolean true
  148.  
  149. # For LVM partitioning, you can select how much of the volume group to use
  150. # for logical volumes.
  151. d-i partman-auto-lvm/guided_size string max
  152. #d-i partman-auto-lvm/guided_size string 10GB
  153. #d-i partman-auto-lvm/guided_size string 50%
  154.  
  155. # You can choose one of the three predefined partitioning recipes:
  156. # - atomic: all files in one partition
  157. # - home: separate /home partition
  158. # - multi: separate /home, /usr, /var, and /tmp partitions
  159. d-i partman-auto/choose_recipe select atomic
  160.  
  161. # Or provide a recipe of your own...
  162. # If you have a way to get a recipe file into the d-i environment, you can
  163. # just point at it.
  164. #d-i partman-auto/expert_recipe_file string /hd-media/recipe
  165.  
  166. # If not, you can put an entire recipe into the preconfiguration file in one
  167. # (logical) line. This example creates a small /boot partition, suitable
  168. # swap, and uses the rest of the space for the root partition:
  169. #d-i partman-auto/expert_recipe string \
  170. # boot-root :: \
  171. # 40 50 100 ext3 \
  172. # $primary{ } $bootable{ } \
  173. # method{ format } format{ } \
  174. # use_filesystem{ } filesystem{ ext3 } \
  175. # mountpoint{ /boot } \
  176. # . \
  177. # 500 10000 1000000000 ext3 \
  178. # method{ format } format{ } \
  179. # use_filesystem{ } filesystem{ ext3 } \
  180. # mountpoint{ / } \
  181. # . \
  182. # 64 512 300% linux-swap \
  183. # method{ swap } format{ } \
  184. # .
  185.  
  186. # If you just want to change the default filesystem from ext3 to something
  187. # else, you can do that without providing a full recipe.
  188. d-i partman/default_filesystem string ext4
  189.  
  190. # The full recipe format is documented in the file partman-auto-recipe.txt
  191. # included in the 'debian-installer' package or available from D-I source
  192. # repository. This also documents how to specify settings such as file
  193. # system labels, volume group names and which physical devices to include
  194. # in a volume group.
  195.  
  196. # This makes partman automatically partition without confirmation, provided
  197. # that you told it what to do using one of the methods above.
  198. d-i partman-partitioning/confirm_write_new_label boolean true
  199. #d-i partman/choose_partition select Finish partitioning and write changes to disk
  200. d-i partman/choose_partition select finish
  201. d-i partman/confirm boolean true
  202. d-i partman/confirm_nooverwrite boolean true
  203.  
  204. ## Partitioning using RAID
  205. # The method should be set to "raid".
  206. #d-i partman-auto/method string raid
  207. # Specify the disks to be partitioned. They will all get the same layout,
  208. # so this will only work if the disks are the same size.
  209. #d-i partman-auto/disk string /dev/sda /dev/sdb
  210.  
  211. # Next you need to specify the physical partitions that will be used.
  212. #d-i partman-auto/expert_recipe string \
  213. # multiraid :: \
  214. # 1000 5000 4000 raid \
  215. # $primary{ } method{ raid } \
  216. # . \
  217. # 64 512 300% raid \
  218. # method{ raid } \
  219. # . \
  220. # 500 10000 1000000000 raid \
  221. # method{ raid } \
  222. # .
  223.  
  224. # Last you need to specify how the previously defined partitions will be
  225. # used in the RAID setup. Remember to use the correct partition numbers
  226. # for logical partitions. RAID levels 0, 1, 5, 6 and 10 are supported;
  227. # devices are separated using "#".
  228. # Parameters are:
  229. # <raidtype> <devcount> <sparecount> <fstype> <mountpoint> \
  230. # <devices> <sparedevices>
  231.  
  232. #d-i partman-auto-raid/recipe string \
  233. # 1 2 0 ext3 / \
  234. # /dev/sda1#/dev/sdb1 \
  235. # . \
  236. # 1 2 0 swap - \
  237. # /dev/sda5#/dev/sdb5 \
  238. # . \
  239. # 0 2 0 ext3 /home \
  240. # /dev/sda6#/dev/sdb6 \
  241. # .
  242.  
  243. # For additional information see the file partman-auto-raid-recipe.txt
  244. # included in the 'debian-installer' package or available from D-I source
  245. # repository.
  246.  
  247. # This makes partman automatically partition without confirmation.
  248. d-i partman-md/confirm boolean true
  249. d-i partman-partitioning/confirm_write_new_label boolean true
  250. d-i partman/choose_partition select finish
  251. d-i partman/confirm boolean true
  252. d-i partman/confirm_nooverwrite boolean true
  253.  
  254. ## Controlling how partitions are mounted
  255. # The default is to mount by UUID, but you can also choose "traditional" to
  256. # use traditional device names, or "label" to try filesystem labels before
  257. # falling back to UUIDs.
  258. #d-i partman/mount_style select uuid
  259. d-i partman/mount_style select label
  260.  
  261. ### Base system installation
  262. # Configure APT to not install recommended packages by default. Use of this
  263. # option can result in an incomplete system and should only be used by very
  264. # experienced users.
  265. #d-i base-installer/install-recommends boolean false
  266. d-i base-installer/install-recommends boolean true
  267.  
  268. # The kernel image (meta) package to be installed; "none" can be used if no
  269. # kernel is to be installed.
  270. #d-i base-installer/kernel/image string linux-generic
  271. d-i base-installer/kernel/image string linux-generic
  272.  
  273. ### Account setup
  274. # Skip creation of a root account (normal user account will be able to
  275. # use sudo). The default is false; preseed this to true if you want to set
  276. # a root password.
  277. d-i passwd/root-login boolean true
  278. # Alternatively, to skip creation of a normal user account.
  279. d-i passwd/make-user boolean false
  280.  
  281. # Root password, either in clear text
  282. #d-i passwd/root-password password r00tme
  283. #d-i passwd/root-password-again password r00tme
  284. # or encrypted using an MD5 hash.
  285. #d-i passwd/root-password-crypted password [MD5 hash]
  286. d-i passwd/root-password-crypted password xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  287.  
  288. # To create a normal user account.
  289. #d-i passwd/user-fullname string Ubuntu User
  290. #d-i passwd/username string ubuntu
  291. # Normal user's password, either in clear text
  292. #d-i passwd/user-password password insecure
  293. #d-i passwd/user-password-again password insecure
  294. # or encrypted using an MD5 hash.
  295. #d-i passwd/user-password-crypted password [MD5 hash]
  296. # Create the first user with the specified UID instead of the default.
  297. #d-i passwd/user-uid string 1010
  298. # The installer will warn about weak passwords. If you are sure you know
  299. # what you're doing and want to override it, uncomment this.
  300. #d-i user-setup/allow-password-weak boolean true
  301.  
  302. # The user account will be added to some standard initial groups. To
  303. # override that, use this.
  304. #d-i passwd/user-default-groups string audio cdrom video
  305.  
  306. # Set to true if you want to encrypt the first user's home directory.
  307. d-i user-setup/encrypt-home boolean false
  308.  
  309. ### Apt setup
  310. # You can choose to install restricted and universe software, or to install
  311. # software from the backports repository.
  312. base-config apt-setup/hostname string xxx.xxxxx.xxxxxx.xxx
  313. base-config apt-setup/directory string /pub/ubuntu
  314. d-i apt-setup/restricted boolean true
  315. d-i apt-setup/universe boolean true
  316. d-i apt-setup/backports boolean true
  317. # Uncomment this if you don't want to use a network mirror.
  318. d-i apt-setup/use_mirror boolean true
  319. # Select which update services to use; define the mirrors to be used.
  320. # Values shown below are the normal defaults.
  321. d-i apt-setup/services-select multiselect security
  322. d-i apt-setup/security_host string security.ubuntu.com
  323. d-i apt-setup/security_path string /ubuntu
  324.  
  325. # Additional repositories, local[0-9] available
  326. #d-i apt-setup/local0/repository string \
  327. # http://local.server/ubuntu squeeze main
  328. #d-i apt-setup/local0/comment string local server
  329. # Enable deb-src lines
  330. #d-i apt-setup/local0/source boolean true
  331. # URL to the public key of the local repository; you must provide a key or
  332. # apt will complain about the unauthenticated repository and so the
  333. # sources.list line will be left commented out
  334. #d-i apt-setup/local0/key string http://local.server/key
  335.  
  336. # By default the installer requires that repositories be authenticated
  337. # using a known gpg key. This setting can be used to disable that
  338. # authentication. Warning: Insecure, not recommended.
  339. #d-i debian-installer/allow_unauthenticated boolean true
  340.  
  341. ### Package selection
  342. tasksel tasksel/first multiselect ubuntu-desktop, print-server, openssh-server
  343. #tasksel tasksel/first multiselect lamp-server, print-server
  344. #tasksel tasksel/first multiselect kubuntu-desktop
  345.  
  346. # Individual additional packages to install
  347. #d-i pkgsel/include string openssh-server build-essential
  348. d-i pkgsel/include string puppet libnss-ldapd libpam-ldapd nss-updatedb libnss-db libpam-ccreds nslcd nscd vim git curl
  349.  
  350. ## Preconfig nslcd
  351. nslcd nslcd/ldap-bindpw password
  352. nslcd nslcd/ldap-starttls boolean false
  353. nslcd nslcd/ldap-reqcert select try
  354. nslcd nslcd/ldap-uris string ldaps://xxxx.xxxx.xxxxx.xxx
  355. nslcd nslcd/ldap-binddn string
  356. nslcd nslcd/ldap-base string dc=xxxxx,dc=xxxx,dc=xxx
  357.  
  358. ## Preconfig ldap-auth-config
  359. ldap-auth-config ldap-auth-config/dblogin boolean false
  360. ldap-auth-config ldap-auth-config/dbrootlogin boolean true
  361. ldap-auth-config ldap-auth-config/ldapns/base-dn string dc=xxxxx,dc=xxxx,dc=xxx
  362. ldap-auth-config ldap-auth-config/ldapns/ldap-server string ldaps://xxxx.xxxxx.xxxx.xxx
  363. ldap-auth-config ldap-auth-config/ldapns/ldap_version select 3
  364. ldap-auth-config ldap-auth-config/move-to-debconf boolean true
  365. ldap-auth-config ldap-auth-config/override boolean true
  366. ldap-auth-config ldap-auth-config/pam_password select crypt
  367.  
  368. ## Preconfig libnss-ldap
  369. libnss-ldapd libnss-ldapd/confperm boolean false
  370. libnss-ldapd libnss-ldapd/dblogin boolean false
  371. libnss-ldapd libnss-ldapd/dbrootlogin boolean true
  372. #libnss-ldap libnss-ldap/nsswitch note
  373. libnss-ldapd libnss-ldapd/nsswitch multiselect group, passwd, shadow
  374. libnss-ldapd libnss-ldapd/override boolean true
  375. libnss-ldapd libnss-ldapd/ldapns/base-dn string dc=xxxxx,dc=xxxx,dc=xxx
  376. libnss-ldapd libnss-ldapd/ldapns/ldap-server string ldaps://xxxx.xxxxx.xxxx.xxx
  377. libnss-ldapd libnss-ldapd/ldapns/ldap_version select 3
  378.  
  379. ## Preconfig libpam-ldap
  380. libpam-ldap libpam-ldap/dblogin boolean false
  381. libpam-ldap libpam-ldap/dbrootlogin boolean false
  382. libpam-ldap libpam-ldap/override boolean true
  383. libpam-ldap libpam-ldap/pam_password select crypt
  384. libpam-ldap libpam-ldap/ldapns/base-dn string dc=xxxxx,dc=xxxx,dc=xxx
  385. libpam-ldap libpam-ldap/ldapns/ldap-server string ldaps://xxxx.xxxxx.xxxx.xxx
  386. libpam-ldap libpam-ldap/ldapns/ldap_version select 3
  387. libpam-runtime libpam-runtime/profiles multiselect unix, ldap
  388.  
  389. # Whether to upgrade packages after debootstrap.
  390. # Allowed values: none, safe-upgrade, full-upgrade
  391. #d-i pkgsel/upgrade select none
  392. d-i pkgsel/upgrade select full-upgrade
  393.  
  394. # Language pack selection
  395. #d-i pkgsel/language-packs multiselect de, en, zh
  396.  
  397. # Policy for applying updates. May be "none" (no automatic updates),
  398. # "unattended-upgrades" (install security updates automatically), or
  399. # "landscape" (manage system with Landscape).
  400. #d-i pkgsel/update-policy select none
  401. d-i pkgsel/update-policy select unattended-upgrades
  402.  
  403. # Some versions of the installer can report back on what software you have
  404. # installed, and what software you use. The default is not to report back,
  405. # but sending reports helps the project determine what software is most
  406. # popular and include it on CDs.
  407. #popularity-contest popularity-contest/participate boolean false
  408.  
  409. # By default, the system's locate database will be updated after the
  410. # installer has finished installing most packages. This may take a while, so
  411. # if you don't want it, you can set this to "false" to turn it off.
  412. d-i pkgsel/updatedb boolean true
  413.  
  414. ### Boot loader installation
  415. # Grub is the default boot loader (for x86). If you want lilo installed
  416. # instead, uncomment this:
  417. #d-i grub-installer/skip boolean true
  418. # To also skip installing lilo, and install no bootloader, uncomment this
  419. # too:
  420. #d-i lilo-installer/skip boolean true
  421.  
  422. # With a few exceptions for unusual partitioning setups, GRUB 2 is now the
  423. # default. If you need GRUB Legacy for some particular reason, then
  424. # uncomment this:
  425. #d-i grub-installer/grub2_instead_of_grub_legacy boolean false
  426.  
  427. # This is fairly safe to set, it makes grub install automatically to the MBR
  428. # if no other operating system is detected on the machine.
  429. d-i grub-installer/only_debian boolean true
  430.  
  431. # This one makes grub-installer install to the MBR if it also finds some other
  432. # OS, which is less safe as it might not be able to boot that other OS.
  433. d-i grub-installer/with_other_os boolean true
  434.  
  435. # Alternatively, if you want to install to a location other than the mbr,
  436. # uncomment and edit these lines:
  437. #d-i grub-installer/only_debian boolean false
  438. #d-i grub-installer/with_other_os boolean false
  439. #d-i grub-installer/bootdev string (hd0,0)
  440. # To install grub to multiple disks:
  441. #d-i grub-installer/bootdev string (hd0,0) (hd1,0) (hd2,0)
  442.  
  443. # Optional password for grub, either in clear text
  444. #d-i grub-installer/password password r00tme
  445. #d-i grub-installer/password-again password r00tme
  446. # or encrypted using an MD5 hash, see grub-md5-crypt(8).
  447. #d-i grub-installer/password-crypted password [MD5 hash]
  448. d-i grub-installer/password-crypted password xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  449.  
  450. # Use the following option to add additional boot parameters for the
  451. # installed system (if supported by the bootloader installer).
  452. # Note: options passed to the installer will be added automatically.
  453. #d-i debian-installer/add-kernel-opts string nousb
  454.  
  455. ### Finishing up the installation
  456. # During installations from serial console, the regular virtual consoles
  457. # (VT1-VT6) are normally disabled in /etc/inittab. Uncomment the next
  458. # line to prevent this.
  459. #d-i finish-install/keep-consoles boolean true
  460.  
  461. # Avoid that last message about the install being complete.
  462. d-i finish-install/reboot_in_progress note
  463.  
  464. # This will prevent the installer from ejecting the CD during the reboot,
  465. # which is useful in some situations.
  466. #d-i cdrom-detect/eject boolean false
  467.  
  468. # This is how to make the installer shutdown when finished, but not
  469. # reboot into the installed system.
  470. #d-i debian-installer/exit/halt boolean true
  471. # This will power off the machine instead of just halting it.
  472. #d-i debian-installer/exit/poweroff boolean true
  473.  
  474. ### X configuration
  475. # X can detect the right driver for some cards, but if you're preseeding,
  476. # you override whatever it chooses. Still, vesa will work most places.
  477. #xserver-xorg xserver-xorg/config/device/driver select vesa
  478.  
  479. # A caveat with mouse autodetection is that if it fails, X will retry it
  480. # over and over. So if it's preseeded to be done, there is a possibility of
  481. # an infinite loop if the mouse is not autodetected.
  482. #xserver-xorg xserver-xorg/autodetect_mouse boolean true
  483.  
  484. # Monitor autodetection is recommended.
  485. xserver-xorg xserver-xorg/autodetect_monitor boolean true
  486. # Uncomment if you have an LCD display.
  487. xserver-xorg xserver-xorg/config/monitor/lcd boolean true
  488. # X has three configuration paths for the monitor. Here's how to preseed
  489. # the "medium" path, which is always available. The "simple" path may not
  490. # be available, and the "advanced" path asks too many questions.
  491. xserver-xorg xserver-xorg/config/monitor/selection-method \
  492. select medium
  493. xserver-xorg xserver-xorg/config/monitor/mode-list \
  494. select 1024x768 @ 60 Hz
  495.  
  496. ### Preseeding other packages
  497. # Depending on what software you choose to install, or if things go wrong
  498. # during the installation process, it's possible that other questions may
  499. # be asked. You can preseed those too, of course. To get a list of every
  500. # possible question that could be asked during an install, do an
  501. # installation, and then run these commands:
  502. # debconf-get-selections --installer > file
  503. # debconf-get-selections >> file
  504.  
  505.  
  506. #### Advanced options
  507. ### Running custom commands during the installation
  508. # d-i preseeding is inherently not secure. Nothing in the installer checks
  509. # for attempts at buffer overflows or other exploits of the values of a
  510. # preconfiguration file like this one. Only use preconfiguration files from
  511. # trusted locations! To drive that home, and because it's generally useful,
  512. # here's a way to run any shell command you'd like inside the installer,
  513. # automatically.
  514.  
  515. # This first command is run as early as possible, just after
  516. # preseeding is read.
  517. #d-i preseed/early_command string anna-install some-udeb
  518. # This command is run immediately before the partitioner starts. It may be
  519. # useful to apply dynamic partitioner preseeding that depends on the state
  520. # of the disks (which may not be visible when preseed/early_command runs).
  521. #d-i partman/early_command \
  522. # string debconf-set partman-auto/disk "$(list-devices disk | head -n1)"
  523. # This command is run just before the install finishes, but when there is
  524. # still a usable /target directory. You can chroot to /target and use it
  525. # directly, or use the apt-install and in-target commands to easily install
  526. # packages and run commands in the target system.
  527. #d-i preseed/late_command string apt-install zsh; in-target chsh -s /bin/zsh
  528.  
  529. ## Register with Puppetmaster
  530. #d-i preseed/late_command string cp /cdrom/preseed/firstboot /target/root/firstboot; cp /cdrom/preseed/postinstall /target/tmp/postinstall chroot /target sh -c "/bin/sh -x /tmp/postinstall"
  531. d-i preseed/late_command string chroot /target sh -c "/usr/bin/curl -o /tmp/postinstall http://lattice.xxxxx.xxxx.xxx/pub/ubuntu/postinstall && /bin/sh -x /tmp/postinstall"
  532. #d-i preseed/late_command string chroot /target; mount /proc; /usr/sbin/puppetd --server puppet.xxxxx.xxxx.xxx --waitforcert 60 --test
  533. #d-i preseed/late_command string in-target sed -i '/127.0.1.1/ a 10.xxx.xxx.xxx puppet.xxxxx.xxxx.xxx puppet' /etc/hosts; in-target sed -i 's/DAEMON_OPTS="-w 0"/DAEMON_OPTS="--server puppet.xxxxx.xxxx.xxx"/' /etc/init.d/puppet; in-target sed -i 's/exit 0/sleep 30/' /etc/rc.local; in-target sed -i '$a /etc/init.d/puppet start' /etc/rc.local; in-target sed -i '$a exit 0' /etc/rc.local
  534. #d-i preseed/late_command string sed -i '/127.0.1.1/ a 10.xxx.xxx.xxx puppet.xxxxx.xxxx.xxx puppet' /target/etc/hosts; sed -i 's/DAEMON_OPTS="-w 0"/DAEMON_OPTS="--server puppet.xxxxx.xxxx.xxx"/' /target/etc/init.d/puppet; sed -i 's/exit 0/sleep 30/' /target/etc/rc.local; sed -i '$a /etc/init.d/puppet start' /target/etc/rc.local; sed -i '$a exit 0' /target/etc/rc.local
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement