From 2a9dc352f9d0caac4a28c05cc801a004182e960e Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Thu, 15 Jun 2017 13:02:47 +0800 Subject: Use the same mirror for security updates --- group_vars/master | 4 +--- roles/netinstall/templates/debian.preseed.cfg.j2 | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/group_vars/master b/group_vars/master index d5084e5..fae6302 100644 --- a/group_vars/master +++ b/group_vars/master @@ -29,9 +29,7 @@ lan_netmask: 255.255.255.0 tftp_root: /srv/tftp -# Mirror from where to install packages +# Mirror from where to install packages (HTTP), and security updates. apt_mirror: ftp.sjtu.edu.cn -# Source for the security updates -apt_security_host: ftp.sjtu.edu.cn # vim: set ft=yaml sw=2: diff --git a/roles/netinstall/templates/debian.preseed.cfg.j2 b/roles/netinstall/templates/debian.preseed.cfg.j2 index c01f4e9..30c3e53 100644 --- a/roles/netinstall/templates/debian.preseed.cfg.j2 +++ b/roles/netinstall/templates/debian.preseed.cfg.j2 @@ -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 {{ apt_security_host }} +d-i apt-setup/security_host string {{ apt_mirror }} # Additional repositories, local[0-9] available #d-i apt-setup/local0/repository string \ -- cgit v1.2.2