Skip to content

Commit 0cf3dbc

Browse files
committed
Enable ubuntu repos in pulp
1 parent 26762cd commit 0cf3dbc

File tree

5 files changed

+41
-22
lines changed

5 files changed

+41
-22
lines changed

etc/kayobe/apt.yml

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,22 @@
1717
# * filename: name of a file in /etc/apt/apt.conf.d/ in which to write the
1818
# configuration
1919
# Default is an empty list.
20-
#apt_config:
20+
apt_config:
21+
# NOTE: Currently the Pulp verbatim publisher does not sync translation
22+
# files, which results in apt update failing. Disable translations until this
23+
# is resolved.
24+
- content: |
25+
Acquire::Languages "none";
26+
filename: 99no-languages
2127
2228
# List of apt keys. Each item is a dict containing the following keys:
2329
# * url: URL of key
2430
# * filename: Name of a file in which to store the downloaded key. The
2531
# extension should be '.asc' for ASCII-armoured keys, or '.gpg' otherwise.
2632
# Default is an empty list.
27-
#apt_keys:
33+
apt_keys:
34+
- url: "https://download.docker.com/linux/ubuntu/gpg"
35+
filename: docker.asc
2836

2937
# A list of Apt repositories. Each item is a dict with the following keys:
3038
# * types: whitespace-separated list of repository types, e.g. deb or deb-src
@@ -39,12 +47,25 @@
3947
# * architecture: whitespace-separated list of architectures that will be used
4048
# (optional, default is unset)
4149
# Default is an empty list.
42-
#apt_repositories:
50+
apt_repositories:
51+
- url: "{{ stackhpc_repo_ubuntu_focal_url }}"
52+
suites: "{{ ansible_facts.distribution_release }} {{ ansible_facts.distribution_release }}-updates {{ ansible_facts.distribution_release }}-backports"
53+
components: main restricted universe multiverse
54+
architecture: amd64
55+
- url: "{{ stackhpc_repo_ubuntu_focal_security_url }}"
56+
suites: "{{ ansible_facts.distribution_release }}-security"
57+
components: main restricted universe multiverse
58+
architecture: amd64
59+
- url: "{{ stackhpc_repo_docker_ce_ubuntu_url }}"
60+
suites: "{{ ansible_facts.distribution_release }}"
61+
components: stable
62+
signed_by: docker.asc
63+
architecture: amd64
4364

4465
# Whether to disable repositories in /etc/apt/sources.list. This may be used
4566
# when replacing the distribution repositories via apt_repositories.
4667
# Default is false.
47-
#apt_disable_sources_list:
68+
apt_disable_sources_list: true
4869

4970
###############################################################################
5071
# Dummy variable to allow Ansible to accept this file.

etc/kayobe/kolla.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -321,16 +321,13 @@ kolla_build_blocks:
321321
-e '/\[{{ repo.tag }}\]/,/^\[/ s|^\(name.*\)|\1\nbaseurl={{ repo.url }}|' /etc/yum.repos.d/{{ repo.file }}{% if not loop.last %} &&{% endif %} \
322322
{% endfor %}
323323
{% endif %}
324-
# NOTE: Not currently syncing Ubuntu packages, since the on_demand mirror in
325-
# Ark does not work if the upstream mirror pulls packages (which it does
326-
# sometimes).
327-
# base_ubuntu_package_sources_list: |
328-
# RUN \
329-
# rm -f /etc/apt/sources.list && \
330-
# {% for repo in stackhpc_ubuntu_focal_repos %}
331-
# echo '{{ repo }}' >> /etc/apt/sources.list {% if not loop.last %} && \
332-
# {% endif %}
333-
# {% endfor %}
324+
base_ubuntu_package_sources_list: |
325+
RUN \
326+
rm -f /etc/apt/sources.list && \
327+
{% for repo in stackhpc_ubuntu_focal_repos %}
328+
echo '{{ repo }}' >> /etc/apt/sources.list {% if not loop.last %} && \
329+
{% endif %}
330+
{% endfor %}
334331
bifrost_base_header: |
335332
ADD additions-archive /
336333
grafana_plugins_install: |

etc/kayobe/pulp-repo-versions.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ stackhpc_pulp_repo_centos_stream_9_nfv_openvswitch_version: 20230302T031902
1515
stackhpc_pulp_repo_centos_stream_9_openstack_yoga_version: 20230310T163106
1616
stackhpc_pulp_repo_centos_stream_9_opstools_version: 20230301T034123
1717
stackhpc_pulp_repo_centos_stream_9_storage_ceph_pacific_version: 20230308T155704
18-
stackhpc_pulp_repo_docker_ce_ubuntu_version: 20220708T132615
18+
stackhpc_pulp_repo_docker_ce_ubuntu_version: 20230405T060337
1919
stackhpc_pulp_repo_docker_version: 20230203T025251
2020
stackhpc_pulp_repo_elasticsearch_logstash_kibana_7_x_version: 20230203T025251
2121
stackhpc_pulp_repo_epel_9_version: 20230302T031902
@@ -45,6 +45,6 @@ stackhpc_pulp_repo_rocky_9_1_crb_version: 20230228T044432
4545
stackhpc_pulp_repo_rocky_9_1_extras_version: 20230228T044432
4646
stackhpc_pulp_repo_rocky_9_1_highavailability_version: 20230228T044432
4747
stackhpc_pulp_repo_treasuredata_4_version: 20221105T035018
48-
stackhpc_pulp_repo_ubuntu_cloud_archive_version: 20220804T040153
49-
stackhpc_pulp_repo_ubuntu_focal_security_version: 20220804T040153
50-
stackhpc_pulp_repo_ubuntu_focal_version: 20220804T040153
48+
stackhpc_pulp_repo_ubuntu_cloud_archive_version: 20230411T065209
49+
stackhpc_pulp_repo_ubuntu_focal_security_version: 20230405T060337
50+
stackhpc_pulp_repo_ubuntu_focal_version: 20230405T060337

etc/kayobe/pulp.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,7 @@ stackhpc_pulp_sync_for_local_container_build: false
5151
# Debs
5252

5353
# Whether to sync Ubuntu packages.
54-
# NOTE: Not currently syncing Ubuntu packages, since the on_demand mirror in
55-
# Ark does not work if the upstream mirror pulls packages (which it does
56-
# sometimes).
57-
stackhpc_pulp_sync_ubuntu_focal: false
54+
stackhpc_pulp_sync_ubuntu_focal: "{{ os_release == 'focal' }}"
5855

5956
stackhpc_pulp_repository_deb_repos:
6057
# Base Ubuntu Focal repositories
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
features:
3+
- |
4+
Re-enable Pulp Ubuntu repositories.

0 commit comments

Comments
 (0)