[MOLECULE] Fix 'certificates' setup and verifier tests
[oom/offline-installer.git] / ansible / roles / certificates / molecule / default / molecule.yml
1 ---
2 dependency:
3   name: galaxy
4 driver:
5   name: docker
6 lint: |
7   set -e
8   yamllint .
9   ansible-lint .
10   flake8
11 platforms:
12   - name: infrastructure-server
13     image: molecule-${PREBUILD_PLATFORM_DISTRO:-centos}:${PREBUILD_DISTRO_VERSION:-centos7.6}
14     pre_build_image: true
15     privileged: true
16     command: ${MOLECULE_DOCKER_COMMAND:-""}
17     groups:
18       - infrastructure
19
20   - name: kubernetes-node-1
21     image: molecule-${PREBUILD_PLATFORM_DISTRO:-centos}:${PREBUILD_DISTRO_VERSION:-centos7.6}
22     pre_build_image: true
23     privileged: true
24     command: ${MOLECULE_DOCKER_COMMAND:-""}
25     groups:
26       - kubernetes
27 provisioner:
28   name: ansible
29   log: true
30   env:
31     ANSIBLE_ROLES_PATH: ../../../../test/roles
32     ANSIBLE_LIBRARY: ../../../../library
33   inventory:
34     group_vars:
35       all:
36         certificates:
37           organization_name: MoleculeTesters
38           state_or_province_name: Poland
39           country_name: PL
40           locality_name: Krakow
41         app_data_path: /opt/moleculetestapp
42         all_simulated_hosts:
43           - molecule.sim.host1
44           - molecule.sim.host2
45       infrastructure-server:
46         cluster_ip: 1.2.3.4
47 verifier:
48   name: testinfra
49   options:
50     verbose: true