-
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.
transfer all single roles into collection
- Loading branch information
Showing
347 changed files
with
20,375 additions
and
0 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 @@ | ||
--- | ||
|
||
skip_list: | ||
- name[casing] | ||
- name[template] |
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 @@ | ||
[pycodestyle] | ||
|
||
ignore = E402, E123 | ||
|
||
# It's fine to have line-length of 99 | ||
max-line-length = 99 | ||
|
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,30 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
--- | ||
|
||
##### SUMMARY | ||
<!--- Explain the problem briefly below --> | ||
|
||
##### STEPS TO REPRODUCE | ||
<!--- Describe exactly how to reproduce the problem, using a minimal test-case --> | ||
```yaml | ||
|
||
``` | ||
|
||
<!--- HINT: You can paste gist.github.com links for larger files --> | ||
|
||
##### EXPECTED RESULTS | ||
<!--- Describe what you expected to happen when running the steps above --> | ||
```paste below | ||
``` | ||
|
||
##### ACTUAL RESULTS | ||
<!--- Paste verbatim command output between quotes --> | ||
```paste below | ||
``` | ||
|
||
##### ENVIRONMENT | ||
<!--- Provide all relevant information below, e.g. target OS versions, Ansible version, etc. --> |
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,17 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
--- | ||
|
||
##### SUMMARY | ||
<!--- Describe the new feature/improvement briefly below --> | ||
|
||
##### ADDITIONAL INFORMATION | ||
<!--- Describe how the feature would be used, why it is needed and what it would solve --> | ||
|
||
<!--- Paste example role between quotes below --> | ||
```yaml | ||
|
||
``` | ||
|
||
<!--- HINT: You can also paste gist.github.com links for larger files --> |
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,31 @@ | ||
--- | ||
|
||
name: delete workflow runs | ||
|
||
on: | ||
schedule: | ||
- cron: "10 5 * * 0" | ||
workflow_dispatch: | ||
inputs: | ||
logLevel: | ||
description: 'Log level' | ||
required: true | ||
default: 'warning' | ||
type: choice | ||
options: | ||
- info | ||
- warning | ||
- debug | ||
|
||
jobs: | ||
delete-workflow-runs: | ||
runs-on: ubuntu-latest | ||
name: delete old workflow runs | ||
steps: | ||
- name: Delete workflow runs | ||
uses: MajorScruffy/[email protected] | ||
with: | ||
repository: bodsch/ansible-collection-docker | ||
older-than-seconds: 2592000 # remove all workflow runs older than 30 day | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,66 @@ | ||
--- | ||
|
||
name: lint plugins | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
logLevel: | ||
description: 'Log level' | ||
required: true | ||
default: 'warning' | ||
type: choice | ||
options: | ||
- info | ||
- warning | ||
- debug | ||
push: | ||
branches: | ||
- 'feature/**' | ||
- 'fix/**' | ||
- '!doc/**' | ||
paths: | ||
- 'plugins/**' | ||
- '!roles/**' | ||
- '!.github/workflows/test_role*.yml' | ||
- '.config/pycodestyle.cfg' | ||
pull_request: | ||
branches: | ||
- 'feature/**' | ||
- 'fix/**' | ||
- '!doc/**' | ||
paths: | ||
- 'plugins/**' | ||
- '!roles/**' | ||
- '!.github/workflows/test_role*.yml' | ||
- '.config/pycodestyle.cfg' | ||
|
||
jobs: | ||
pep8: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python_version: | ||
- "3.10.11" | ||
- "3.11.3" | ||
|
||
steps: | ||
- name: Check out the codebase. | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.workflow_run.head_branch }} | ||
|
||
- name: 🐍 set up python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "${{ matrix.python_version }}" | ||
|
||
- name: Install test dependencies. | ||
run: | | ||
python3 -m pip install --upgrade pip | ||
python3 -m pip install pycodestyle | ||
- name: Lint code. | ||
run: | | ||
pycodestyle plugins/ --config=.config/pycodestyle.cfg --statistics --count |
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,147 @@ | ||
--- | ||
name: CI | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
logLevel: | ||
description: 'Log level' | ||
required: true | ||
default: 'warning' | ||
type: choice | ||
options: | ||
- info | ||
- warning | ||
- debug | ||
push: | ||
branches: | ||
- 'main' | ||
- 'feature/**' | ||
- 'fix/**' | ||
- '!doc/**' | ||
pull_request: | ||
branches: | ||
- 'main' | ||
- 'feature/**' | ||
- 'fix/**' | ||
- '!doc/**' | ||
|
||
env: | ||
COLLECTION_NAMESPACE: bodsch | ||
COLLECTION_NAME: docker | ||
|
||
jobs: | ||
arch: | ||
name: "${{ matrix.collection_role }} - ${{ matrix.image }}, ansible: ${{ matrix.ansible-version }}, python: ${{ matrix.python_version }}" | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
image: | ||
- archlinux:latest | ||
ansible-version: | ||
- '6.7' | ||
- '7.5' | ||
- '8.5' | ||
python_version: | ||
- "3.10.11" | ||
- "3.11.3" | ||
scenario: | ||
- default | ||
collection_role: | ||
- docker | ||
- container | ||
- registry | ||
- registry_ui | ||
steps: | ||
- name: check out the codebase. | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.workflow_run.head_branch }} | ||
|
||
- name: 🐍 set up python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "${{ matrix.python_version }}" | ||
|
||
- name: install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r test-requirements.txt | ||
- name: Install collection | ||
run: | | ||
make \ | ||
install | ||
- name: test with tox | ||
run: | | ||
make \ | ||
test \ | ||
-e TOX_ANSIBLE="ansible_${{ matrix.ansible-version }}" \ | ||
-e DISTRIBUTION="${{ matrix.image }}" \ | ||
-e COLLECTION_ROLE="${{ matrix.collection_role }}" \ | ||
-e COLLECTION_SCENARIO="${{ matrix.scenario }}" | ||
env: | ||
PY_COLORS: '1' | ||
ANSIBLE_FORCE_COLOR: '1' | ||
DISTRIBUTION: ${{ matrix.image }} | ||
|
||
deb: | ||
name: "${{ matrix.collection_role }} - ${{ matrix.image }}, ansible: ${{ matrix.ansible-version }}, python: ${{ matrix.python_version }}" | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
image: | ||
- debian:11 | ||
- debian:12 | ||
- ubuntu:20.04 | ||
- ubuntu:22.04 | ||
ansible-version: | ||
- '6.7' | ||
- '7.5' | ||
- '8.5' | ||
python_version: | ||
- "3.10.11" | ||
- "3.11.3" | ||
scenario: | ||
- default | ||
collection_role: | ||
- docker | ||
- container | ||
- registry | ||
- registry_ui | ||
steps: | ||
- name: check out the codebase. | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.workflow_run.head_branch }} | ||
|
||
- name: 🐍 set up python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "${{ matrix.python_version }}" | ||
|
||
- name: install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r test-requirements.txt | ||
- name: Install collection | ||
run: | | ||
make \ | ||
install | ||
- name: test with tox | ||
run: | | ||
make \ | ||
test \ | ||
-e TOX_ANSIBLE="ansible_${{ matrix.ansible-version }}" \ | ||
-e DISTRIBUTION="${{ matrix.image }}" \ | ||
-e COLLECTION_ROLE="${{ matrix.collection_role }}" \ | ||
-e COLLECTION_SCENARIO="${{ matrix.scenario }}" | ||
env: | ||
PY_COLORS: '1' | ||
ANSIBLE_FORCE_COLOR: '1' | ||
DISTRIBUTION: ${{ matrix.image }} |
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 @@ | ||
--- | ||
|
||
name: push to ansible galaxy | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
logLevel: | ||
description: 'Log level' | ||
required: true | ||
default: 'warning' | ||
type: choice | ||
options: | ||
- info | ||
- warning | ||
- debug | ||
|
||
jobs: | ||
galaxy: | ||
name: galaxy | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Check out the codebase | ||
uses: actions/checkout@v3 | ||
|
||
- name: Deploy Ansible Galaxy Collection | ||
uses: artis3n/[email protected] | ||
with: | ||
api_key: '${{ secrets.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,31 @@ | ||
Contributing | ||
============ | ||
If you want to contribute to a project and make it better, your help is very welcome. | ||
Contributing is also a great way to learn more about social coding on Github, new technologies and | ||
and their ecosystems and how to make constructive, helpful bug reports, feature requests and the | ||
noblest of all contributions: a good, clean pull request. | ||
|
||
### How to make a clean pull request | ||
|
||
Look for a project's contribution instructions. If there are any, follow them. | ||
|
||
- Create a personal fork of the project on Github. | ||
- Clone the fork on your local machine. Your remote repo on Github is called `origin`. | ||
- Add the original repository as a remote called `upstream`. | ||
- If you created your fork a while ago be sure to pull upstream changes into your local repository. | ||
- Create a new branch to work on! Branch from `develop` if it exists, else from `master`. | ||
- Implement/fix your feature, comment your code. | ||
- Follow the code style of the project, including indentation. | ||
- If the project has tests run them! | ||
- Write or adapt tests as needed. | ||
- Add or change the documentation as needed. | ||
- Squash your commits into a single commit. Create a new branch if necessary. | ||
- Push your branch to your fork on Github, the remote `origin`. | ||
- From your fork open a pull request in the correct branch. Target the project's `develop` branch if there is one, else go for `master`! | ||
- If the maintainer requests further changes just push them to your branch. The PR will be updated automatically. | ||
- Once the pull request is approved and merged you can pull the changes from `upstream` to your local repo and delete | ||
your extra branch(es). | ||
|
||
And last but not least: Always write your commit messages in the present tense. | ||
Your commit message should describe what the commit, when applied, does to the | ||
code – not what you did to the code. |
Oops, something went wrong.