molecule-k3d

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

MIT License

Downloads
16
Stars
7
Committers
1

molecule-k3d

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

Dependencies

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.