summaryrefslogtreecommitdiffstats
path: root/ansible/roles/add_custom_repos/templates
diff options
context:
space:
mode:
authorRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>2017-11-30 10:46:45 +0000
committerRoss Brattain <ross.b.brattain@intel.com>2017-12-22 10:44:51 +0000
commit4ba399eaf8ca3beff2dfa554f7f187e6d67b9073 (patch)
treebb4c406532bffca6ddaed054fc3d642907953807 /ansible/roles/add_custom_repos/templates
parent8578189f27e5560814cc78eb32757d2a20caa70a (diff)
Specify supported architectures for Ubuntu backports repository
Currently Trusty (Ubuntu 14.04 LTS) and Xenial (Ubuntu 16.04 LTS) doesn't have support for arch=ARM64 in backports repository: - http://archive.ubuntu.com/ubuntu/dists/xenial-backports/ - http://archive.ubuntu.com/ubuntu/dists/trusty-backports/ During the Yardstick image building process, the repository is added to the APT repository list. In order to avoid errors during the repository retrival, the available architectures must be specified [1]. [1]https://github.com/opnfv/yardstick/blob/stable/euphrates/ansible/roles/add_custom_repos/templates/sources.list.j2#L4 JIRA: YARDSTICK-874 Change-Id: I7774189fbdd7d74ff5df29526ba0da2693b3b53a Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Diffstat (limited to 'ansible/roles/add_custom_repos/templates')
-rw-r--r--ansible/roles/add_custom_repos/templates/sources.list.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/ansible/roles/add_custom_repos/templates/sources.list.j2 b/ansible/roles/add_custom_repos/templates/sources.list.j2
index af741cb10..4b50f45ce 100644
--- a/ansible/roles/add_custom_repos/templates/sources.list.j2
+++ b/ansible/roles/add_custom_repos/templates/sources.list.j2
@@ -1,5 +1,5 @@
{% if YARD_IMG_ARCH == "arm64" %}
deb [arch={{ YARD_IMG_ARCH }}] http://ports.ubuntu.com/ {{ release }}-backports main restricted universe multiverse
{% else %}
-deb http://archive.ubuntu.com/ubuntu/ {{ release }}-backports main restricted universe multiverse
+deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu/ {{ release }}-backports main restricted universe multiverse
{% endif %}