Skip to content

Commit

Permalink
Merge pull request #279 from stackhpc/ubuntu-docker-ce
Browse files Browse the repository at this point in the history
Separate out repos for Docker CE Ubuntu Jammy/Focal
  • Loading branch information
m-bull authored Jan 22, 2024
2 parents 364b11a + c5d3b86 commit 0b728a5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
25 changes: 20 additions & 5 deletions ansible/inventory/group_vars/all/package-repos
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,32 @@ deb_package_repos:
distribution_name: ubuntu-jammy-security-

# Third-party repositories
- name: Docker CE for Ubuntu

## Separate repositories for each distribution because
## https://github.com/pulp/pulp_deb/issues/921
- name: Docker CE for Ubuntu Focal
url: https://download.docker.com/linux/ubuntu
policy: immediate
architectures: amd64
distributions: focal
components: stable
mirror: true
mode: verbatim
base_path: docker-ce/ubuntu-focal/
short_name: docker_ce_ubuntu_focal
distribution_name: docker-ce-for-ubuntu-focal-

- name: Docker CE for Ubuntu Jammy
url: https://download.docker.com/linux/ubuntu
policy: immediate
architectures: amd64
distributions: focal jammy
distributions: jammy
components: stable
mirror: true
mode: verbatim
base_path: docker-ce/ubuntu/
short_name: docker_ce_ubuntu
distribution_name: docker-ce-for-ubuntu-
base_path: docker-ce/ubuntu-jammy/
short_name: docker_ce_ubuntu_jammy
distribution_name: docker-ce-for-ubuntu-jammy-

# Default filter string for Deb package repositories.
deb_package_repo_filter: ""
Expand Down
10 changes: 5 additions & 5 deletions ansible/validate-deb-repos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,18 @@
assert:
that:
- deb_package_repos_filtered | length == 1
- deb_package_repos_filtered[0].short_name == 'ubuntu_focal'
- deb_package_repos_filtered[0].short_name == 'ubuntu_jammy_security'
vars:
deb_package_repo_filter: ubuntu_focal$
deb_package_repo_filter: ubuntu_jammy_security$

- name: Assert that Deb package repository list can be filtered to multiple
assert:
that:
- deb_package_repos_filtered | length == 2
- deb_package_repos_filtered[0].short_name == 'ubuntu_focal'
- deb_package_repos_filtered[1].short_name == 'docker_ce_ubuntu'
- deb_package_repos_filtered[0].short_name == 'ubuntu_jammy_security'
- deb_package_repos_filtered[1].short_name == 'docker_ce_ubuntu_jammy'
vars:
deb_package_repo_filter: docker_ce_ubuntu ubuntu_focal$
deb_package_repo_filter: docker_ce_ubuntu_jammy ubuntu_jammy_security$

- name: Assert that dev package repository list is defined
assert:
Expand Down

0 comments on commit 0b728a5

Please sign in to comment.