Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extrepo: Why not for Ubuntu, only for Debian? #2468

Open
mathieumd opened this issue Jan 18, 2024 · 2 comments
Open

extrepo: Why not for Ubuntu, only for Debian? #2468

mathieumd opened this issue Jan 18, 2024 · 2 comments
Labels
bug something is not working as expected priority: high tag: APT packages
Milestone

Comments

@mathieumd
Copy link
Contributor

I tried to run the GitLab role on an Ubuntu, but debops.extrepo was skipping due to ansible_distribution != "Debian" (defaults/main.yml#L27)

Why limiting to Debian only?

I manually installed extrepo on the machine, enabled gitlab_ce, then the role could continue.

sudo apt install extrepo
sudo extrepo enable gitlab_ce
sudo apt update

So it looks like (from my view of someone who has just discovered Extrepo!) it could be enable for Ubuntu machines too, no?

@drybjed
Copy link
Member

drybjed commented Jan 23, 2024

I was not aware that extrepo worked on Ubuntu as well. Thanks for the heads up, I'll update the condition.

@drybjed drybjed added bug something is not working as expected priority: high tag: APT packages labels Jan 23, 2024
@drybjed drybjed added this to the DebOps v3.2.0 milestone Jan 23, 2024
@mathieumd
Copy link
Contributor Author

It's worth mentioning, although obvious, that Debian APT package origin will not be the same as Ubuntu codename. For example, for GitLab installed through extrepo on an Ubuntu jammy, it's bookworm, not jammy:

lsb_release -cs
#jammy
apt-cache policy |grep gitlab-ce
#500 https://packages.gitlab.com/gitlab/gitlab-ce/debian bookworm/main amd64 Packages
#    release v=1,o=packages.gitlab.com/gitlab/gitlab-ce,a=bookworm,n=bookworm,l=gitlab-ce,c=main,b=amd64
#                                                         ^^^^^^^^   ^^^^^^^^

It must be anticipated, by example if using Unattended-Upgrades:

 unattended_upgrades__origins:
   - 'o=packages.gitlab.com/gitlab/{{gitlab_ce_ee}},n=${distro_codename},l={{gitlab_ce_ee}}'
+  - 'o=packages.gitlab.com/gitlab/{{gitlab_ce_ee}},n=bookworm,l={{gitlab_ce_ee}}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something is not working as expected priority: high tag: APT packages
Projects
None yet
Development

No branches or pull requests

2 participants