test: add support debian 11
This commit is contained in:
parent
5a3175d750
commit
a530f03df0
6 changed files with 32 additions and 9 deletions
|
@ -11,6 +11,7 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
|
|||
- feat: add gitlab_pages_url variable
|
||||
- feat: add complex variables in config file
|
||||
- feat: add backup cron
|
||||
- test: add support debian 11
|
||||
|
||||
### Changed
|
||||
|
||||
|
|
|
@ -8,7 +8,9 @@ Install and configure a Gitlab server
|
|||
## Requirements
|
||||
|
||||
* Ansible >= 2.9
|
||||
* Debian Buster
|
||||
* Debian
|
||||
* Buster
|
||||
* Bullseye
|
||||
|
||||
## Role variables
|
||||
|
||||
|
@ -45,7 +47,7 @@ Install and configure a Gitlab server
|
|||
|
||||
* install [docker](https://docs.docker.com/engine/installation/)
|
||||
* install `python3` and `python3-pip`
|
||||
* install molecule and dependencies `pip3 install molecule 'molecule[docker]' docker ansible-lint testinfra yamllint`
|
||||
* install molecule and dependencies `pip3 install molecule molecule-docker docker ansible-lint pytest-testinfra yamllint`
|
||||
* run `molecule test`
|
||||
|
||||
## License
|
||||
|
|
|
@ -11,6 +11,7 @@ galaxy_info:
|
|||
- name: Debian
|
||||
versions:
|
||||
- buster
|
||||
- bullseye
|
||||
|
||||
galaxy_tags:
|
||||
- git
|
||||
|
|
|
@ -28,3 +28,7 @@
|
|||
ansible.builtin.file:
|
||||
path: /.dockerenv
|
||||
state: absent
|
||||
|
||||
- name: update apt cache
|
||||
ansible.builtin.apt:
|
||||
update_cache: true
|
||||
|
|
|
@ -10,13 +10,22 @@ platforms:
|
|||
command: /bin/systemd
|
||||
capabilities:
|
||||
- SYS_ADMIN
|
||||
exposed_ports:
|
||||
- 22/tcp
|
||||
published_ports:
|
||||
- 0.0.0.0:2222:22/tcp
|
||||
- name: debian11
|
||||
image: nishiki/debian11:molecule
|
||||
privileged: true
|
||||
volumes:
|
||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||
command: /bin/systemd
|
||||
capabilities:
|
||||
- SYS_ADMIN
|
||||
provisioner:
|
||||
inventory:
|
||||
host_vars:
|
||||
debian11:
|
||||
gitlab_repository: deb https://packages.gitlab.com/gitlab/gitlab-ce/debian/ buster main
|
||||
lint: |
|
||||
set -e
|
||||
yamllint .
|
||||
ansible-lint
|
||||
ansible-lint .
|
||||
verifier:
|
||||
name: testinfra
|
||||
|
|
|
@ -1,4 +1,11 @@
|
|||
---
|
||||
- name: install dependencies packages
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- cron
|
||||
- gpg
|
||||
tags: gitlab
|
||||
|
||||
- name: add gpg key
|
||||
ansible.builtin.apt_key:
|
||||
url: https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey
|
||||
|
@ -12,7 +19,6 @@
|
|||
- name: install package
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- cron
|
||||
- gitlab-ce
|
||||
tags: gitlab
|
||||
|
||||
|
@ -48,5 +54,5 @@
|
|||
weekday: '{{ gitlab_backup_cron_weekday|string }}'
|
||||
day: '{{ gitlab_backup_cron_day|string }}'
|
||||
hour: '{{ gitlab_backup_cron_hour|string }}'
|
||||
minute: '{{ gitlab_backup_cron_minute|string }}'
|
||||
minute: '{{ gitlab_backup_cron_minute|string }}'
|
||||
tags: gitlab
|
||||
|
|
Loading…
Reference in a new issue