Skip to content

Commit de40351

Browse files
authored
Update Role to be used by Ansible 2.18 (#2)
1 parent 47a61ee commit de40351

File tree

11 files changed

+203
-69
lines changed

11 files changed

+203
-69
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ jobs:
1919
path: "${{ github.repository }}"
2020

2121
- name: Run 'default' tests
22-
uses: borisskert/molecule-action@v21.01.30
22+
uses: borisskert/molecule-action@v24.12.9
2323
with:
2424
arguments: test
2525

2626
- name: Run 'all-parameters' tests
27-
uses: borisskert/molecule-action@v21.01.30
27+
uses: borisskert/molecule-action@v24.12.9
2828
with:
2929
arguments: test --scenario-name all-parameters
3030

3131
- name: Run 'state-absent' tests
32-
uses: borisskert/molecule-action@v21.01.30
32+
uses: borisskert/molecule-action@v24.12.9
3333
with:
3434
arguments: test --scenario-name state-absent

README.md

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ Ansible role to install gitlab as docker service.
55
## Supported operating systems:
66

77
* Ubuntu:
8-
* 16.04 (xenial)
9-
* 18.04 (bionic)
8+
* 24.04 (noble)
9+
* 22.04 (jammy)
1010
* 20.04 (focal)
1111
* Debian
12-
* 9 (stretch)
13-
* 10 (buster)
12+
* 12 (bookworm)
13+
* 11 (bullseye)
1414

1515
## System requirements
1616

@@ -30,42 +30,42 @@ Ansible role to install gitlab as docker service.
3030

3131
## Role parameters
3232

33-
| Variable | Type | Mandatory? | Default | Description |
34-
|---------------|------|------------|---------|-----------------------|
35-
| gitlab_image_name | text | no | gitlab/gitlab-ce | Docker image name |
36-
| gitlab_image_version | text | no | 12.9.2-ce.0 | Docker image version |
37-
| gitlab_interface | ip address | no | 0.0.0.0 | Mapped network for web-interface ports |
38-
| gitlab_https_port | port | no | 443 | Mapped HTTPS port |
39-
| gitlab_http_port | port | no | 80 | Mapped HTTP port |
40-
| gitlab_ssh_port | port | no | 10022 | Mapped SSH port |
41-
| gitlab_config_volume | path | no | /srv/gitlab/config | Path to config volume |
42-
| gitlab_data_volume | path | no | /srv/gitlab/data | Path to data volume |
43-
| gitlab_log_volume | path | no | /srv/gitlab/log | Path to log volume |
44-
| gitlab_backup_volume | path | no | /srv/gitlab/backup | Path to backup volume |
45-
| gitlab_external_url | url | no | <empty> | Gitlab Url, like git.example.org |
46-
| gitlab_ssh_host | host | no | <empty> | SSH Host, like ssh.example.org |
47-
| gitlab_shell_ssh_port | host | no | <empty> | Gitlab shell SSH port, like 10022 |
48-
| gitlab_email_enabled | boolean | no | false | Is mailing enabled? |
49-
| gitlab_email_from | email address | no | <empty> | Email from address |
50-
| gitlab_email_display_name | text | no | <empty> | Email from name |
51-
| gitlab_email_reply_to | email address | no | <empty> | Reply email address |
52-
| gitlab_email_subject_suffix | text | no | <empty> | Suffix in email subject, like [GitLab] |
53-
| gitlab_smtp_address | host | no | <empty> | SMTP server host |
54-
| gitlab_smtp_port | port | no | <empty> | SMTP server port |
55-
| gitlab_smtp_user_name | text | no | <empty> | SMTP user name |
56-
| gitlab_smtp_password | text | no | <empty> | SMTP password |
57-
| gitlab_smtp_domain | text | no | <empty> | SMTP domain |
58-
| gitlab_smtp_enable_starttls_auto | boolean | no | <empty> | Is start-tls-auto enabled? |
59-
| gitlab_smtp_tls | boolean | no | <empty> | Use TLS? |
60-
| gitlab_backup_keep_time | number | no | <empty> | The duration in seconds to keep backups before they are allowed to be deleted |
61-
| gitlab_nginx_disable_hsts | boolean | no | no | If you are running your GitLab instance behind a reverse proxy you probably don't want to configure HSTS in GitLab |
62-
| gitlab_pages_enabled | boolean | no | no | Enables/Disables the Gitlab Pages feature |
63-
| gitlab_pages_port | number | no | 8081 | Defines the (internal) port used for Gitlab Pages |
64-
| gitlab_pages_external_port | number | yes | | Defines the mapped port used for Gitlab Pages |
65-
| gitlab_pages_external_url | url | yes | | Defines the URL used for Gitlab Pages |
66-
| gitlab_disable_prometheus | boolean | no | | Disable prometheus exporter |
67-
| gitlab_sidekiq_concurrency | number | no | | Setup the number of sidekiq concurrency processes |
68-
| gitlab_state | text | no | `present` | Defines whether gitlab will be installed (`present`) or uninstalled (`absent`) |
33+
| Variable | Type | Mandatory? | Default | Description |
34+
|----------------------------------|---------------|------------|--------------------|--------------------------------------------------------------------------------------------------------------------|
35+
| gitlab_image_name | text | no | gitlab/gitlab-ce | Docker image name |
36+
| gitlab_image_version | text | no | 12.9.2-ce.0 | Docker image version |
37+
| gitlab_interface | ip address | no | 0.0.0.0 | Mapped network for web-interface ports |
38+
| gitlab_https_port | port | no | 443 | Mapped HTTPS port |
39+
| gitlab_http_port | port | no | 80 | Mapped HTTP port |
40+
| gitlab_ssh_port | port | no | 10022 | Mapped SSH port |
41+
| gitlab_config_volume | path | no | /srv/gitlab/config | Path to config volume |
42+
| gitlab_data_volume | path | no | /srv/gitlab/data | Path to data volume |
43+
| gitlab_log_volume | path | no | /srv/gitlab/log | Path to log volume |
44+
| gitlab_backup_volume | path | no | /srv/gitlab/backup | Path to backup volume |
45+
| gitlab_external_url | url | no | <empty> | Gitlab Url, like git.example.org |
46+
| gitlab_ssh_host | host | no | <empty> | SSH Host, like ssh.example.org |
47+
| gitlab_shell_ssh_port | host | no | <empty> | Gitlab shell SSH port, like 10022 |
48+
| gitlab_email_enabled | boolean | no | false | Is mailing enabled? |
49+
| gitlab_email_from | email address | no | <empty> | Email from address |
50+
| gitlab_email_display_name | text | no | <empty> | Email from name |
51+
| gitlab_email_reply_to | email address | no | <empty> | Reply email address |
52+
| gitlab_email_subject_suffix | text | no | <empty> | Suffix in email subject, like [GitLab] |
53+
| gitlab_smtp_address | host | no | <empty> | SMTP server host |
54+
| gitlab_smtp_port | port | no | <empty> | SMTP server port |
55+
| gitlab_smtp_user_name | text | no | <empty> | SMTP user name |
56+
| gitlab_smtp_password | text | no | <empty> | SMTP password |
57+
| gitlab_smtp_domain | text | no | <empty> | SMTP domain |
58+
| gitlab_smtp_enable_starttls_auto | boolean | no | <empty> | Is start-tls-auto enabled? |
59+
| gitlab_smtp_tls | boolean | no | <empty> | Use TLS? |
60+
| gitlab_backup_keep_time | number | no | <empty> | The duration in seconds to keep backups before they are allowed to be deleted |
61+
| gitlab_nginx_disable_hsts | boolean | no | no | If you are running your GitLab instance behind a reverse proxy you probably don't want to configure HSTS in GitLab |
62+
| gitlab_pages_enabled | boolean | no | no | Enables/Disables the Gitlab Pages feature |
63+
| gitlab_pages_port | number | no | 8081 | Defines the (internal) port used for Gitlab Pages |
64+
| gitlab_pages_external_port | number | yes | | Defines the mapped port used for Gitlab Pages |
65+
| gitlab_pages_external_url | url | yes | | Defines the URL used for Gitlab Pages |
66+
| gitlab_disable_prometheus | boolean | no | | Disable prometheus exporter |
67+
| gitlab_sidekiq_concurrency | number | no | | Setup the number of sidekiq concurrency processes |
68+
| gitlab_state | text | no | `present` | Defines whether gitlab will be installed (`present`) or uninstalled (`absent`) |
6969

7070
## Usage
7171

molecule/all-parameters/molecule.yml

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ dependency:
33
name: galaxy
44
options:
55
role-file: ./molecule/default/requirements.yml
6+
force: true
67

78
lint: |
89
set -e
@@ -13,16 +14,44 @@ driver:
1314
name: docker
1415

1516
platforms:
16-
- name: ansible-gitlab-focal
17+
- name: docker-noble
18+
image: docker.io/borisskert/python3:noble
19+
pull: true
20+
pre_build_image: true
21+
volumes:
22+
- '/var/run/docker.sock:/var/run/docker.sock'
23+
groups:
24+
- docker
25+
- name: docker-jammy
26+
image: docker.io/borisskert/python3:jammy
27+
pull: true
28+
pre_build_image: true
29+
volumes:
30+
- '/var/run/docker.sock:/var/run/docker.sock'
31+
groups:
32+
- docker
33+
- name: docker-focal
1734
image: docker.io/borisskert/python3:focal
35+
pull: true
36+
pre_build_image: true
37+
volumes:
38+
- '/var/run/docker.sock:/var/run/docker.sock'
39+
groups:
40+
- docker
41+
42+
- name: docker-bookworm
43+
image: docker.io/borisskert/python3:bookworm
44+
pull: true
1845
pre_build_image: true
1946
volumes:
2047
- '/var/run/docker.sock:/var/run/docker.sock'
2148
groups:
2249
- docker
50+
- debian
2351

24-
- name: ansible-gitlab-buster
25-
image: docker.io/borisskert/python3:buster
52+
- name: docker-bullseye
53+
image: docker.io/borisskert/python3:bullseye
54+
pull: true
2655
pre_build_image: true
2756
volumes:
2857
- '/var/run/docker.sock:/var/run/docker.sock'

molecule/default/molecule.yml

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
dependency:
33
name: galaxy
4+
options:
5+
role-file: ./molecule/default/requirements.yml
6+
force: true
47

58
lint: |
69
set -e
@@ -11,16 +14,44 @@ driver:
1114
name: docker
1215

1316
platforms:
14-
- name: ansible-gitlab-focal
17+
- name: docker-noble
18+
image: docker.io/borisskert/python3:noble
19+
pull: true
20+
pre_build_image: true
21+
volumes:
22+
- '/var/run/docker.sock:/var/run/docker.sock'
23+
groups:
24+
- docker
25+
- name: docker-jammy
26+
image: docker.io/borisskert/python3:jammy
27+
pull: true
28+
pre_build_image: true
29+
volumes:
30+
- '/var/run/docker.sock:/var/run/docker.sock'
31+
groups:
32+
- docker
33+
- name: docker-focal
1534
image: docker.io/borisskert/python3:focal
35+
pull: true
36+
pre_build_image: true
37+
volumes:
38+
- '/var/run/docker.sock:/var/run/docker.sock'
39+
groups:
40+
- docker
41+
42+
- name: docker-bookworm
43+
image: docker.io/borisskert/python3:bookworm
44+
pull: true
1645
pre_build_image: true
1746
volumes:
1847
- '/var/run/docker.sock:/var/run/docker.sock'
1948
groups:
2049
- docker
50+
- debian
2151

22-
- name: ansible-gitlab-buster
23-
image: docker.io/borisskert/python3:buster
52+
- name: docker-bullseye
53+
image: docker.io/borisskert/python3:bullseye
54+
pull: true
2455
pre_build_image: true
2556
volumes:
2657
- '/var/run/docker.sock:/var/run/docker.sock'

molecule/default/requirements.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
- name: install-docker
33
src: https://github.com/borisskert/ansible-docker.git
44
scm: git
5-
version: v20.07.24
5+
version: v24.12.11

molecule/state-absent/molecule.yml

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ dependency:
33
name: galaxy
44
options:
55
role-file: ./molecule/default/requirements.yml
6+
force: true
67

78
lint: |
89
set -e
@@ -13,16 +14,44 @@ driver:
1314
name: docker
1415

1516
platforms:
16-
- name: ansible-gitlab-focal
17+
- name: docker-noble
18+
image: docker.io/borisskert/python3:noble
19+
pull: true
20+
pre_build_image: true
21+
volumes:
22+
- '/var/run/docker.sock:/var/run/docker.sock'
23+
groups:
24+
- docker
25+
- name: docker-jammy
26+
image: docker.io/borisskert/python3:jammy
27+
pull: true
28+
pre_build_image: true
29+
volumes:
30+
- '/var/run/docker.sock:/var/run/docker.sock'
31+
groups:
32+
- docker
33+
- name: docker-focal
1734
image: docker.io/borisskert/python3:focal
35+
pull: true
36+
pre_build_image: true
37+
volumes:
38+
- '/var/run/docker.sock:/var/run/docker.sock'
39+
groups:
40+
- docker
41+
42+
- name: docker-bookworm
43+
image: docker.io/borisskert/python3:bookworm
44+
pull: true
1845
pre_build_image: true
1946
volumes:
2047
- '/var/run/docker.sock:/var/run/docker.sock'
2148
groups:
2249
- docker
50+
- debian
2351

24-
- name: ansible-gitlab-buster
25-
image: docker.io/borisskert/python3:buster
52+
- name: docker-bullseye
53+
image: docker.io/borisskert/python3:bullseye
54+
pull: true
2655
pre_build_image: true
2756
volumes:
2857
- '/var/run/docker.sock:/var/run/docker.sock'

molecule/vagrant-all-parameters/molecule.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,34 @@ dependency:
33
name: galaxy
44
options:
55
role-file: ./molecule/default/requirements.yml
6+
force: true
67

78
driver:
89
name: vagrant
910
provider:
1011
name: libvirt
1112

1213
platforms:
14+
- name: ansible-gitlab-noble
15+
box: cloud-image/ubuntu-24.04
16+
memory: 4096
17+
cpus: 2
18+
- name: ansible-gitlab-jammy
19+
box: cloud-image/ubuntu-22.04
20+
memory: 4096
21+
cpus: 2
1322
- name: ansible-gitlab-focal
14-
box: generic/ubuntu2004
23+
box: cloud-image/ubuntu-20.04
1524
memory: 4096
1625
cpus: 2
17-
- name: ansible-gitlab-buster
18-
box: generic/debian10
26+
- name: ansible-gitlab-bookworm
27+
box: cloud-image/debian-12
28+
memory: 4096
29+
cpus: 2
30+
groups:
31+
- debian
32+
- name: ansible-gitlab-bullseye
33+
box: cloud-image/debian-11
1934
memory: 4096
2035
cpus: 2
2136
groups:

molecule/vagrant-state-absent/molecule.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,34 @@ dependency:
33
name: galaxy
44
options:
55
role-file: ./molecule/default/requirements.yml
6+
force: true
67

78
driver:
89
name: vagrant
910
provider:
1011
name: libvirt
1112

1213
platforms:
14+
- name: ansible-gitlab-noble
15+
box: cloud-image/ubuntu-24.04
16+
memory: 4096
17+
cpus: 2
18+
- name: ansible-gitlab-jammy
19+
box: cloud-image/ubuntu-22.04
20+
memory: 4096
21+
cpus: 2
1322
- name: ansible-gitlab-focal
14-
box: generic/ubuntu2004
23+
box: cloud-image/ubuntu-20.04
1524
memory: 4096
1625
cpus: 2
17-
- name: ansible-gitlab-buster
18-
box: generic/debian10
26+
- name: ansible-gitlab-bookworm
27+
box: cloud-image/debian-12
28+
memory: 4096
29+
cpus: 2
30+
groups:
31+
- debian
32+
- name: ansible-gitlab-bullseye
33+
box: cloud-image/debian-11
1934
memory: 4096
2035
cpus: 2
2136
groups:

0 commit comments

Comments
 (0)