-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: gfs2 role to manage GFS2 clustered filesystems
A basic working gfs2 ansible role. Signed-off-by: Rich Megginson <[email protected]>
- Loading branch information
Showing
58 changed files
with
2,968 additions
and
1 deletion.
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,24 @@ | ||
--- | ||
profile: production | ||
kinds: | ||
- yaml: "**/meta/collection-requirements.yml" | ||
- playbook: "**/tests/get_coverage.yml" | ||
- yaml: "**/tests/collection-requirements.yml" | ||
- playbook: "**/tests/tests_*.yml" | ||
- playbook: "**/tests/setup-snapshot.yml" | ||
- tasks: "**/tests/*.yml" | ||
- playbook: "**/tests/playbooks/*.yml" | ||
- tasks: "**/tests/tasks/*.yml" | ||
- tasks: "**/tests/tasks/*/*.yml" | ||
- vars: "**/tests/vars/*.yml" | ||
- playbook: "**/examples/*.yml" | ||
skip_list: | ||
- fqcn-builtins | ||
- var-naming[no-role-prefix] | ||
exclude_paths: | ||
- tests/roles/ | ||
- .github/ | ||
- .markdownlint.yaml | ||
- examples/roles/ | ||
mock_roles: | ||
- linux-system-roles.gfs2 |
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,141 @@ | ||
module.exports = { | ||
parserPreset: 'conventional-changelog-conventionalcommits', | ||
rules: { | ||
'body-leading-blank': [1, 'always'], | ||
'body-max-line-length': [2, 'always', 100], | ||
'footer-leading-blank': [1, 'always'], | ||
'footer-max-line-length': [2, 'always', 100], | ||
'header-max-length': [2, 'always', 100], | ||
'subject-case': [ | ||
2, | ||
'never', | ||
['start-case', 'pascal-case', 'upper-case'], | ||
], | ||
'subject-empty': [2, 'never'], | ||
'subject-full-stop': [2, 'never', '.'], | ||
'type-case': [2, 'always', 'lower-case'], | ||
'type-empty': [2, 'never'], | ||
'type-enum': [ | ||
2, | ||
'always', | ||
[ | ||
'build', | ||
'chore', | ||
'ci', | ||
'docs', | ||
'feat', | ||
'fix', | ||
'perf', | ||
'refactor', | ||
'revert', | ||
'style', | ||
'test', | ||
'tests', | ||
], | ||
], | ||
}, | ||
prompt: { | ||
questions: { | ||
type: { | ||
description: "Select the type of change that you're committing", | ||
enum: { | ||
feat: { | ||
description: 'A new feature', | ||
title: 'Features', | ||
emoji: '✨', | ||
}, | ||
fix: { | ||
description: 'A bug fix', | ||
title: 'Bug Fixes', | ||
emoji: '🐛', | ||
}, | ||
docs: { | ||
description: 'Documentation only changes', | ||
title: 'Documentation', | ||
emoji: '📚', | ||
}, | ||
style: { | ||
description: | ||
'Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)', | ||
title: 'Styles', | ||
emoji: '💎', | ||
}, | ||
refactor: { | ||
description: | ||
'A code change that neither fixes a bug nor adds a feature', | ||
title: 'Code Refactoring', | ||
emoji: '📦', | ||
}, | ||
perf: { | ||
description: 'A code change that improves performance', | ||
title: 'Performance Improvements', | ||
emoji: '🚀', | ||
}, | ||
test: { | ||
description: 'Adding missing tests or correcting existing tests', | ||
title: 'Tests', | ||
emoji: '🚨', | ||
}, | ||
tests: { | ||
description: 'Adding missing tests or correcting existing tests', | ||
title: 'Tests', | ||
emoji: '🚨', | ||
}, | ||
build: { | ||
description: | ||
'Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)', | ||
title: 'Builds', | ||
emoji: '🛠', | ||
}, | ||
ci: { | ||
description: | ||
'Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)', | ||
title: 'Continuous Integrations', | ||
emoji: '⚙️', | ||
}, | ||
chore: { | ||
description: "Other changes that don't modify src or test files", | ||
title: 'Chores', | ||
emoji: '♻️', | ||
}, | ||
revert: { | ||
description: 'Reverts a previous commit', | ||
title: 'Reverts', | ||
emoji: '🗑', | ||
}, | ||
}, | ||
}, | ||
scope: { | ||
description: | ||
'What is the scope of this change (e.g. component or file name)', | ||
}, | ||
subject: { | ||
description: | ||
'Write a short, imperative tense description of the change', | ||
}, | ||
body: { | ||
description: 'Provide a longer description of the change', | ||
}, | ||
isBreaking: { | ||
description: 'Are there any breaking changes?', | ||
}, | ||
breakingBody: { | ||
description: | ||
'A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself', | ||
}, | ||
breaking: { | ||
description: 'Describe the breaking changes', | ||
}, | ||
isIssueAffected: { | ||
description: 'Does this change affect any open issues?', | ||
}, | ||
issuesBody: { | ||
description: | ||
'If issues are closed, the commit requires a body. Please enter a longer description of the commit itself', | ||
}, | ||
issues: { | ||
description: 'Add issue references (e.g. "fix #123", "re #123".)', | ||
}, | ||
}, | ||
}, | ||
}; |
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: monthly | ||
commit-message: | ||
prefix: ci |
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 @@ | ||
Enhancement: | ||
|
||
Reason: | ||
|
||
Result: | ||
|
||
Issue Tracker Tickets (Jira or BZ if any): |
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,49 @@ | ||
--- | ||
name: Ansible Lint | ||
on: # yamllint disable-line rule:truthy | ||
pull_request: | ||
merge_group: | ||
branches: | ||
- main | ||
types: | ||
- checks_requested | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
env: | ||
LSR_ROLE2COLL_NAMESPACE: fedora | ||
LSR_ROLE2COLL_NAME: linux_system_roles | ||
permissions: | ||
contents: read | ||
jobs: | ||
ansible_lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Update pip, git | ||
run: | | ||
set -euxo pipefail | ||
sudo apt update | ||
sudo apt install -y git | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install tox, tox-lsr | ||
run: | | ||
set -euxo pipefail | ||
pip3 install "git+https://github.com/linux-system-roles/[email protected]" | ||
- name: Convert role to collection format | ||
run: | | ||
set -euxo pipefail | ||
TOXENV=collection lsr_ci_runtox | ||
coll_dir=".tox/ansible_collections/$LSR_ROLE2COLL_NAMESPACE/$LSR_ROLE2COLL_NAME" | ||
# ansible-lint action requires a .git directory??? | ||
# https://github.com/ansible/ansible-lint/blob/main/action.yml#L45 | ||
mkdir -p "$coll_dir/.git" | ||
- name: Run ansible-lint | ||
uses: ansible/ansible-lint@v24 | ||
with: | ||
working_directory: .tox/ansible_collections/${{ env.LSR_ROLE2COLL_NAMESPACE }}/${{ env.LSR_ROLE2COLL_NAME }} |
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,38 @@ | ||
--- | ||
name: Check for ansible_managed variable use in comments | ||
on: # yamllint disable-line rule:truthy | ||
pull_request: | ||
merge_group: | ||
branches: | ||
- main | ||
types: | ||
- checks_requested | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
permissions: | ||
contents: read | ||
jobs: | ||
ansible_managed_var_comment: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Update pip, git | ||
run: | | ||
set -euxo pipefail | ||
python3 -m pip install --upgrade pip | ||
sudo apt update | ||
sudo apt install -y git | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install tox, tox-lsr | ||
run: | | ||
set -euxo pipefail | ||
pip3 install "git+https://github.com/linux-system-roles/[email protected]" | ||
- name: Run ansible-plugin-scan | ||
run: | | ||
set -euxo pipefail | ||
TOXENV=ansible-managed-var-comment lsr_ci_runtox |
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,38 @@ | ||
--- | ||
name: Ansible Plugin Scan | ||
on: # yamllint disable-line rule:truthy | ||
pull_request: | ||
merge_group: | ||
branches: | ||
- main | ||
types: | ||
- checks_requested | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
permissions: | ||
contents: read | ||
jobs: | ||
ansible_plugin_scan: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Update pip, git | ||
run: | | ||
set -euxo pipefail | ||
python3 -m pip install --upgrade pip | ||
sudo apt update | ||
sudo apt install -y git | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install tox, tox-lsr | ||
run: | | ||
set -euxo pipefail | ||
pip3 install "git+https://github.com/linux-system-roles/[email protected]" | ||
- name: Run ansible-plugin-scan | ||
run: | | ||
set -euxo pipefail | ||
TOXENV=ansible-plugin-scan lsr_ci_runtox |
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,47 @@ | ||
--- | ||
name: Ansible Test | ||
on: # yamllint disable-line rule:truthy | ||
pull_request: | ||
merge_group: | ||
branches: | ||
- main | ||
types: | ||
- checks_requested | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
env: | ||
LSR_ROLE2COLL_NAMESPACE: fedora | ||
LSR_ROLE2COLL_NAME: linux_system_roles | ||
permissions: | ||
contents: read | ||
jobs: | ||
ansible_test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Update pip, git | ||
run: | | ||
set -euxo pipefail | ||
python3 -m pip install --upgrade pip | ||
sudo apt update | ||
sudo apt install -y git | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install tox, tox-lsr | ||
run: | | ||
set -euxo pipefail | ||
pip3 install "git+https://github.com/linux-system-roles/[email protected]" | ||
- name: Convert role to collection format | ||
run: | | ||
set -euxo pipefail | ||
TOXENV=collection lsr_ci_runtox | ||
- name: Run ansible-test | ||
uses: ansible-community/ansible-test-gh-action@release/v1 | ||
with: | ||
testing-type: sanity # wokeignore:rule=sanity | ||
collection-src-directory: .tox/ansible_collections/${{ env.LSR_ROLE2COLL_NAMESPACE }}/${{ env.LSR_ROLE2COLL_NAME }} |
Oops, something went wrong.