Molecule OpenStack Plugin :: run molecule tests on openstack
Project description
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
Join us in the #ansible-molecule channel on Freenode.
Join the discussion in molecule-users Forum.
Join the community working group by checking the wiki.
Want to know about releases, subscribe to ansible-announce list.
For the full list of Ansible email Lists, IRC channels see the communication page.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file molecule-openstack-0.3.tar.gz
.
File metadata
- Download URL: molecule-openstack-0.3.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2010b60ab576957b6a4994e4aea58f7093fee1a0ce4a93c8fb2a4cde64004a9b |
|
MD5 | 96eaeafddefd5f72a778a97ab9440d4c |
|
BLAKE2b-256 | 2976b6d1428c1c1923e99ba4428776e6ecf85748b9dbc991f2d7cb2ae627b995 |
File details
Details for the file molecule_openstack-0.3-py3-none-any.whl
.
File metadata
- Download URL: molecule_openstack-0.3-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c85e2d7586ecb48ae8290d07281385005a5817c413135bcdd49c8d797e66514a |
|
MD5 | 75e0df8276ad48686f188f306e5c7e56 |
|
BLAKE2b-256 | d331f9f06f9069f47cb7e626ce4c6f766c8faa04b97d7c791d27b6c50545e431 |