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

Commit 5faa3b6

Browse files
authored
feat: initial commit (#1)
1 parent 30594b6 commit 5faa3b6

File tree

19 files changed

+360
-0
lines changed

19 files changed

+360
-0
lines changed

.github/pull_request_template.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Description
2+
3+
Provide a description of the pull request.

.github/workflows/molecule.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
jobs:
3+
test:
4+
name: molecule test
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v1
8+
- name: Setup Python
9+
uses: actions/setup-python@v1
10+
with:
11+
python-version: 3.6
12+
- name: Install required dependencies
13+
run: pip install -r requirements.txt
14+
- run: molecule test --all
15+
name: Molecule Test
16+
"on":
17+
- pull_request
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
jobs:
3+
release:
4+
env:
5+
GITHUB_TOKEN: "${{ secrets.GH_TOKEN }}"
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Checkout
9+
uses: actions/checkout@v1
10+
- name: Release
11+
uses: cycjimmy/semantic-release-action@v2.1.3
12+
with:
13+
branch: master
14+
extra_plugins: |
15+
@semantic-release/changelog
16+
@semantic-release/git@8.0.0
17+
name: Release
18+
on:
19+
push:
20+
branches:
21+
- master

.gitignore

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
*.swp
2+
# Byte-compiled / optimized / DLL files
3+
__pycache__/
4+
*.py[cod]
5+
*$py.class
6+
7+
# C extensions
8+
*.so
9+
10+
# Distribution / packaging
11+
.Python
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
24+
pip-wheel-metadata/
25+
share/python-wheels/
26+
*.egg-info/
27+
.installed.cfg
28+
*.egg
29+
MANIFEST
30+
31+
# PyInstaller
32+
# Usually these files are written by a python script from a template
33+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
34+
*.manifest
35+
*.spec
36+
37+
# Installer logs
38+
pip-log.txt
39+
pip-delete-this-directory.txt
40+
41+
# Unit test / coverage reports
42+
htmlcov/
43+
.tox/
44+
.nox/
45+
.coverage
46+
.coverage.*
47+
.cache
48+
nosetests.xml
49+
coverage.xml
50+
*.cover
51+
*.py,cover
52+
.hypothesis/
53+
.pytest_cache/
54+
55+
# Translations
56+
*.mo
57+
*.pot
58+
59+
# Django stuff:
60+
*.log
61+
local_settings.py
62+
db.sqlite3
63+
db.sqlite3-journal
64+
65+
# Flask stuff:
66+
instance/
67+
.webassets-cache
68+
69+
# Scrapy stuff:
70+
.scrapy
71+
72+
# Sphinx documentation
73+
docs/_build/
74+
75+
# PyBuilder
76+
target/
77+
78+
# Jupyter Notebook
79+
.ipynb_checkpoints
80+
81+
# IPython
82+
profile_default/
83+
ipython_config.py
84+
85+
# pyenv
86+
.python-version
87+
88+
# pipenv
89+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
90+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
91+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
92+
# install all needed dependencies.
93+
#Pipfile.lock
94+
95+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
96+
__pypackages__/
97+
98+
# Celery stuff
99+
celerybeat-schedule
100+
celerybeat.pid
101+
102+
# SageMath parsed files
103+
*.sage.py
104+
105+
# Environments
106+
.env
107+
.venv
108+
env/
109+
venv/
110+
ENV/
111+
env.bak/
112+
venv.bak/
113+
114+
# Spyder project settings
115+
.spyderproject
116+
.spyproject
117+
118+
# Rope project settings
119+
.ropeproject
120+
121+
# mkdocs documentation
122+
/site
123+
124+
# mypy
125+
.mypy_cache/
126+
.dmypy.json
127+
dmypy.json
128+
129+
# Pyre type checker
130+
.pyre/

.releaserc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"plugins": [
3+
"@semantic-release/commit-analyzer",
4+
"@semantic-release/github",
5+
"@semantic-release/release-notes-generator",
6+
"@semantic-release/changelog",
7+
[
8+
"@semantic-release/git",
9+
{
10+
"assets": [
11+
"CHANGELOG.md"
12+
]
13+
}
14+
]
15+
]
16+
}

.yamllint

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
extends: default
3+
4+
rules:
5+
braces:
6+
max-spaces-inside: 1
7+
level: error
8+
brackets:
9+
max-spaces-inside: 1
10+
level: error
11+
line-length: disable
12+
truthy: disable

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
Ansible role for terraform-plugins
2+
==================================
3+
4+
An Ansible role to download Terraform plugins
5+
6+
[![GitHub Actions](https://github.com/mongodb-ansible-roles/ansible-role-terraform-plugins/workflows/Molecule%20Test/badge.svg)](https://github.com/mongodb-ansible-roles/ansible-role-terraform-plugins/actions?query=workflow%3A%22Molecule+Test%22)
7+
[![GitHub Actions](https://github.com/mongodb-ansible-roles/ansible-role-terraform-plugins/workflows/Release/badge.svg)](https://github.com/mongodb-ansible-roles/ansible-role-terraform-plugins/actions?query=workflow%3A%22Release%22)
8+
9+
Requirements
10+
------------
11+
12+
None
13+
14+
Role Variables
15+
--------------
16+
17+
| Name | Description | Type | Default | Required |
18+
|------|-------------|:----:|:-------:|:--------:|
19+
| terraform_plugins | A list of GitHub release URLs | `list(string)` | `[]` | no |
20+
21+
Dependencies
22+
------------
23+
24+
None
25+
26+
Example Playbook
27+
----------------
28+
29+
```yaml
30+
- hosts: all
31+
roles:
32+
- role: ansible-role-terraform-plugins
33+
vars:
34+
terraform_plugins:
35+
- https://github.com/gavinbunney/terraform-provider-kubectl/releases/download/v1.4.2/terraform-provider-kubectl-linux-amd64
36+
```
37+
38+
License
39+
-------
40+
41+
[Apache License](LICENSE)

defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
terraform_plugins: []

handlers/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
---

meta/main.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
galaxy_info:
3+
author: MongoDB
4+
role_name: terraform-plugins
5+
description: An Ansible role to download Terraform plugins
6+
license: Apache
7+
min_ansible_version: 2.8
8+
platforms:
9+
- name: ubuntu
10+
versions:
11+
- bionic
12+
- trusty
13+
galaxy_tags:
14+
- terraform
15+
- plugins

0 commit comments

Comments
 (0)