Samuli Silvius | 4555057 | 2019-04-18 11:08:19 +0300 | [diff] [blame^] | 1 | --- |
| 2 | dependency: |
| 3 | name: galaxy |
| 4 | driver: |
| 5 | name: docker |
| 6 | lint: |
| 7 | name: yamllint |
| 8 | platforms: |
| 9 | - name: resource-host |
| 10 | image: molecule-${PREBUILD_PLATFORM_DISTRO:-centos}:${PREBUILD_DISTRO_VERSION:-centos7.6} |
| 11 | pre_build_image: true |
| 12 | privileged: true |
| 13 | override_command: false |
| 14 | volumes: |
| 15 | - /sys/fs/cgroup:/sys/fs/cgroup:ro |
| 16 | - ${HOME}/data:/data:rw # mount fs from host to get nfs exportfs task working |
| 17 | groups: |
| 18 | - resources |
| 19 | networks: |
| 20 | - name: resource-data |
| 21 | |
| 22 | - name: infrastructure-server |
| 23 | image: molecule-${PREBUILD_PLATFORM_DISTRO:-centos}:${PREBUILD_DISTRO_VERSION:-centos7.6} |
| 24 | pre_build_image: true |
| 25 | privileged: true |
| 26 | override_command: false |
| 27 | volumes: |
| 28 | - /sys/fs/cgroup:/sys/fs/cgroup:ro |
| 29 | groups: |
| 30 | - infrastructure |
| 31 | networks: |
| 32 | - name: resource-data |
| 33 | provisioner: |
| 34 | name: ansible |
| 35 | playbooks: |
| 36 | cleanup: ../default/cleanup.yml |
| 37 | env: |
| 38 | ANSIBLE_ROLES_PATH: ../../../../roles:../../../roles |
| 39 | inventory: |
| 40 | links: |
| 41 | group_vars: ../default/group_vars |
| 42 | lint: |
| 43 | name: ansible-lint |
| 44 | verifier: |
| 45 | name: testinfra |
| 46 | lint: |
| 47 | name: flake8 |