molecule-template/README.md

30 lines
1.4 KiB
Markdown
Raw Permalink Normal View History

2020-04-27 11:48:03 +00:00
# molecule-template
2020-04-27 11:35:08 +00:00
2020-04-27 11:48:03 +00:00
[![Build Status](https://drone.autonomic.zone/api/badges/autonomic-cooperative/molecule-template/status.svg)](https://drone.autonomic.zone/autonomic-cooperative/molecule-template)
2020-04-27 11:35:08 +00:00
2020-04-27 19:06:59 +00:00
A template for generating new molecule configurations with [cookiecutter](https://cookiecutter.readthedocs.io).
2020-04-27 11:37:03 +00:00
2020-04-27 11:48:03 +00:00
Features:
- Generates a ready-to-go Hetzner Cloud test configuration for a role
- Uses yamllint/ansible-lint with arguments that work specifically with our [infrastructure](https://git.autonomic.zone/autonomic-cooperative/infrastructure) setup
- Removes all unecessary configuration for the default use-case (low maintenance effort intended)
2020-04-27 11:35:08 +00:00
## Usage
2020-04-27 19:06:59 +00:00
You run this command within an existing role directory. If you're looking for
the role template, then we have that [over here](https://git.autonomic.zone/autonomic-cooperative/role-template).
2020-04-27 11:35:08 +00:00
```bash
$ pip install cookiecutter
2020-04-27 11:50:40 +00:00
$ cookiecutter https://git.autonomic.zone/autonomic-cooperative/molecule-template
2020-04-27 11:35:08 +00:00
```
2020-04-27 11:48:03 +00:00
## Arguments
- **molecule_directory**: Name of the standard Molecule role directory (default: `molecule`)
- **role_name**: Name of the role that Molecule files are embedded in (default: `autonomic.mynewrole`)
- **scenario_type**: Name of the Molecule scenario (default: `default`)
- **server_type**: Hetzner Cloud server type (default: `cx11`)
- **server_image**: Hetzner Cloud image type (default: `debian-10`)