release: version 1.0.0
This commit is contained in:
parent
d464a14b9a
commit
d7242cd829
12 changed files with 455 additions and 0 deletions
molecule/default
12
molecule/default/converge.yml
Normal file
12
molecule/default/converge.yml
Normal 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
|
22
molecule/default/molecule.yml
Normal file
22
molecule/default/molecule.yml
Normal 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
|
18
molecule/default/tests/test_default.py
Normal file
18
molecule/default/tests/test_default.py
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue