release: version 1.0.0

This commit is contained in:
Adrien Waksberg 2020-08-09 08:20:33 +02:00
parent d464a14b9a
commit d7242cd829
12 changed files with 455 additions and 0 deletions

View file

@ -0,0 +1,12 @@
---
- name: Converge
hosts: all
roles:
- ansible-role-gitlab_runner
vars:
gitlab_runner_runners:
- name: test
url: https://gitlab.example.com
token: TesT
executor: docker
state: absent

View file

@ -0,0 +1,22 @@
---
driver:
name: docker
platforms:
- name: debian10
image: nishiki/debian10:molecule
privileged: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
command: /bin/systemd
capabilities:
- SYS_ADMIN
exposed_ports:
- 22/tcp
published_ports:
- 0.0.0.0:2222:22/tcp
lint: |
set -e
yamllint .
ansible-lint
verifier:
name: testinfra

View file

@ -0,0 +1,18 @@
import testinfra.utils.ansible_runner
def test_packages(host):
package = host.package('gitlab-runner')
assert package.is_installed
def test_config_file(host):
config = host.file('/etc/gitlab-runner/config.toml')
assert config.exists
assert config.is_file
assert config.user == 'root'
assert config.group == 'root'
assert config.mode == 0o600
def test_service(host):
service = host.service('gitlab-runner')
assert service.is_running
assert service.is_enabled