diff options
Diffstat (limited to 'roles/netinstall')
-rw-r--r-- | roles/netinstall/templates/debian.preseed.cfg.j2 (renamed from roles/netinstall/files/debian.preseed.cfg) | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/roles/netinstall/files/debian.preseed.cfg b/roles/netinstall/templates/debian.preseed.cfg.j2 index 72fb617..c01f4e9 100644 --- a/roles/netinstall/files/debian.preseed.cfg +++ b/roles/netinstall/templates/debian.preseed.cfg.j2 @@ -6,7 +6,7 @@ ## Example: https://d-i.debian.org/manual/example-preseed.txt ## Guide: https://d-i.debian.org/manual/en.amd64/apb.html ## -## 2017-06-13 +## 2017-06-14 ## ### Localization @@ -107,7 +107,7 @@ d-i hw-detect/load_firmware boolean false # If you select ftp, the mirror/country string does not need to be set. #d-i mirror/protocol string ftp d-i mirror/country string manual -d-i mirror/http/hostname string ftp.sjtu.edu.cn +d-i mirror/http/hostname string {{ apt_mirror }} d-i mirror/http/directory string /debian d-i mirror/http/proxy string @@ -124,17 +124,17 @@ d-i mirror/http/proxy string #d-i passwd/make-user boolean false # Root password, either in clear text -d-i passwd/root-password password debian@1101 -d-i passwd/root-password-again password debian@1101 +d-i passwd/root-password password {{ node_root_pass }} +d-i passwd/root-password-again password {{ node_root_pass }} # or encrypted using a crypt(3) hash. #d-i passwd/root-password-crypted password [crypt(3) hash] # To create a normal user account. -d-i passwd/user-fullname string Debian User -d-i passwd/username string debian +d-i passwd/user-fullname string {{ node_user_fullname }} +d-i passwd/username string {{ node_user_name }} # Normal user's password, either in clear text -d-i passwd/user-password password debian@1101 -d-i passwd/user-password-again password debian@1101 +d-i passwd/user-password password {{ node_user_pass }} +d-i passwd/user-password-again password {{ node_user_pass }} # or encrypted using a crypt(3) hash. #d-i passwd/user-password-crypted password [crypt(3) hash] # Create the first user with the specified UID instead of the default. @@ -311,7 +311,7 @@ d-i apt-setup/contrib boolean true # Values shown below are the normal defaults. d-i apt-setup/services-select multiselect security, updates #d-i apt-setup/security_host string security.debian.org -d-i apt-setup/security_host string ftp.sjtu.edu.cn +d-i apt-setup/security_host string {{ apt_security_host }} # Additional repositories, local[0-9] available #d-i apt-setup/local0/repository string \ @@ -442,4 +442,6 @@ d-i finish-install/reboot_in_progress note # directly, or use the apt-install and in-target commands to easily install # packages and run commands in the target system. #d-i preseed/late_command string apt-install zsh; in-target chsh -s /bin/zsh - +d-i preseed/late_command string \ + in-target wget -O /tmp/post-install.sh http://{{ lan_ip }}/nodes/post-install.sh ; \ + in-target /bin/sh /tmp/post-install.sh http://{{ lan_ip }}/nodes |