Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit 344979d

Browse files
committed
Initial commit
Most of is the one removed from molecule via: ansible/molecule@f013964
0 parents  commit 344979d

35 files changed

+1207
-0
lines changed

.flake8

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[flake8]
2+
# do not add excludes for files in repo
3+
exclude = .venv/,.tox/,dist/,build/,.eggs/
4+
format = pylint
5+
# E203: https://github.com/python/black/issues/315
6+
ignore = E741,W503,W504,H,E501,E203
7+
# 88 is official black default:
8+
max-line-length = 88

.gitignore

+105
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
MANIFEST
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
nosetests.xml
45+
coverage.xml
46+
*.cover
47+
.hypothesis/
48+
.pytest_cache/
49+
50+
# Translations
51+
*.mo
52+
*.pot
53+
54+
# Django stuff:
55+
*.log
56+
local_settings.py
57+
db.sqlite3
58+
59+
# Flask stuff:
60+
instance/
61+
.webassets-cache
62+
63+
# Scrapy stuff:
64+
.scrapy
65+
66+
# Sphinx documentation
67+
docs/_build/
68+
69+
# PyBuilder
70+
target/
71+
72+
# Jupyter Notebook
73+
.ipynb_checkpoints
74+
75+
# pyenv
76+
.python-version
77+
78+
# celery beat schedule file
79+
celerybeat-schedule
80+
81+
# SageMath parsed files
82+
*.sage.py
83+
84+
# Environments
85+
.env
86+
.venv
87+
env/
88+
venv/
89+
ENV/
90+
env.bak/
91+
venv.bak/
92+
93+
# Spyder project settings
94+
.spyderproject
95+
.spyproject
96+
97+
# Rope project settings
98+
.ropeproject
99+
100+
# mkdocs documentation
101+
/site
102+
103+
# mypy
104+
.mypy_cache/
105+
pip-wheel-metadata

.pre-commit-config.yaml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
repos:
3+
- repo: https://github.com/PyCQA/doc8.git
4+
rev: 0.8.1rc1
5+
hooks:
6+
- id: doc8
7+
- repo: https://github.com/python/black.git
8+
rev: 19.3b0
9+
hooks:
10+
- id: black
11+
language_version: python3
12+
- repo: https://github.com/pre-commit/pre-commit-hooks.git
13+
rev: v2.2.3
14+
hooks:
15+
- id: end-of-file-fixer
16+
- id: trailing-whitespace
17+
- id: mixed-line-ending
18+
- id: check-byte-order-marker
19+
- id: check-executables-have-shebangs
20+
- id: check-merge-conflict
21+
- id: debug-statements
22+
- repo: https://gitlab.com/pycqa/flake8.git
23+
rev: 3.7.8
24+
hooks:
25+
- id: flake8
26+
additional_dependencies:
27+
- flake8-black
28+
- repo: https://github.com/adrienverge/yamllint.git
29+
rev: v1.16.0
30+
hooks:
31+
- id: yamllint
32+
files: \.(yaml|yml)$
33+
types: [file, yaml]
34+
entry: yamllint --strict
35+
- repo: https://github.com/codespell-project/codespell.git
36+
rev: v1.15.0
37+
hooks:
38+
- id: codespell
39+
name: codespell
40+
description: Checks for common misspellings in text files.
41+
entry: codespell
42+
language: python
43+
types: [text]
44+
args: []
45+
require_serial: false
46+
additional_dependencies: []

.travis.yml

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
---
2+
version: ~> 1.0
3+
conditions: v1
4+
dist: xenial
5+
# Config file for automatic testing at travis-ci.org
6+
7+
services:
8+
- docker
9+
language: python
10+
11+
branches:
12+
only:
13+
- master
14+
- devel
15+
# https://stackoverflow.com/q/37972029/99834
16+
- /^(\d+!)?(\d+)(\.\d+)+([\.\-\_])?((a(lpha)?|b(eta)?|c|r(c|ev)?|pre(view)?)\d*)?(\.?(post|dev)\d*)?$/
17+
18+
cache:
19+
- pip
20+
- directories:
21+
- "node_modules"
22+
- $HOME/.cache
23+
os:
24+
- linux
25+
before_install:
26+
- which tox >/dev/null || if [ -z ${VIRTUAL_ENV+x} ]; then python -m pip install --user tox tox-pyenv; else python -m pip install tox tox-pyenv; fi
27+
jobs:
28+
fast_finish: true
29+
include:
30+
- name: lint,py37,distros
31+
env: TOXENV=lint,py37,distros
32+
python: "3.7"
33+
- name: py35
34+
python: "3.5"
35+
env: TOXENV=py35
36+
- name: py36
37+
python: "3.6"
38+
env: TOXENV=py36
39+
- name: py38
40+
python: "3.8"
41+
env: TOXENV=py38
42+
- name: py27
43+
python: "2.7"
44+
env: TOXENV=py27
45+
- name: devel
46+
python: "3.7"
47+
env: TOXENV=devel
48+
- stage: deploy
49+
name: deploy
50+
if: tag IS present AND type != cron
51+
addons: {}
52+
services: []
53+
env: TOXENV=upload
54+
script:
55+
# https://github.com/travis-ci/travis-ci/issues/4190#issuecomment-353342526
56+
- while sleep 9m; do echo "=====[ $SECONDS seconds still running ]====="; done &
57+
- python -m tox
58+
- kill %1
59+
60+
env:
61+
global:
62+
- PIP_DISABLE_PIP_VERSION_CHECK=1
63+
64+
before_cache:
65+
- rm -rf $HOME/.cache/pip/log
66+
67+
addons:
68+
apt:
69+
packages:
70+
- lxc
71+
- lxc-dev
72+
- lxd
73+
- lxd-client

.yamllint

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
extends: default
2+
ignore: |
3+
*/cookiecutter/
4+
.github/workflows/
5+
.tox
6+
7+
rules:
8+
braces:
9+
max-spaces-inside: 1
10+
level: error
11+
brackets:
12+
max-spaces-inside: 1
13+
level: error
14+
document-start: disable
15+
line-length: disable

LICENSE

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
The MIT License (MIT)
3+
4+
Copyright (c) 2019 Sorin Sbarnea
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in
14+
all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
THE SOFTWARE.

MANIFEST.in

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
include LICENSE
2+
include README.rst
3+
4+
recursive-exclude * __pycache__
5+
recursive-exclude * *.py[co]

README.rst

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
***********************
2+
Molecule Vagrant Plugin
3+
***********************
4+
5+
.. image:: https://badge.fury.io/py/molecule-vagrant.svg
6+
:target: https://badge.fury.io/py/molecule-vagrant
7+
:alt: PyPI Package
8+
9+
.. image:: https://img.shields.io/travis/com/pycontribs/molecule-vagrant/master.svg?label=Linux%20builds%20%40%20Travis%20CI
10+
:target: https://travis-ci.com/pycontribs/molecule-vagrant
11+
12+
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
13+
:target: https://github.com/python/black
14+
:alt: Python Black Code Style
15+
16+
.. image:: https://img.shields.io/badge/Code%20of%20Conduct-Ansible-silver.svg
17+
:target: https://docs.ansible.com/ansible/latest/community/code_of_conduct.html
18+
:alt: Ansible Code of Conduct
19+
20+
.. image:: https://img.shields.io/badge/Mailing%20lists-Ansible-orange.svg
21+
:target: https://docs.ansible.com/ansible/latest/community/communication.html#mailing-list-information
22+
:alt: Ansible mailing lists
23+
24+
.. image:: https://img.shields.io/badge/license-MIT-brightgreen.svg
25+
:target: LICENSE
26+
:alt: Repository License
27+
28+
Molecule Vagrant is designed to allow use of Vagrant for provisioning of test
29+
resources.
30+
31+
Documentation
32+
=============
33+
34+
Read the documentation and more at https://molecule.readthedocs.io/.
35+
36+
.. _get-involved:
37+
38+
Get Involved
39+
============
40+
41+
* Join us in the ``#ansible-molecule`` channel on `Freenode`_.
42+
* Join the discussion in `molecule-users Forum`_.
43+
* Join the community working group by checking the `wiki`_.
44+
* Want to know about releases, subscribe to `ansible-announce list`_.
45+
* For the full list of Ansible email Lists, IRC channels see the
46+
`communication page`_.
47+
48+
.. _`Freenode`: https://freenode.net
49+
.. _`molecule-users Forum`: https://groups.google.com/forum/#!forum/molecule-users
50+
.. _`wiki`: https://github.com/ansible/community/wiki/Molecule
51+
.. _`ansible-announce list`: https://groups.google.com/group/ansible-announce
52+
.. _`communication page`: https://docs.ansible.com/ansible/latest/community/communication.html
53+
54+
.. _authors:
55+
56+
Authors
57+
=======
58+
59+
Molecule Vagrant Plugin was created by Sorin Sbarnea based on code from
60+
Molecule.
61+
62+
.. _license:
63+
64+
License
65+
=======
66+
67+
The `MIT`_ License.
68+
69+
.. _`MIT`: https://github.com/ansible/molecule/blob/master/LICENSE
70+
71+
The logo is licensed under the `Creative Commons NoDerivatives 4.0 License`_.
72+
73+
If you have some other use in mind, contact us.
74+
75+
.. _`Creative Commons NoDerivatives 4.0 License`: https://creativecommons.org/licenses/by-nd/4.0/

conftest.py

Whitespace-only changes.

molecule_vagrant/__init__.py

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"molecule_directory": "molecule",
3+
"role_name": "OVERRIDEN",
4+
"scenario_name": "OVERRIDEN"
5+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
*******
2+
Vagrant driver installation guide
3+
*******
4+
5+
Requirements
6+
============
7+
8+
* Vagrant
9+
* Virtualbox, Parallels, VMware Fusion, VMware Workstation or VMware Desktop
10+
11+
Install
12+
=======
13+
14+
Please refer to the `Virtual environment`_ documentation for installation best
15+
practices. If not using a virtual environment, please consider passing the
16+
widely recommended `'--user' flag`_ when invoking ``pip``.
17+
18+
.. _Virtual environment: https://virtualenv.pypa.io/en/latest/
19+
.. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
20+
21+
.. code-block:: bash
22+
23+
$ pip install 'molecule[vagrant]'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
- name: Converge
3+
hosts: all
4+
tasks:
5+
- name: "Include {{ cookiecutter.role_name }}"
6+
include_role:
7+
name: "{{ cookiecutter.role_name }}"

0 commit comments

Comments
 (0)