blob: 426473165721f62043df63e7a2f59d16b6d629a8 [file] [log] [blame]
Zack Williamsad45bf02020-03-04 21:37:20 -07001---
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
7dependency:
8 name: galaxy
9driver:
10 name: docker
11platforms:
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 %}
27provisioner:
28 name: ansible
29verifier:
30 name: ansible