• This repository has been archived on 06/Jan/2023
  • Stars
    star
    143
  • Rank 255,519 (Top 6 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🚧 Moved to molecule-plugins

Molecule Vagrant Plugin

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

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

Supported Platforms

This driver relies on vagrant command line which is known to be problematic to install on several platforms. We do our best to perform CI/CD testing on multiple platforms but some are disabled due to known bugs.

  • MacOS with VirtualBox - GitHub Actions
  • Fedora 32 with libvirt - Zuul
  • Ubuntu Bionic (18.04) with libvirt - Zuul
  • CentOS 8 with libvirt - Zuul DISABLED due to 1127 and 11020

Please do not file bugs for unsupported platforms. You are welcomed to create PRs that fix untested platform, as long they do not break existing ones.

Documentation

To use this plugin, you'll need to set the driver and platform variables in your molecule.yml. Here's a simple example using the fedora/32-cloud-base box:

driver:
  name: vagrant

platforms:
  - name: instance
    box: fedora/32-cloud-base
    memory: 512
    cpus: 1

Here's a full example with the libvirt provider:

driver:
  name: vagrant
  provider:
    # Can be any supported provider (virtualbox, parallels, libvirt, etc)
    # Defaults to virtualbox
    name: libvirt
  # Run vagrant up with --provision.
  # Defaults to --no-provision)
  provision: no
  # vagrant-cachier configuration
  # Defaults to 'machine'
  # Any value different from 'machine' or 'box' will disable it
  cachier: machine
  # If set to false, set VAGRANT_NO_PARALLEL to '1'
  # Defaults to true
  parallel: true
  # vagrant box to use by default
  # Defaults to 'generic/alpine316'
  default_box: 'generic/alpine316'

platforms:
  - name: instance
    # If specified, set host name to hostname, unless it's set to False and
    # the host name won't be set. In all other cases (including default) use
    # 'name' as host name.
    hostname: foo.bar.com
    # List of dictionaries mapped to `config.vm.network`
    interfaces:
      # `network_name` is the required identifier, all other keys map to
      # arguments.
      - auto_config: true
        network_name: private_network
        type: dhcp
      - network_name: private_network
        ip: 192.168.123.3
      - network_name: forwarded_port
        guest: 80
        host: 8080
    # List of raw Vagrant `config` options
    instance_raw_config_args:
      # use single quotes to avoid YAML parsing as dict due to ':'
      - 'vm.synced_folder ".", "/vagrant", type: "rsync"'
      # Run 'uname' a provisionning step **needs 'provision: true' to work**
      - 'vm.provision :shell, inline: "uname"'
    # Dictionary of `config` options. Note that string values need to be
    # explicitly enclosed in quotes.
    config_options:
      ssh.keep_alive: yes
      ssh.remote_user: 'vagrant'
      synced_folder: true
    box: fedora/32-cloud-base
    box_version: 32.20200422.0
    box_url:
    memory: 512
    cpus: 1
    # Dictionary of options passed to the provider
    provider_options:
      video_type: 'vga'
    # List of raw provider options
    provider_raw_config_args:
      - cpuset = '1-4,^3,6'

More examples may be found in the molecule scenarios directory. They're the scenarios used by the CI.

Get Involved

Authors

Molecule Vagrant Plugin was created by Sorin Sbarnea based on code from Molecule.

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.

More Repositories

1

ara

ARA Records Ansible and makes it easier to understand and troubleshoot.
Python
1,785
star
2

awesome-ansible

Awesome Ansible List
1,324
star
3

ansible-bender

ansible-playbook + buildah = a sweet container image
Python
665
star
4

ansible-consul

📡 Ansible role for Hashicorp Consul clusters
Jinja
433
star
5

ansible-vault

🔑 Ansible role for Hashicorp Vault
Jinja
346
star
6

ansible-nomad

⌚ Ansible role for Nomad
Jinja
283
star
7

ansible-build-data

Holds generated but persistent results from building the ansible community package
Python
114
star
8

toolset

❌ Deprecated, superseded by creator-ee container.
Dockerfile
106
star
9

molecule-plugins

Collection on molecule plugins
Python
88
star
10

molecule-docker

🚧 Assimilated into molecule-plugins
Python
77
star
11

antsibull

Tooling for building various things related to ansible
Python
59
star
12

molecule-podman

❗️Moved into molecule-plugins
Python
53
star
13

molecule-ec2

🚧 Migrated inside molecule-plugins
Python
51
star
14

ara-web

Stateless web client for the ARA Records Ansible API.
JavaScript
38
star
15

contrib-scripts

(archived) Old Ansible inventory & vault scripts
Python
37
star
16

antsibull-changelog

Changelog generator for ansible, ansible-base, and collections.
Python
36
star
17

molecule-libvirt

Molecule LibVirt Provider
Python
35
star
18

community-topics

Discussions for Ansible Meetings
Shell
34
star
19

ansible.content_builder

A collection to scaffold Ansible plugins.
Python
31
star
20

ansible-london-meetup

Ansible Meetup for London, UK
30
star
21

ara-collection

Collection of Ansible roles for ARA Records Ansible.
Jinja
28
star
22

molecule-hetznercloud

A molecule driver for Hetzner Cloud
Python
27
star
23

pytest-molecule

Please switch to pytest-ansible
Python
24
star
24

protogen

(Archived) Protogen :: Sample on how to write maintainable Ansible content
Makefile
22
star
25

antsibull-docs

Tooling for building Ansible documentation
Python
22
star
26

ansible-test-gh-action

A composite GitHub Action encapsulating the GitHub Actions CI/CD workflows setup necessary for testing Ansible collection repositories on GitHub
Python
20
star
27

collection_migration

DONE AND DONE: Was scripts and scenarios for migration from core code to collections
Python
19
star
28

molecule-lxd

❗️Archived due to lack of maintenance, see molecule-plugins discussions
Python
19
star
29

molecule-openstack

Molecule OpenStack Driver
Python
15
star
30

sphinx_ansible_theme

A reusable Ansible Sphinx Theme
CSS
14
star
31

molecule-vmware

Molecule VMware Driver
Python
14
star
32

community-website

Ansible Community website (WIP)
Python
14
star
33

molecule-inspec

Molecule Inspec Verifier Plugin
Python
13
star
34

molecule-kubevirt

Molecule Kubevirt Driver
Python
13
star
35

ppa

Python
12
star
36

molecule-goss

Molecule Goss Verifier
Python
12
star
37

molecule-containers

❗️Migrated into molecule-plugins
Python
12
star
38

images

Ansible container image definitions meant for ansible-test and Execution Environments
Shell
12
star
39

role2collection

Tooling to assist in migrating to collections
Python
11
star
40

pytest-ansible-units

A pytest plugin to run an ansible collection's unit tests with pytest.
Python
11
star
41

molecule-gce

🚧 Assimilated into molecule-plugins
Python
10
star
42

ansible-dresden-meetup

Ansible Dresden Meetup, located in Dresden, Germany.
CSS
10
star
43

github-docs-build

GitHub actions and workflows for building Ansible collection documentation.
Jinja
8
star
44

operator-sdk-performance-testing

Performance testing for the Kubernetes Operator SDK.
HTML
8
star
45

molecule-azure

🚧 Assimilated into molecule-plugins
Python
7
star
46

antsibull-core

Library for tooling for building various things related to ansible
Python
6
star
47

ansible-benelux-meetup

Content of the Ansible Benelux Meetup Group
Ruby
6
star
48

antsibull-docs-parser

Python library for processing Ansible documentation markup
Python
6
star
49

collection-explorer

TypeScript
5
star
50

ansible-badges

Ansible Badges will recognize contributors to the Ansible Project.
5
star
51

collection_bot

Fork of Ansibullbot for collections
Python
5
star
52

ansible-pygments

Provides Pygments highlighter for Ansible output for use in Sphinx
Python
5
star
53

molecule-digitalocean

molecule-digitalocean
Python
5
star
54

antsichaut

Antsichaut aims to automate the filling of a changelog.yaml used by antsibull-changelog
Python
4
star
55

sphinx-ansible

Python
4
star
56

ara-infra

Infrastructure management for the ARA Records Ansible project.
HTML
4
star
57

community-examples

Repository for community examples
4
star
58

stats-crawler

Primary indexer for the raw data used in the other stats reports and dashboards
R
4
star
59

project-template

A GitHub repository template for new Ansible projects
3
star
60

rss-feed-aggregator

Jinja
3
star
61

ansible-zurich-meetup

Ansible Zurich Meetup
3
star
62

katacoda-scenarios

Ansible Community training
Shell
3
star
63

galaxy-doc-builder

TypeScript
2
star
64

ansible-minneapolis-meetup

2
star
65

ansible-munich-meetup

A repository to share content for the Ansible München Meetup group.
2
star
66

antsibull-docs-ts

TypeScript library for processing Ansible documentation markup
TypeScript
2
star
67

meetup

The regular Ansible Community Meetup
1
star
68

nightly-builds

Nightly builds of ansible package. Usage: `pip install ansible ansible-base --index-url=https://ansible-community.github.io/nightly-builds/simple/ --extra-index-url=https://pypi.org/simple`
HTML
1
star
69

stats-collections

RShiny app to display statistics for the Ansible Collections
R
1
star
70

ansible-seattle-meetup

Seattle Ansible Meetup content and ideas
1
star
71

github-action-build-collection

GitHub Action for building Ansible collections
1
star
72

ansible.im

Hacking on HTML for ansible.im
HTML
1
star
73

presentations

Repository for community presentations on Ansible projects
1
star
74

ansible-montreal-meetup

Things for the Ansible Montreal meetups
1
star
75

ansible-stl-meetup

Ansible St. Louis Meetup content.
1
star
76

ansible-kolkata-meetup

A repository to share content for the Ansible Kolkata Meetup group.
HTML
1
star
77

package-test-results

Coordination for Ansible package-wide testing
Python
1
star