Samuli Silvius | 9367c59 | 2019-03-22 09:33:05 +0200 | [diff] [blame] | 1 | --- |
| 2 | dependency: |
| 3 | name: galaxy |
| 4 | driver: |
| 5 | name: docker |
| 6 | lint: |
| 7 | name: yamllint |
| 8 | platforms: |
| 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 | |
| 35 | provisioner: |
| 36 | name: ansible |
| 37 | log: true |
| 38 | lint: |
| 39 | name: ansible-lint |
| 40 | env: |
| 41 | ANSIBLE_ROLES_PATH: ../../../../test/roles/ |
| 42 | scenario: |
| 43 | name: default |
| 44 | verifier: |
| 45 | name: testinfra |
| 46 | lint: |
| 47 | name: flake8 |