Samuli Silvius | 379df9c | 2019-03-26 10:24:39 +0200 | [diff] [blame] | 1 | --- |
| 2 | dependency: |
| 3 | name: galaxy |
| 4 | driver: |
| 5 | name: docker |
| 6 | lint: |
| 7 | name: yamllint |
| 8 | platforms: |
| 9 | - name: infrastructure-server |
| 10 | image: molecule-${PREBUILD_PLATFORM_DISTRO:-centos}:${PREBUILD_DISTRO_VERSION:-centos7.6} |
| 11 | pre_build_image: true |
| 12 | privileged: true |
| 13 | command: ${MOLECULE_DOCKER_COMMAND:-""} |
Samuli Silvius | 379df9c | 2019-03-26 10:24:39 +0200 | [diff] [blame] | 14 | groups: |
| 15 | - infrastructure |
| 16 | |
| 17 | - name: kubernetes-node-1 |
| 18 | image: molecule-${PREBUILD_PLATFORM_DISTRO:-centos}:${PREBUILD_DISTRO_VERSION:-centos7.6} |
| 19 | pre_build_image: true |
| 20 | privileged: true |
| 21 | command: ${MOLECULE_DOCKER_COMMAND:-""} |
Samuli Silvius | 379df9c | 2019-03-26 10:24:39 +0200 | [diff] [blame] | 22 | groups: |
| 23 | - kubernetes |
| 24 | provisioner: |
| 25 | name: ansible |
| 26 | log: true |
| 27 | lint: |
| 28 | name: ansible-lint |
| 29 | env: |
| 30 | ANSIBLE_ROLES_PATH: ../../../../test/roles |
| 31 | ANSIBLE_LIBRARY: ../../../../library |
| 32 | inventory: |
| 33 | links: |
| 34 | group_vars: ../../../../group_vars/ |
| 35 | scenario: |
| 36 | name: default |
| 37 | test_sequence: |
| 38 | - lint |
| 39 | - cleanup |
| 40 | - destroy |
| 41 | - dependency |
| 42 | - syntax |
| 43 | - create |
| 44 | - prepare |
| 45 | - converge |
| 46 | # - idempotence |
| 47 | # --> Action: 'idempotence' |
| 48 | # ERROR: Idempotence test failed because of the following tasks: |
| 49 | # * [infrastructure-server -> localhost] => certificates : Generate an OpenSSL CSR. |
| 50 | # * [infrastructure-server -> localhost] => certificates : Generate root CA certificate |
| 51 | # * [infrastructure-server] => certificates : Upload certificates to infrastructure server |
| 52 | # * [infrastructure-server] => certificates : Copy root certificate |
| 53 | # * [infrastructure-server] => certificates : Extract root certificate |
| 54 | # * [infrastructure-server] => docker : Setup docker dns settings |
| 55 | # * [kubernetes-node-1] => certificates : Copy root certificate |
| 56 | # * [kubernetes-node-1] => certificates : Extract root certificate |
| 57 | # * [kubernetes-node-1] => certificates : Extract root certificate |
| 58 | - side_effect |
| 59 | - verify |
| 60 | - cleanup |
| 61 | - destroy |
| 62 | verifier: |
| 63 | name: testinfra |
| 64 | options: |
| 65 | verbose: true |
| 66 | lint: |
| 67 | name: flake8 |