From e330de0e09a5ce8a1f298e112bc36651eaa3d7cd Mon Sep 17 00:00:00 2001 From: Xinliang Liu Date: Wed, 27 Jun 2018 11:03:34 +0800 Subject: [PATCH] Use debian-security mirror debian-security has been mirrored by change[1], so we can use it now. [1] https://review.openstack.org/#/c/577316/ Change-Id: I2c88306564b04db3c6e061ab52545c5a63665e53 --- .../templates/etc/apt/sources.list.d/security.list.j2 | 4 ++-- roles/configure-mirrors/vars/Debian.yaml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/roles/configure-mirrors/templates/etc/apt/sources.list.d/security.list.j2 b/roles/configure-mirrors/templates/etc/apt/sources.list.d/security.list.j2 index 2e6427614..9f85d5973 100644 --- a/roles/configure-mirrors/templates/etc/apt/sources.list.d/security.list.j2 +++ b/roles/configure-mirrors/templates/etc/apt/sources.list.d/security.list.j2 @@ -1,3 +1,3 @@ # {{ ansible_managed }} -deb http://security.debian.org/ {{ ansible_distribution_release }}/updates main -deb-src http://security.debian.org/ {{ ansible_distribution_release }}/updates main +deb {{ security_mirror }} {{ ansible_distribution_release }} main +deb-src {{ security_mirror }} {{ ansible_distribution_release }} main diff --git a/roles/configure-mirrors/vars/Debian.yaml b/roles/configure-mirrors/vars/Debian.yaml index e4da29a79..37406c126 100644 --- a/roles/configure-mirrors/vars/Debian.yaml +++ b/roles/configure-mirrors/vars/Debian.yaml @@ -1 +1,2 @@ package_mirror: "http://{{ mirror_fqdn }}/{{ ansible_distribution | lower }}" +security_mirror: "http://{{ mirror_fqdn }}/{{ ansible_distribution | lower }}-security"