Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/glesys/molecule-driver


https://github.com/glesys/molecule-driver

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# Molecule GleSYS Plugin

Molecule driver to spin up and run tests in GleSYS Cloud servers for easy testing

# Installation and Usage

```
pip install molecule-glesys
```

Create a new role with molecule using this driver:

```
molecule init role -d molecule-glesys
```

Configure `/molecule/default/molecule.yml` with required parameters.
Sample config:

```yaml
dependency:
name: galaxy
options:
requirements-file: molecule/default/collections.yml
driver:
name: molecule-glesys
vm_username: molecule

platforms:
- name: "demo.demo-ubuntu-20-04"
template: Ubuntu 20.04 LTS (Focal Fossa)
description: "ubuntu-20-04"
datacenter: "Falkenberg"
platform: KVM
cpus: 2
memory: 2048
disk: 20

- name: "demo.demo-debian-11"
template: Debian 11 (Bullseye)
description: "debian-11"
datacenter: "Falkenberg"
platform: KVM
cpus: 2
memory: 2048
disk: 20

provisioner:
name: ansible
verifier:
name: ansible
```

# API Authentication

Use the environment variables `GLESYS_PROJECT` and `GLESYS_APIKEY` to authenticate with the GleSYS API.

```
export GLESYS_PROJECT=CL12345
export GLESYS_APIKEY=abc123foo9876
```

# License

The [MIT](LICENSE) License.