blob: 03f40cb6b528773066b2af313be74129efbd1668 [file] [log] [blame]
Samuli Silvius9367c592019-03-22 09:33:05 +02001---
2dependency:
3 name: galaxy
4driver:
5 name: docker
6lint:
7 name: yamllint
8platforms:
9
10 - name: resource-host
11 image: molecule-${PREBUILD_PLATFORM_DISTRO:-centos}:${PREBUILD_DISTRO_VERSION:-centos7.6}
12 pre_build_image: true
13 privileged: true
14 command: ${MOLECULE_DOCKER_COMMAND:-""}
15 groups:
16 - resources
17 networks:
18 - name: resource-data
19 volumes:
20 - /sys/fs/cgroup:/sys/fs/cgroup:ro
21 # - ${HOME}/resource-data:/data:rw # mount fs from host to get nfs exportfs task working
22
23 - name: infrastructure-server
24 image: molecule-${PREBUILD_PLATFORM_DISTRO:-centos}:${PREBUILD_DISTRO_VERSION:-centos7.6}
25 pre_build_image: true
26 privileged: true
27 command: ${MOLECULE_DOCKER_COMMAND:-""}
28 groups:
29 - infrastructure
30 networks:
31 - name: resource-data
32 volumes:
33 - /sys/fs/cgroup:/sys/fs/cgroup:ro
34
35provisioner:
36 name: ansible
37 log: true
38 lint:
39 name: ansible-lint
40 env:
41 ANSIBLE_ROLES_PATH: ../../../../test/roles/
42scenario:
43 name: default
44verifier:
45 name: testinfra
46 lint:
47 name: flake8