Skip to content

Commit 6a28fd3

Browse files
restructure to ansible collection and add ntc dev standards (#268)
* restructure to ansible collection and add ntc dev standards * fix codeowners * additional updates * clean up readme to remove old unecessary informaiton * continue clean ups and standardization * Update galaxy.yml Co-authored-by: Gary Snider <[email protected]> * work on getting most ansible-test sanity passing * continuing project revamp to collection * additional work to get to sanity checks passing * get remaining sanity tests to pass * additional cleanups and get show and config modules initially built using pyntc * quick run through of doc updates * resume migration to collection * final cleanups for collection --------- Co-authored-by: Gary Snider <[email protected]>
1 parent 940b0a1 commit 6a28fd3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+5368
-3599
lines changed

.bandit.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
skips: []
3+
# No need to check for security issues in the test scripts!
4+
exclude_dirs:
5+
- "./tests/"

.dockerignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Dockerfile
2+
docker-compose.yml
3+
*.md
4+
.env
5+
.venv
6+
.vscode/
7+
.github/

.flake8

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[flake8]
2+
# E501: Line length is enforced by Black, so flake8 doesn't need to check it
3+
# W503: Black disagrees with this rule, as does PEP 8; Black wins
4+
# E402: Ansible tends to have imports in certain sections of files.
5+
ignore = E501, W503, E402

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Default owner(s) of all files in this repository
2+
* @jeffkala @jvanderaa
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
name: New Issue
3+
about: Report issues
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
<!---
11+
- [ ] Verify first that your issue/request is not already reported on GitHub.
12+
- [ ] Also test if the latest release, and master branch are affected too.
13+
-->
14+
15+
##### ISSUE TYPE
16+
<!--- Pick one below and delete the rest: -->
17+
- Bug Report
18+
- Feature Idea
19+
- Module question
20+
- Module creation help
21+
- Documentation update
22+
23+
##### SOFTWARE VERSIONS
24+
25+
###### pyntc
26+
<!-- pyntc version -->
27+
28+
###### Ansible
29+
<!--- Ansible Version ansible --version -->
30+
31+
###### Collection Version
32+
<!--- Collection Version -->
33+
34+
35+
##### SUMMARY
36+
<!--- Explain the problem briefly -->
37+
38+
##### STEPS TO REPRODUCE
39+
<!---
40+
For bugs, show exactly how to reproduce the problem, using a minimal test-case.
41+
For new features, show how the feature would be used.
42+
-->
43+
44+
<!--- Paste example playbooks or commands between quotes below -->
45+
```yaml
46+
47+
```
48+
49+
<!--- You can also paste gist.github.com links for larger files -->
50+
51+
##### EXPECTED RESULTS
52+
<!--- What did you expect to happen when running the steps above? -->
53+
54+
##### ACTUAL RESULTS
55+
<!--- What actually happened? -->
56+
57+
<!--- Paste verbatim command output between quotes below -->
58+
```
59+
60+
```

.gitignore

Lines changed: 295 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,296 @@
1-
myhosts
2-
*.pyc
3-
.tox/
4-
.tmp/
5-
ntc_ansible.egg-info/
6-
dist/
1+
# Ansible Retry Files
72
*.retry
8-
.idea/
3+
4+
# Swap files
5+
*.swp
6+
7+
# Byte-compiled / optimized / DLL files
8+
__pycache__/
9+
*.py[cod]
10+
*$py.class
11+
12+
# C extensions
13+
*.so
14+
15+
# Distribution / packaging
16+
.Python
17+
build/
18+
develop-eggs/
19+
dist/
20+
downloads/
21+
eggs/
22+
.eggs/
23+
lib/
24+
lib64/
25+
parts/
26+
sdist/
27+
var/
28+
wheels/
29+
pip-wheel-metadata/
30+
share/python-wheels/
31+
*.egg-info/
32+
.installed.cfg
33+
*.egg
34+
MANIFEST
35+
36+
# PyInstaller
37+
# Usually these files are written by a python script from a template
38+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
39+
*.manifest
40+
*.spec
41+
42+
# Installer logs
43+
pip-log.txt
44+
pip-delete-this-directory.txt
45+
46+
# Unit test / coverage reports
47+
htmlcov/
48+
.tox/
49+
.nox/
50+
.coverage
51+
.coverage.*
52+
.cache
53+
nosetests.xml
54+
coverage.xml
55+
*.cover
56+
*.py,cover
57+
.hypothesis/
58+
.pytest_cache/
59+
60+
# Translations
61+
*.mo
62+
*.pot
63+
64+
# Django stuff:
65+
*.log
66+
local_settings.py
67+
db.sqlite3
68+
db.sqlite3-journal
69+
70+
# Flask stuff:
71+
instance/
72+
.webassets-cache
73+
74+
# Scrapy stuff:
75+
.scrapy
76+
77+
# Sphinx documentation
78+
docs/_build/
79+
80+
# PyBuilder
81+
target/
82+
83+
# Jupyter Notebook
84+
.ipynb_checkpoints
85+
86+
# IPython
87+
profile_default/
88+
ipython_config.py
89+
90+
# pyenv
91+
.python-version
92+
93+
# pipenv
94+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
95+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
96+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
97+
# install all needed dependencies.
98+
#Pipfile.lock
99+
100+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
101+
__pypackages__/
102+
103+
# Celery stuff
104+
celerybeat-schedule
105+
celerybeat.pid
106+
107+
# SageMath parsed files
108+
*.sage.py
109+
110+
# Environments
111+
.env
112+
.venv
113+
env/
114+
venv/
115+
ENV/
116+
env.bak/
117+
venv.bak/
118+
119+
# Spyder project settings
120+
.spyderproject
121+
.spyproject
122+
123+
# Rope project settings
124+
.ropeproject
125+
126+
# mkdocs documentation
127+
/site
128+
129+
# mypy
130+
.mypy_cache/
131+
.dmypy.json
132+
dmypy.json
133+
134+
# Pyre type checker
135+
.pyre/
136+
137+
# Editor
138+
.vscode/
139+
140+
### macOS ###
141+
# General
142+
.DS_Store
143+
.AppleDouble
144+
.LSOverride
145+
146+
# Thumbnails
147+
._*
148+
149+
# Files that might appear in the root of a volume
150+
.DocumentRevisions-V100
151+
.fseventsd
152+
.Spotlight-V100
153+
.TemporaryItems
154+
.Trashes
155+
.VolumeIcon.icns
156+
.com.apple.timemachine.donotpresent
157+
158+
# Directories potentially created on remote AFP share
159+
.AppleDB
160+
.AppleDesktop
161+
Network Trash Folder
162+
Temporary Items
163+
.apdisk
164+
165+
### Windows ###
166+
# Windows thumbnail cache files
167+
Thumbs.db
168+
Thumbs.db:encryptable
169+
ehthumbs.db
170+
ehthumbs_vista.db
171+
172+
# Dump file
173+
*.stackdump
174+
175+
# Folder config file
176+
[Dd]esktop.ini
177+
178+
# Recycle Bin used on file shares
179+
$RECYCLE.BIN/
180+
181+
# Windows Installer files
182+
*.cab
183+
*.msi
184+
*.msix
185+
*.msm
186+
*.msp
187+
188+
# Windows shortcuts
189+
*.lnk
190+
191+
### PyCharm ###
192+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
193+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
194+
195+
# User-specific stuff
196+
.idea/**/workspace.xml
197+
.idea/**/tasks.xml
198+
.idea/**/usage.statistics.xml
199+
.idea/**/dictionaries
200+
.idea/**/shelf
201+
202+
# Generated files
203+
.idea/**/contentModel.xml
204+
205+
# Sensitive or high-churn files
206+
.idea/**/dataSources/
207+
.idea/**/dataSources.ids
208+
.idea/**/dataSources.local.xml
209+
.idea/**/sqlDataSources.xml
210+
.idea/**/dynamic.xml
211+
.idea/**/uiDesigner.xml
212+
.idea/**/dbnavigator.xml
213+
214+
# Gradle
215+
.idea/**/gradle.xml
216+
.idea/**/libraries
217+
218+
# Gradle and Maven with auto-import
219+
# When using Gradle or Maven with auto-import, you should exclude module files,
220+
# since they will be recreated, and may cause churn. Uncomment if using
221+
# auto-import.
222+
# .idea/artifacts
223+
# .idea/compiler.xml
224+
# .idea/jarRepositories.xml
225+
# .idea/modules.xml
226+
# .idea/*.iml
227+
# .idea/modules
228+
# *.iml
229+
# *.ipr
230+
231+
# CMake
232+
cmake-build-*/
233+
234+
# Mongo Explorer plugin
235+
.idea/**/mongoSettings.xml
236+
237+
# File-based project format
238+
*.iws
239+
240+
# IntelliJ
241+
out/
242+
243+
# mpeltonen/sbt-idea plugin
244+
.idea_modules/
245+
246+
# JIRA plugin
247+
atlassian-ide-plugin.xml
248+
249+
# Cursive Clojure plugin
250+
.idea/replstate.xml
251+
252+
# Crashlytics plugin (for Android Studio and IntelliJ)
253+
com_crashlytics_export_strings.xml
254+
crashlytics.properties
255+
crashlytics-build.properties
256+
fabric.properties
257+
258+
# Editor-based Rest Client
259+
.idea/httpRequests
260+
261+
# Android studio 3.1+ serialized cache file
262+
.idea/caches/build_file_checksums.ser
263+
264+
### PyCharm Patch ###
265+
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
266+
267+
# *.iml
268+
# modules.xml
269+
# .idea/misc.xml
270+
# *.ipr
271+
272+
# Sonarlint plugin
273+
# https://plugins.jetbrains.com/plugin/7973-sonarlint
274+
.idea/**/sonarlint/
275+
276+
# SonarQube Plugin
277+
# https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin
278+
.idea/**/sonarIssues.xml
279+
280+
# Markdown Navigator plugin
281+
# https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced
282+
.idea/**/markdown-navigator.xml
283+
.idea/**/markdown-navigator-enh.xml
284+
.idea/**/markdown-navigator/
285+
286+
# Cache file creation bug
287+
# See https://youtrack.jetbrains.com/issue/JBR-2257
288+
.idea/$CACHE_FILE$
289+
290+
# CodeStream plugin
291+
# https://plugins.jetbrains.com/plugin/12206-codestream
292+
.idea/codestream.xml
293+
294+
### vscode ###
295+
.vscode/*
296+
*.code-workspace

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)