Skip to content

Commit 9667500

Browse files
committed
Test gitlab role on AlmaLinux OS
Signed-off-by: Norman Ziegner <[email protected]>
1 parent 731befd commit 9667500

File tree

5 files changed

+22
-0
lines changed

5 files changed

+22
-0
lines changed

.github/workflows/gitlab.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
fail-fast: false
4646
matrix:
4747
image:
48+
- "ghcr.io/hifis-net/almalinux-systemd:9"
4849
- "ghcr.io/hifis-net/ubuntu-systemd:22.04"
4950
- "ghcr.io/hifis-net/ubuntu-systemd:24.04"
5051
- "ghcr.io/hifis-net/debian-systemd:11"

molecule/gitlab/prepare.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,20 @@
2121
state: "present"
2222
update_cache: true
2323

24+
# Workaround to prevent "sudo: PAM account management error" because of non-readable shadows file on AlmaLinux
25+
- name: "Get file stats for /etc/shadow"
26+
ansible.builtin.stat:
27+
path: "/etc/shadow"
28+
register: "shadow"
29+
30+
- name: "Fix permissions for /etc/shadow"
31+
ansible.builtin.file:
32+
path: "/etc/shadow"
33+
owner: "root"
34+
group: "{{ shadow.stat.gr_name }}"
35+
mode: "0640"
36+
when: "not shadow.stat.rusr"
37+
2438
- name: "Install depenencies for OS family Debian"
2539
when: "ansible_facts.os_family == 'Debian'"
2640
block:

roles/gitlab/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ A role to install and configure official GitLab Omnibus package.
1313

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

16+
- AlmaLinux 9
1617
- Debian 11 (Bullseye)
1718
- Ubuntu 22.04 LTS (Jemmy Jellyfish)
1819
- Ubuntu 24.04 LTS (Noble Numbat)

roles/gitlab/meta/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ galaxy_info:
2525
- name: "Debian"
2626
versions:
2727
- "bullseye"
28+
- name: "EL"
29+
versions:
30+
- "9"
2831

2932
galaxy_tags:
3033
- "git"

roles/gitlab/tasks/install.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
ansible.builtin.package:
1111
name: "{{ gitlab_dependencies }}"
1212
state: "present"
13+
allowerasing: "{{ true if ansible_facts['os_family'] == 'RedHat' else omit }}"
1314

1415
- name: "Prepare Debian GitLab installation"
1516
when: "ansible_facts.os_family == 'Debian'"
@@ -71,6 +72,7 @@
7172
gpgkey:
7273
- "{{ gitlab_gpg_key_url }}"
7374
- "{{ gitlab_gpg_key_url }}/gitlab-{{ gitlab_edition }}-3D645A26AB9FBD22.pub.gpg"
75+
- "{{ gitlab_gpg_key_url }}/gitlab-{{ gitlab_edition }}-CB947AD886C8E8FD.pub.gpg"
7476
sslverify: true
7577
sslcacert: "/etc/pki/tls/certs/ca-bundle.crt"
7678
metadata_expire: "300"
@@ -87,6 +89,7 @@
8789
gpgkey:
8890
- "{{ gitlab_gpg_key_url }}"
8991
- "{{ gitlab_gpg_key_url }}/gitlab-{{ gitlab_edition }}-3D645A26AB9FBD22.pub.gpg"
92+
- "{{ gitlab_gpg_key_url }}/gitlab-{{ gitlab_edition }}-CB947AD886C8E8FD.pub.gpg"
9093
sslverify: true
9194
sslcacert: "/etc/pki/tls/certs/ca-bundle.crt"
9295
metadata_expire: "300"

0 commit comments

Comments
 (0)