Skip to content
This repository was archived by the owner on Mar 30, 2025. It is now read-only.

Commit 5289d89

Browse files
author
staticdev
committed
Initial commit
0 parents  commit 5289d89

File tree

19 files changed

+389
-0
lines changed

19 files changed

+389
-0
lines changed

.ansible-lint

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
skip_list:
2+
- '306'
3+
- '106'

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/stale.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Configuration for probot-stale - https://github.com/probot/stale
2+
---
3+
# Number of days of inactivity before an Issue or Pull Request becomes stale
4+
daysUntilStale: 90
5+
6+
# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
7+
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
8+
daysUntilClose: 30
9+
10+
# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
11+
onlyLabels: []
12+
13+
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
14+
exemptLabels:
15+
- pinned
16+
- security
17+
- planned
18+
19+
# Set to true to ignore issues in a project (defaults to false)
20+
exemptProjects: false
21+
22+
# Set to true to ignore issues in a milestone (defaults to false)
23+
exemptMilestones: false
24+
25+
# Set to true to ignore issues with an assignee (defaults to false)
26+
exemptAssignees: false
27+
28+
# Label to use when marking as stale
29+
staleLabel: stale
30+
31+
# Limit the number of actions per hour, from 1-30. Default is 30
32+
limitPerRun: 30
33+
34+
pulls:
35+
markComment: |-
36+
This pull request has been marked 'stale' due to lack of recent activity. If there is no further activity, the PR will be closed in another 30 days. Thank you for your contribution!
37+
38+
Please read [this blog post](https://www.jeffgeerling.com/blog/2020/enabling-stale-issue-bot-on-my-github-repositories) to see the reasons why I mark pull requests as stale.
39+
40+
unmarkComment: >-
41+
This pull request is no longer marked for closure.
42+
43+
closeComment: >-
44+
This pull request has been closed due to inactivity. If you feel this is in error, please reopen the pull request or file a new PR with the relevant details.
45+
46+
issues:
47+
markComment: |-
48+
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!
49+
50+
Please read [this blog post](https://www.jeffgeerling.com/blog/2020/enabling-stale-issue-bot-on-my-github-repositories) to see the reasons why I mark issues as stale.
51+
52+
unmarkComment: >-
53+
This issue is no longer marked for closure.
54+
55+
closeComment: >-
56+
This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

.github/workflows/ci.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
name: CI
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
- main
9+
schedule:
10+
- cron: "0 7 * * 0"
11+
12+
jobs:
13+
lint:
14+
name: Lint
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Check out the repository
18+
uses: actions/checkout@v2.3.4
19+
with:
20+
fetch-depth: 2
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v2.1.4
24+
with:
25+
python-version: "3.9"
26+
27+
- name: Install test dependencies
28+
run: pip install --constraint=.github/workflows/constraints.txt yamllint ansible-lint
29+
30+
- name: Lint code
31+
run: |
32+
yamllint .
33+
ansible-lint
34+
35+
# molecule:
36+
# name: Molecule
37+
# runs-on: ubuntu-latest
38+
# strategy:
39+
# matrix:
40+
# distro:
41+
# - centos8
42+
# - centos7
43+
# - ubuntu2004
44+
# - ubuntu1804
45+
# - debian10
46+
# - debian9
47+
# - fedora31
48+
49+
# steps:
50+
# - name: Check out the repository
51+
# uses: actions/checkout@v2.3.4
52+
# with:
53+
# fetch-depth: 2
54+
55+
# - name: Set up Python
56+
# uses: actions/setup-python@v2.1.4
57+
# with:
58+
# python-version: "3.9"
59+
60+
# - name: Install test dependencies
61+
# run: pip3 install ansible molecule[docker] docker
62+
63+
# - name: Run Molecule tests
64+
# run: molecule test
65+
# env:
66+
# PY_COLORS: '1'
67+
# ANSIBLE_FORCE_COLOR: '1'
68+
# MOLECULE_DISTRO: ${{ matrix.distro }}

.github/workflows/constraints.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pip==20.3.3
2+
ansible-base==2.10.4
3+
yamllint==1.25.0
4+
ansible-lint==4.3.7

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: Release
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
- master
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Check out the repository
16+
uses: actions/checkout@v2.3.4
17+
with:
18+
fetch-depth: 2
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v2.1.4
22+
with:
23+
python-version: "3.9"
24+
25+
- name: Upgrade pip
26+
run: |
27+
pip install --constraint=.github/workflows/constraints.txt pip
28+
pip --version
29+
30+
- name: Install Ansible
31+
run: |
32+
pip install --constraint=.github/workflows/constraints.txt ansible-base
33+
34+
- name: Trigger a new import on Galaxy.
35+
run: ansible-galaxy role import --api-key ${{ secrets.GALAXY_TOKEN }} $(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2)

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.retry
2+
*/__pycache__
3+
*.pyc

.pre-commit-config.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
repos:
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: v3.4.0
5+
hooks:
6+
- id: check-added-large-files
7+
- id: check-toml
8+
- id: check-yaml
9+
- id: end-of-file-fixer
10+
- id: trailing-whitespace
11+
- id: check-added-large-files
12+
- repo: https://github.com/prettier/pre-commit
13+
rev: v2.1.2
14+
hooks:
15+
- id: prettier
16+
- repo: https://github.com/adrienverge/yamllint.git
17+
rev: v1.17.0
18+
hooks:
19+
- id: yamllint
20+
args: [-c=.yamllint]

.yamllint

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
extends: default
3+
4+
rules:
5+
line-length:
6+
max: 200
7+
level: warning
8+
9+
ignore: |
10+
.github/stale.yml
11+
.travis.yml

LICENSE.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
MIT License
2+
===========
3+
4+
Copyright © 2021 Thiago Carvalho D'Ávila
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 all
14+
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 the
22+
software.**

0 commit comments

Comments
 (0)