EGI-Federation / ansible-style-guide

A style guide for Ansible use in EGI
https://egi-foundation.github.io/ansible-style-guide
Apache License 2.0
18 stars 5 forks source link

Add a molecule template to cover the EGI deployed OS's #18

Open brucellino opened 6 years ago

brucellino commented 6 years ago

Short Description of the issue

The default molecule test scenario only generates a test case for the centos7 OS. We need to add other OS's in order to comply with the EGI infrastructure profile. This test coverage is required by the style guide, but can be deviated from in special cases (see #14). However, it should be opt-out, not opt-in.

Summary of proposed changes

Add a means to a generate the coverage for the role.

brucellino commented 6 years ago

It is apparently possible to generate a molecule scenario from a specific template : https://github.com/metacloud/molecule/pull/416

This requires a cookiecutter template repo ~but I can't figure out yet how it should be done.~ which is used in template.py. We need to create our own template repo which is used during the generation. More than one template can be used. An example is provided.