Skip to main content

Molecule OpenStack Plugin

PyPI Package Python Black Code Style Ansible Code of Conduct Ansible mailing lists Repository License

Molecule OpenStack is designed to allow use of OpenStack Clouds for provisioning test resources.

Please note that this driver is currently in its early stage of development.

Installation and Usage

Install molecule-openstack and pre-requisites:

pip install molecule-openstack ansible openstacksdk

Create a new role with molecule using the openstack driver:

molecule init role <role_name> -d openstack

Configure <role_name>/molecule/default/molecule.yaml with required parameters based on your openstack cloud. A simple config is:

dependency:
   name: galaxy
driver:
   name: openstack
platforms:
- name: molecule-foo
   image: "ubuntu"
   flavor: "m1.medium"
   network: "private"
   fip_pool: "public"
   ssh_user: "ubuntu"
provisioner:
   name: ansible
verifier:
   name: ansible

Argument fip_pool in only required when network is not an external network. Instead of configuring <role_name>/molecule/default/molecule.yaml the following environment variables can be exported:

export MOLECULE_OPENSTACK_IMAGE=ubuntu
export MOLECULE_OPENSTACK_FLAVOR=m1.medium
export MOLECULE_OPENSTACK_NETWORK=private
export MOLECULE_OPENSTACK_FIP_POOL=public
export MOLECULE_OPENSTACK_SSH_USER=ubuntu

After this molecule can be run from the base-dir of the role:

source ~/.openrc
molecule test

Get Involved

License

The MIT License.

The logo is licensed under the Creative Commons NoDerivatives 4.0 License.

If you have some other use in mind, contact us.

Metadata

Release files for molecule-openstack 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for molecule-openstack 0.3
File Size Uploaded
molecule-openstack-0.3.tar.gz 15.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for molecule-openstack 0.3
File Interpreter ABI Platform
molecule_openstack-0.3-py3-none-any.whl Python 3 none any Details

Total release size: 28.5 kB

Release files / molecule-openstack-0.3.tar.gz

Download URL molecule-openstack-0.3.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2010b60ab576957b6a4994e4aea58f7093fee1a0ce4a93c8fb2a4cde64004a9b
BLAKE2b-256 checksum
How to use checksums
2976b6d1428c1c1923e99ba4428776e6ecf85748b9dbc991f2d7cb2ae627b995
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.7

Release files / molecule_openstack-0.3-py3-none-any.whl

Download URL molecule_openstack-0.3-py3-none-any.whl
Size 13.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c85e2d7586ecb48ae8290d07281385005a5817c413135bcdd49c8d797e66514a
BLAKE2b-256 checksum
How to use checksums
d331f9f06f9069f47cb7e626ce4c6f766c8faa04b97d7c791d27b6c50545e431
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.7

Release history Release notifications | RSS feed

This release

0.3 This release

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page