Skip to content

Commit 468bf5a

Browse files
committed
fix: amd64 vs arm64 sources for multiverse/universe
1 parent 29cc18d commit 468bf5a

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

sift/repos/ubuntu-multiverse.sls

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1+
{%- set repo_url = "http://archive.ubuntu.com/ubuntu/ " %}
2+
{%- if grains["osarch"] == "aarch64" or grains["osarch"] == "arm64" -%}
3+
{%- set repo_url = "http://ports.ubuntu.com/ubuntu-ports/" -%}
4+
{%- endif %}
5+
16
sift-multiverse-repo:
27
pkgrepo.managed:
3-
- name: deb http://ports.ubuntu.com/ubuntu-ports/ {{ grains['lsb_distrib_codename'] }} multiverse
8+
- humanname: ubuntu-multiverse
9+
- name: deb {{ repo_url }} {{ grains['lsb_distrib_codename'] }} multiverse
410
- refresh_db: true
511

612
sift-multiverse-repo-security:
713
pkgrepo.managed:
8-
- name: deb http://ports.ubuntu.com/ubuntu-ports/ {{ grains['lsb_distrib_codename'] }}-security multiverse
14+
- humanname: ubuntu-multiverse-security
15+
- name: deb {{ repo_url }} {{ grains['lsb_distrib_codename'] }}-security multiverse
916
- refresh_db: true
1017

sift/repos/ubuntu-universe.sls

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1+
{%- set repo_url = "http://archive.ubuntu.com/ubuntu/ " %}
2+
{%- if grains["osarch"] == "aarch64" or grains["osarch"] == "arm64" -%}
3+
{%- set repo_url = "http://ports.ubuntu.com/ubuntu-ports/" -%}
4+
{%- endif %}
5+
16
sift-universe-repo:
27
pkgrepo.managed:
3-
- name: deb http://ports.ubuntu.com/ubuntu-ports/ {{ grains['lsb_distrib_codename'] }} universe
8+
- humanname: ubuntu-universe
9+
- name: deb {{ repo_url }} {{ grains['lsb_distrib_codename'] }} universe
410
- refresh_db: true

0 commit comments

Comments
 (0)