Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/retr0h/molecule-k3d

Molecule K3D Driver allows Molecule users to test Ansible code using K3D.
https://github.com/retr0h/molecule-k3d

ansible k3d k8s kubernetes molecule molecule-driver testing

Last synced: 17 days ago
JSON representation

Molecule K3D Driver allows Molecule users to test Ansible code using K3D.

Awesome Lists containing this project

README

        

# molecule-k3d

[![Unit Test](https://github.com/retr0h/molecule-k3d/actions/workflows/unit.yml/badge.svg)](https://github.com/retr0h/molecule-k3d/actions/workflows/unit.yml)
[![Lint](https://github.com/retr0h/molecule-k3d/actions/workflows/lint.yml/badge.svg)](https://github.com/retr0h/molecule-k3d/actions/workflows/lint.yml)

molecule-k3d - Molecule k3d Driver allows Molecule users to test Ansible code using k3d.

## Dependencies

* [k3d][]

## Installing

$ pip install molecule-k3d

## Usage

$ molecule init scenario -d k3d
$ molecule test

Be sure to set the following env vars, where `$instance`, is the name
of the platform specified in `molecule.yml`.

platforms:
- name: instance
provisioner:
name: ansible
env:
K8S_AUTH_KUBECONFIG: ~/.k3d/kubeconfig-$instance.yaml
KUBECONFIG: ~/.k3d/kubeconfig-$instance.yaml

## Testing

To execute unit tests.

$ make dep
$ make test

## License

The [MIT] License.

[k3d]: https://k3d.io/
[MIT]: LICENSE