Skip to content

Add AlmaLinux OS 9 support for GitLab role #440

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

Merged
merged 1 commit into from
Jul 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/gitlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
fail-fast: false
matrix:
image:
- "ghcr.io/hifis-net/almalinux-systemd:9"
- "ghcr.io/hifis-net/ubuntu-systemd:22.04"
- "ghcr.io/hifis-net/ubuntu-systemd:24.04"
- "ghcr.io/hifis-net/debian-systemd:11"
Expand Down
14 changes: 14 additions & 0 deletions molecule/gitlab/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@
state: "present"
update_cache: true

# Workaround to prevent "sudo: PAM account management error" because of non-readable shadows file on AlmaLinux
- name: "Get file stats for /etc/shadow"
ansible.builtin.stat:
path: "/etc/shadow"
register: "shadow"

- name: "Fix permissions for /etc/shadow"
ansible.builtin.file:
path: "/etc/shadow"
owner: "root"
group: "{{ shadow.stat.gr_name }}"
mode: "0640"
when: "not shadow.stat.rusr"

- name: "Install depenencies for OS family Debian"
when: "ansible_facts.os_family == 'Debian'"
block:
Expand Down
1 change: 1 addition & 0 deletions roles/gitlab/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ A role to install and configure official GitLab Omnibus package.

Currently [supported platforms](meta/main.yml) are:

- AlmaLinux 9
- Debian 11 (Bullseye)
- Ubuntu 22.04 LTS (Jemmy Jellyfish)
- Ubuntu 24.04 LTS (Noble Numbat)
Expand Down
3 changes: 3 additions & 0 deletions roles/gitlab/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ galaxy_info:
- name: "Debian"
versions:
- "bullseye"
- name: "EL"
versions:
- "9"

galaxy_tags:
- "git"
Expand Down
3 changes: 3 additions & 0 deletions roles/gitlab/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
ansible.builtin.package:
name: "{{ gitlab_dependencies }}"
state: "present"
allowerasing: "{{ true if ansible_facts['os_family'] == 'RedHat' else omit }}"

- name: "Prepare Debian GitLab installation"
when: "ansible_facts.os_family == 'Debian'"
Expand Down Expand Up @@ -71,6 +72,7 @@
gpgkey:
- "{{ gitlab_gpg_key_url }}"
- "{{ gitlab_gpg_key_url }}/gitlab-{{ gitlab_edition }}-3D645A26AB9FBD22.pub.gpg"
- "{{ gitlab_gpg_key_url }}/gitlab-{{ gitlab_edition }}-CB947AD886C8E8FD.pub.gpg"
sslverify: true
sslcacert: "/etc/pki/tls/certs/ca-bundle.crt"
metadata_expire: "300"
Expand All @@ -87,6 +89,7 @@
gpgkey:
- "{{ gitlab_gpg_key_url }}"
- "{{ gitlab_gpg_key_url }}/gitlab-{{ gitlab_edition }}-3D645A26AB9FBD22.pub.gpg"
- "{{ gitlab_gpg_key_url }}/gitlab-{{ gitlab_edition }}-CB947AD886C8E8FD.pub.gpg"
sslverify: true
sslcacert: "/etc/pki/tls/certs/ca-bundle.crt"
metadata_expire: "300"
Expand Down