bootloader --location=mbr # Use text install text skipx # Firewall configuration firewall --disabled # Run the Setup Agent on first boot firstboot --disable keyboard sv-latin1 lang en_US.UTF-8 #logging --level=info logging --level=debug # Use network installation #url --url=$tree #url --url=http://ftp.port80.se/ubuntu/ #url --url=http://130.238.137.100/ubuntu/ url --url=http://se.archive.ubuntu.com/ubuntu/ #url --url=http://bianca5.uppmax.uu.se/ubuntu/ #Network reboot #reboot --eject rootpw --iscrypted $1$smmjoA3e$Ya/o8jOubHy9jRT7GmliO1 selinux --disabled timezone --utc Europe/Stockholm install services --disabled="atd,auditd,cgred,cups,kdump,netfs,postfix,nfs,nfslock,restorecond,rpcbind,rpcgssd,rpcidmapd,rpcsvcgssd,vsftpd" --enabled="crond,ksm,ksmtuned,ntpd,rsyslogd,sshd,sysstat" ## Network information (see pre_install_network_config) %include /tmp/pre_install_network_config # Disk partitioning information # autopart # Inkludera text filer som jag skapat tidigare i pre %include /tmp/pre_partitiontable # Ubuntu Kickstart Syntax: Use an option only available via preseed to tell # Ubuntu's installer not to make a non-root user during installation preseed passwd/make-user boolean false # Allow weak passwords # preseed user-setup/allow-password-weak boolean true # Ubuntu Kickstart Syntax: Check "Install any security updates automatically" #preseed pkgsel/update-policy select unattended-upgrades # Setting ntp preseed values does not seem to work #preseed clock-setup/ntp boolean true #preseed clock-setup/ntp-server string 172.16.0.1 # This line will contact archive./ubuntu #preseed apt-setup/security_host string archive/ubuntu # Use Xenial LTS kernel #preseed base-installer/kernel/image string linux-generic-lts-trusty preseed base-installer/kernel/image string linux-server preseed base-installer/kernel/override-image string linux-server #preseed base-installer/install-recommends boolean false #preseed pkgsel/install-language-support boolean false %pre # Running pre triggers $SNIPPET('kickstart_start') #\$SNIPPET('pre_install_network_config') $SNIPPET('setup_local_storage') %packages $SNIPPET('deb_packages') %post --nochroot #\$SNIPPET('post_install_network_config_deb') $SNIPPET('ubuntu_fix_grub') %post echo "# Running Post Configuration #" $SNIPPET('ansible_ssh') $SNIPPET('ubuntu_local_repos') $SNIPPET('uppmax/setup_puppet') $SNIPPET('uppmax/puppet_setup_ssh') $SNIPPET('uppmax/puppet_setup_ntp') #\$SNIPPET('post_install_network_config') # fix a bug when I need to rewrite /etc/interfaces #$SNIPPET('post_install_network_config_deb') #\$SNIPPET('late_apt_repo_config') # Tell cobbler that we are done with installation $SNIPPET('kickstart_done')