forked from ansible-collections/trendmicro.deepsec
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into computer_config
- Loading branch information
Showing
219 changed files
with
35,588 additions
and
905 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
profile: production | ||
|
||
exclude_paths: | ||
- changelogs/changelog.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
antsichaut | ||
argspec | ||
astimezone | ||
autoupdate | ||
basepython | ||
cdcp | ||
cidrblock | ||
cmds | ||
dataclass | ||
KB-perByte | ||
devel | ||
endgroup | ||
envname | ||
envtmpdir | ||
etime | ||
extraheader | ||
fileh | ||
isoformat | ||
nolabel | ||
notesdir | ||
passenv | ||
returncode | ||
setenv | ||
setuptools | ||
suboptions | ||
tmpvtm | ||
toxfile | ||
toxinidir | ||
tracebackhide |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[darglint] | ||
# NOTE: All `darglint` styles except for `sphinx` hit ridiculously low | ||
# NOTE: performance on some of the in-project Python modules. | ||
# Refs: | ||
# * https://github.com/terrencepreilly/darglint/issues/186 | ||
docstring_style = sphinx | ||
strictness = full |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
[flake8] | ||
|
||
builtins = _ | ||
|
||
# Print the total number of errors: | ||
count = true | ||
|
||
# Don't even try to analyze these: | ||
extend-exclude = | ||
# No need to traverse egg info dir | ||
*.egg-info, | ||
# tool cache dirs | ||
*_cache | ||
# project env vars | ||
.env, | ||
# GitHub configs | ||
.github, | ||
# Cache files of MyPy | ||
.mypy_cache, | ||
# Cache files of pytest | ||
.pytest_cache, | ||
# Temp dir of pytest-testmon | ||
.tmontmp, | ||
# Occasional virtualenv dir | ||
.venv | ||
# VS Code | ||
.vscode, | ||
# Temporary build dir | ||
build, | ||
# This contains sdists and wheels of ansible-navigator that we don't want to check | ||
dist, | ||
# Metadata of `pip wheel` cmd is autogenerated | ||
pip-wheel-metadata, | ||
# adjacent venv | ||
venv | ||
# ansible won't let me | ||
__init__.py | ||
|
||
# IMPORTANT: avoid using ignore option, always use extend-ignore instead | ||
# Completely and unconditionally ignore the following errors: | ||
extend-ignore = | ||
# Safeguard neutering of flake8-quotes : https://github.com/zheller/flake8-quotes/issues/105 | ||
Q, | ||
# annoy black by allowing white space before : https://github.com/psf/black/issues/315 | ||
E203, | ||
# duplicate of pylint W0611 (unused-import) | ||
F401, | ||
# duplicate of pylint E0602 (undefined-variable) | ||
F821, | ||
# duplicate of pylint W0612 (unused-variable) | ||
F841, | ||
|
||
# Accessibility/large fonts and PEP8 unfriendly: | ||
max-line-length = 100 | ||
|
||
# Allow certain violations in certain files: | ||
# Please keep both sections of this list sorted, as it will be easier for others to find and add entries in the future | ||
per-file-ignores = | ||
# The following ignores have been researched and should be considered permanent | ||
# each should be preceeded with an explanation of each of the error codes | ||
# If other ignores are added for a specific file in the section following this, | ||
# these will need to be added to that line as well. | ||
|
||
|
||
# S101: Allow the use of assert within the tests directory, since tests require it. | ||
tests/**.py: S101 | ||
|
||
# The following were present during the initial implementation. | ||
# They are expected to be fixed and unignored over time. | ||
|
||
# Count the number of occurrences of each error/warning code and print a report: | ||
statistics = true |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
labels: | ||
- "skip-changelog" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
# see https://github.com/ansible-community/devtools | ||
_extends: ansible-community/devtools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
# See https://github.com/ansible-community/devtools/blob/main/.github/workflows/ack.yml | ||
name: ack | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: # yamllint disable-line rule:truthy | ||
pull_request_target: | ||
types: [opened, labeled, unlabeled, synchronize] | ||
|
||
jobs: | ||
ack: | ||
uses: ansible/devtools/.github/workflows/ack.yml@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
name: code_coverage | ||
|
||
on: # yamllint disable-line rule:truthy | ||
push: | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
codecoverage: | ||
uses: ansible-network/github_actions/.github/workflows/coverage_network_devices.yml@main | ||
with: | ||
collection_pre_install: >- | ||
git+https://github.com/ansible-collections/ansible.utils.git | ||
git+https://github.com/ansible-collections/ansible.netcommon.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
name: ansible-lint | ||
on: # yamllint disable-line rule:truthy | ||
pull_request: | ||
branches: ["main"] | ||
jobs: | ||
build: | ||
name: Ansible Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Run ansible-lint | ||
uses: ansible/ansible-lint@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
# push workflow is shared and expected to perform actions after a merge happens | ||
# on a maintenance branch (default or release). For example updating the | ||
# draft release-notes. | ||
# based on great work from | ||
# https://github.com/T-Systems-MMS/ansible-collection-icinga-director | ||
name: push | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: # yamllint disable-line rule:truthy | ||
workflow_dispatch: | ||
|
||
env: | ||
NAMESPACE: trendmicro | ||
COLLECTION_NAME: deepsec | ||
ANSIBLE_COLLECTIONS_PATHS: ./ | ||
|
||
jobs: | ||
update_release_draft: | ||
uses: ansible/devtools/.github/workflows/push_network.yml@main | ||
with: | ||
repo: ansible-collections/trendmicro.deepsec | ||
secrets: | ||
BOT_PAT: ${{ secrets.BOT_PAT }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: release | ||
on: # yamllint disable-line rule:truthy | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
release: | ||
uses: ansible/devtools/.github/workflows/release_collection.yml@main | ||
with: | ||
environment: release | ||
secrets: | ||
ah_token: ${{ secrets.AH_TOKEN }} | ||
ansible_galaxy_api_key: ${{ secrets.ANSIBLE_GALAXY_API_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
name: test_collection | ||
|
||
concurrency: | ||
group: ${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
on: # yamllint disable-line rule:truthy | ||
pull_request: | ||
branches: [main] | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
|
||
jobs: | ||
changelog: | ||
uses: ansible-network/github_actions/.github/workflows/changelog.yml@main | ||
if: github.event_name != 'schedule' | ||
sanity: | ||
uses: ansible-network/github_actions/.github/workflows/sanity.yml@main | ||
unit-galaxy: | ||
uses: ansible-network/github_actions/.github/workflows/unit_galaxy.yml@main | ||
unit-source: | ||
uses: ansible-network/github_actions/.github/workflows/unit_source.yml@main | ||
with: | ||
collection_pre_install: >- | ||
git+https://github.com/ansible-collections/ansible.utils.git | ||
git+https://github.com/ansible-collections/ansible.netcommon.git | ||
all_green: | ||
if: ${{ always() && (github.event_name != 'schedule') }} | ||
needs: | ||
- changelog | ||
- sanity | ||
- unit-galaxy | ||
- unit-source | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: >- | ||
python -c "assert 'failure' not in | ||
set([ | ||
'${{ needs.changelog.result }}', | ||
'${{ needs.sanity.result }}', | ||
'${{ needs.unit-galaxy.result }}', | ||
'${{ needs.unit-source.result }}' | ||
])" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
# CML/virl lab cache | ||
.virl/ | ||
|
||
# A collection directory, resulting from the use of the pytest-ansible-units plugin | ||
collections/ | ||
|
||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
db.sqlite3 | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# celery beat schedule file | ||
celerybeat-schedule | ||
|
||
# SageMath parsed files | ||
*.sage.py | ||
|
||
# Environments | ||
.env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# mkdocs documentation | ||
/site | ||
|
||
# mypy | ||
.mypy_cache/ | ||
|
||
# ide | ||
*.code-workspace | ||
.vscode/ | ||
.DS_Store | ||
|
||
changelogs/.plugin-cache.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[settings] | ||
known_first_party=ansible_collections.trendmicro.deepsec | ||
line_length=100 | ||
lines_after_imports=2 | ||
lines_between_types=1 | ||
profile=black |
Oops, something went wrong.