Zack Williams | ad45bf0 | 2020-03-04 21:37:20 -0700 | [diff] [blame] | 1 | --- |
| 2 | # {{ cookiecutter.role_name }} molecule/default/molecule.yml |
| 3 | # |
| 4 | # SPDX-FileCopyrightText: © {{ cookiecutter.year }} {{ cookiecutter.author }} <{{ cookiecutter.email }}> |
| 5 | # SPDX-License-Identifier: {{ cookiecutter.license }} |
| 6 | |
| 7 | dependency: |
| 8 | name: galaxy |
| 9 | driver: |
| 10 | name: docker |
| 11 | platforms: |
| 12 | {%- for platform, versions in cookiecutter.platforms.items() %} |
| 13 | {%- set platform = platform | lower %} |
| 14 | {%- for version in versions %} |
| 15 | {%- if not cookiecutter.molecule_privileged %} |
| 16 | - name: "{{ platform }}-{{ version }}" |
| 17 | image: "{{ platform }}:{{ version }}" |
| 18 | {%- else %}{# privileged, running custom images generated by: https://github.com/paulfantom/dockerfiles #} |
| 19 | - name: "{{ platform }}-{{ version }}-priv" |
| 20 | image: "quay.io/paulfantom/molecule-systemd:{{ platform }}-{{ version }}" |
| 21 | privileged: true |
| 22 | volumes: |
| 23 | - "/sys/fs/cgroup:/sys/fs/cgroup:ro" |
| 24 | {%- endif %} |
| 25 | {%- endfor %} |
| 26 | {%- endfor %} |
| 27 | provisioner: |
| 28 | name: ansible |
| 29 | verifier: |
| 30 | name: ansible |