Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Release 0.4.0 #20

Merged
merged 68 commits into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
e1c528a
ci: add
jon-nfc Jul 2, 2024
e80bc85
chore: add skeleton
jon-nfc Jul 30, 2024
15b31fd
docs: add skeleton
jon-nfc Jul 30, 2024
522dfd6
Merge branch 'genesis' into 'development'
jon-nfc Jul 30, 2024
b8e42da
docs: correct readme
jon-nfc Jul 30, 2024
fab650b
feat(plugin): Centurion ERP inventory plugin
jon-nfc Jul 31, 2024
18c3a75
Merge branch '3-inventory' into 'development'
jon-nfc Jul 31, 2024
419dc5c
fix(plugin): correct plugin to use inventory file
jon-nfc Jul 31, 2024
320c9b0
Merge branch '3-inventory' into 'development'
jon-nfc Jul 31, 2024
83fae4d
build: bump version 0.0.1 -> 0.1.0
nfc-robot Jul 31, 2024
3e2b851
docs(readme): correct galaxy link
jon-nfc Jul 31, 2024
f63cb99
docs: correct galaxy link
jon-nfc Jul 31, 2024
5ab2f1c
docs: correct badge links
jon-nfc Jul 31, 2024
b40f77c
feat(inventory): add inventory file for centurion
jon-nfc Jul 31, 2024
35c3ba1
Merge branch 'inventory' into 'development'
jon-nfc Jul 31, 2024
5cc1dcb
build: bump version 0.1.0 -> 0.2.0
nfc-robot Jul 31, 2024
bddfc8b
feat(inventory): remove device config
jon-nfc Jul 31, 2024
306f8fa
feat(inventory): Fetch groups and group config
jon-nfc Jul 31, 2024
9057805
feat(inventory): Create groups from organizations
jon-nfc Jul 31, 2024
35fbde8
Merge branch '4-inventory-groups' into 'development'
jon-nfc Jul 31, 2024
66ea5a4
build: bump version 0.2.0 -> 0.3.0
nfc-robot Jul 31, 2024
0eec0d3
ci(gitlab): remove all except docs build
jon-nfc Aug 14, 2024
b343e24
ci(triage): add project triage
jon-nfc Aug 14, 2024
17ce8e4
ci: add sync to gitlab
jon-nfc Aug 14, 2024
fcaa51e
ci(PR): add PR checks
jon-nfc Aug 14, 2024
be2cd95
ci: correct git sync check
jon-nfc Aug 14, 2024
8936247
Merge pull request #16 from nofusscomputing/16-ci-add-github
jon-nfc Aug 14, 2024
61adb6f
chore(vscode): add recommended extensions
jon-nfc Aug 14, 2024
baf4b67
ci(collection): Add Ansible Collection workflow
jon-nfc Aug 14, 2024
012df73
chore: correct a linting error by bumping required ansible ver to 2.16
jon-nfc Aug 14, 2024
980b546
ci(collection): add required permissions
jon-nfc Aug 14, 2024
8fbe481
ci(bump): Add bump workflow
jon-nfc Aug 14, 2024
2850e4b
docs: Update project badges to reflect project home is github
jon-nfc Aug 14, 2024
1b5bb4f
Merge pull request #18 from nofusscomputing/15-ci-gitlab-github-migra…
jon-nfc Aug 14, 2024
73c0e64
ci(bump): add additional actions script
jon-nfc Aug 15, 2024
e2c8b9b
Merge pull request #21 from nofusscomputing/ci-additional-actions
jon-nfc Aug 15, 2024
f969fde
ci(triage): adjust triage to build object for project workflow usage
jon-nfc Aug 15, 2024
5dd2e7a
Merge pull request #22 from nofusscomputing/ci-project-triage
jon-nfc Aug 15, 2024
11cfa7d
ci(project): remove permissions key
jon-nfc Aug 15, 2024
34fcac6
Merge pull request #23 from nofusscomputing/ci-project-triage
jon-nfc Aug 15, 2024
9f1c5b4
ci(project): Add PAT to project triage to download artifacts
jon-nfc Aug 15, 2024
aa7754f
Merge pull request #24 from nofusscomputing/ci-project-triage
jon-nfc Aug 15, 2024
d93d866
ci(project): rename workflow project -> triage_project
jon-nfc Aug 15, 2024
88090d8
ci(project): enclose project inputs in `"`
jon-nfc Aug 15, 2024
695bcd0
Merge pull request #25 from nofusscomputing/ci-project-triage
jon-nfc Aug 15, 2024
d8af4f1
ci(triage): add event labeled
jon-nfc Aug 15, 2024
0c7873a
ci(triage): add debug for vars
jon-nfc Aug 15, 2024
bc3587f
chore: add makefile
jon-nfc Aug 18, 2024
1606e36
ci(mkdocs): add mkdocs workflow
jon-nfc Aug 19, 2024
ad835c3
Merge pull request #28 from nofusscomputing/26-mkdocs-linting
jon-nfc Aug 19, 2024
821739f
feat(playbook): Add playbook for inventory collection and publish to …
jasonpagetas Aug 14, 2024
ae180f0
feat(playbook): Add playbook for teams creation and permissions
jasonpagetas Aug 14, 2024
e6b8a09
docs(teams): Add Documenation for teams playbook
jasonpagetas Aug 19, 2024
83f12f0
chore(teams): Apply suggested changes
jasonpagetas Aug 19, 2024
975f4b6
chore(inventory): Apply suggested fixes from code review
jasonpagetas Aug 19, 2024
198337f
docs(inventory): Add documentation for inventory playbook
jasonpagetas Aug 19, 2024
8579a59
chore(docs_teams): Update decription
jasonpagetas Aug 19, 2024
0b84bf8
chore: amend make clean
jon-nfc Aug 19, 2024
eee170f
chore(make_docs): apply linting fixes
jasonpagetas Aug 19, 2024
1ef25b3
chore(): Update changes from code review
jasonpagetas Aug 19, 2024
9439840
docs(playbook_teams): add link to inventory plugin
jon-nfc Aug 19, 2024
16bd99d
docs(playbook_inventory): update meta description
jon-nfc Aug 19, 2024
2d819eb
Merge pull request #17 from jasonpagetas/playbooks
jon-nfc Aug 19, 2024
57a3610
fix(teams): replace PATCH -> POST
jasonpagetas Aug 21, 2024
408a23a
ci(ci): add PR sync to have the ci run on pr
jon-nfc Aug 23, 2024
fc504d9
fix(teams_playbook): Delete ansible.cfg
jasonpagetas Aug 23, 2024
9c33f5e
chore(playbook_teams): Capitalise task name
jasonpagetas Aug 23, 2024
fd5600f
Merge pull request #30 from jasonpagetas/issue#29fixes
jon-nfc Aug 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .ansible-lint-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
galaxy.yml galaxy[version-incorrect]

# N/A as the play runs on the ansible controller and should only run once.
playbooks/teams.yaml run-once[task]

# N/A as the play runs on the ansible controller using permissions of executing user.
playbooks/inventory.yaml risky-file-permissions

8 changes: 8 additions & 0 deletions .cz.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
commitizen:
name: cz_conventional_commits
prerelease_offset: 1
tag_format: $version
update_changelog_on_bump: false
version: 0.3.0
version_scheme: semver
5 changes: 5 additions & 0 deletions .github/additional_actions_bump.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

echo "[Debug] script - NEW_VERSION=${NEW_VERSION}";

sed -E "s/version: (.+)/version: ${NEW_VERSION}/g" -i galaxy.yml;
31 changes: 31 additions & 0 deletions .github/workflows/bump.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---

name: 'Bump'


on:
workflow_dispatch:
inputs:
CZ_PRE_RELEASE:
default: none
required: false
description: Create Pre-Release {alpha,beta,rc,none}
CZ_INCREMENT:
default: none
required: false
description: Type of bump to conduct {MAJOR,MINOR,PATCH,none}
push:
branches:
- 'master'


jobs:

bump:
name: 'Bump'
uses: nofusscomputing/action_bump/.github/workflows/bump.yaml@development
with:
CZ_PRE_RELEASE: ${{ inputs.CZ_PRE_RELEASE }}
CZ_INCREMENT: ${{ inputs.CZ_INCREMENT }}
secrets:
WORKFLOW_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
105 changes: 105 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
---

name: 'CI'


on:
pull_request:
types:
- synchronize
push:
branches:
- '**'
tags:
- '*'

env:
GIT_SYNC_URL: "https://${{ secrets.GITLAB_USERNAME_ROBOT }}:${{ secrets.GITLAB_TOKEN_ROBOT }}@gitlab.com/nofusscomputing/projects/ansible/collections/centurion_erp_collection.git"

jobs:


mkdocs:
name: 'MKDocs'
permissions:
pull-requests: write
contents: write
statuses: write
checks: write
actions: write
uses: nofusscomputing/action_mkdocs/.github/workflows/reusable_mkdocs.yaml@development


collection:
name: 'Ansible Collection'
uses: nofusscomputing/action_ansible_collection/.github/workflows/reusable_ansible_collection.yaml@development
permissions:
pull-requests: write
contents: write
statuses: write
checks: write
actions: write
with:
ANSIBLE_COLLECTION_MARK_RELEASE_LIVE: true
ANSIBLE_GALAXY_NAMESPACE: "${{ github.repository_owner }}"
ANSIBLE_GALAXY_PACKAGE_NAME: "${{ github.event.repository.name }}"
ANSIBLE_LINTING_MUST_PASS: true
secrets:
ANSIBLE_GALAXY_UPLOAD_TOKEN: ${{ secrets.ANSIBLE_GALAXY_UPLOAD_TOKEN }}


gitlab-mirror:
if: ${{ github.repository == 'nofusscomputing/ansible_collection_centurion' }}
runs-on: ubuntu-latest
steps:


- name: Checks
shell: bash
run: |
if [ "0${{ env.GIT_SYNC_URL }}" == "0" ]; then

echo "[ERROR] you must define variable GIT_SYNC_URL for mirroring this repository.";

exit 1;

fi


- name: clone
shell: bash
run: |

git clone --mirror https://github.com/${{ github.repository }} repo;

ls -la repo/


- name: add remote
shell: bash
run: |

cd repo;

echo "**************************************** - git remote -v";

git remote -v;

echo "****************************************";

git remote add destination $GIT_SYNC_URL;


- name: push branches
shell: bash
run: |

cd repo;

echo "**************************************** - git branch";

git branch;

echo "****************************************";

git push destination --mirror || true;
14 changes: 14 additions & 0 deletions .github/workflows/pull-requests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---

name: Pull Requests


on:
pull_request: {}


jobs:

pull-request:
name: pull-request
uses: nofusscomputing/action_pull_requests/.github/workflows/pull-requests.yaml@development
85 changes: 85 additions & 0 deletions .github/workflows/triage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@

---

name: Triage


on:
issues:
types:
- opened
- labeled
- reopened
- transferred
- milestoned
- demilestoned
- closed
- assigned
pull_request:
types:
- opened
- labeled
- edited
- assigned
- reopened
- closed



jobs:


debug:
name: Debug
runs-on: ubuntu-latest
steps:

- name: Variables
run: |
echo "[Debug] github.actor=${{ github.actor }}";
echo "[Debug] github.event.action=${{ github.event.action }}";
echo "[Debug] github.event.pull_request.author_association=${{ github.event.pull_request.author_association }}";
echo "[Debug] github.event_name=${{ github.event_name }}";
echo "[Debug] github.repository=${{ github.repository }}";
echo "[Debug] github.triggering_actor=${{ github.triggering_actor }}";


project:
name: Fetch Triage Details
runs-on: ubuntu-latest
steps:

- name: Collect Triage Details
shell: bash
run: |
echo "triage_event_name=${{ github.event_name }}" > triage_details-project.txt;
echo "triage_event_action=${{ github.event.action }}" >> triage_details-project.txt;

if [ "${{ github.event_name }}" == 'pull_request' ]; then

echo "triage_item_number=${{ github.event.pull_request.number }}" >> triage_details-project.txt;

echo "triage_item_url=https://github.com/${{ github.repository }}/pull/${{ github.event.pull_request.number }}" >> triage_details-project.txt;

else

echo "triage_item_number=${{ github.event.issue.number }}" >> triage_details-project.txt;

echo "triage_item_url=https://github.com/${{ github.repository }}/issues/${{ github.event.issue.number }}" >> triage_details-project.txt;

fi;


echo "[Debug]************************************";

cat triage_details-project.txt;

echo "[Debug]************************************";


- name: Upload Triage Data
uses: actions/upload-artifact@v4
with:
name: triage-details-project
path: triage_details-project.txt

53 changes: 53 additions & 0 deletions .github/workflows/triage_project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---

name: 'Project'
on:
workflow_run:
workflows:
- 'Triage'
types:
- completed


jobs:

prepare-project-triage:
name: Project Triage
runs-on: ubuntu-latest
outputs:
triage_event_name: ${{ steps.triage-output.outputs.triage_event_name }}
triage_event_action: ${{ steps.triage-output.outputs.triage_event_action }}
triage_item_number: ${{ steps.triage-output.outputs.triage_item_number }}
triage_item_url: ${{ steps.triage-output.outputs.triage_item_url }}
steps:

## Additional Steps

- name: Fetch triage Details
uses: actions/download-artifact@v4
with:
name: triage-details-project
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.WORKFLOW_TOKEN }}


- name: Set Outputs
id: triage-output
shell: bash
run: |
cat triage_details-project.txt > $GITHUB_OUTPUT


project:
name: Project
needs:
- prepare-project-triage
uses: nofusscomputing/action_project/.github/workflows/project.yaml@development
with:
PROJECT_URL: https://github.com/orgs/nofusscomputing/projects/3
TRIAGE_EVENT_NAME: "${{ needs.prepare-project-triage.outputs.triage_event_name }}"
TRIAGE_EVENT_ACTION: "${{ needs.prepare-project-triage.outputs.triage_event_action }}"
TRIAGE_ITEM_NUMBER: "${{ needs.prepare-project-triage.outputs.triage_item_number }}"
TRIAGE_ITEM_URL: "${{ needs.prepare-project-triage.outputs.triage_item_url }}"
secrets:
WORKFLOW_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
__pycache__
build
pages
*.junit.xml


## Make prepare items
node_modules/
package-lock.json
package.json
.markdownlint.json
.markdownlint-cli2.jsonc
Loading
Loading