-
Notifications
You must be signed in to change notification settings - Fork 23
Add ansible-lint CI #1368
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
Merged
Merged
Add ansible-lint CI #1368
Changes from 8 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
99a0fed
CI: Add Ansible lint job
markgoddard 0198462
wazuh: Use relative path to roles
markgoddard 235b1c3
ansible-lint: Fix include_role parameter name
markgoddard 161fbd7
Merge branch 'stackhpc/2024.1' into 2024.1-ansible-lint-alex
Alex-Welsh 0be7a56
Add ansible-lint CI
Alex-Welsh 9f84bc7
Ansible-lint revert line-length limit
Alex-Welsh 321acad
ansible-lint - Apply suggestions from code review
Alex-Welsh f6e25b2
Merge branch 'stackhpc/2024.1' into 2024.1-ansible-lint-alex
Alex-Welsh c81275f
Apply suggestions from code review
Alex-Welsh f02bb5e
Merge branch 'stackhpc/2024.1' into 2024.1-ansible-lint-alex
Alex-Welsh 6bc5e8b
Add .ansible-lint config file
Alex-Welsh 74c5de5
Update ansible-lint after sync
Alex-Welsh 8a21f63
Move stray comment line
Alex-Welsh f45dcd4
Fix growroot playbook after ansible-lint changes
Alex-Welsh 8c0039d
Merge branch 'stackhpc/2024.1' into 2024.1-ansible-lint-alex
Alex-Welsh 8839b2f
Add bash executable for cmd shell invocations
Alex-Welsh e6a83b5
Merge branch 'stackhpc/2024.1' into 2024.1-ansible-lint-alex
Alex-Welsh dcfbf7f
Misc minor fixes
Alex-Welsh 0a22977
Merge branch 'stackhpc/2024.1' into 2024.1-ansible-lint-alex
Alex-Welsh 76e865e
Merge remote-tracking branch 'origin/stackhpc/2024.1' into 2024.1-ans…
Alex-Welsh e84937e
Fix listen/when tags in pulp-artifact-upload.yml
Alex-Welsh adcbe22
Merge branch 'stackhpc/2024.1' into 2024.1-ansible-lint-alex
Alex-Welsh d997f87
Merge branch 'stackhpc/2024.1' into 2024.1-ansible-lint-alex
priteau File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 @@ | ||
# This file contains ignores rule violations for ansible-lint | ||
etc/kayobe/ansible/vault-deploy-barbican.yml fqcn[action-core] | ||
etc/kayobe/ansible/vault-generate-backend-tls.yml fqcn[action-core] | ||
etc/kayobe/ansible/vault-generate-internal-tls.yml fqcn[action-core] | ||
etc/kayobe/ansible/vault-generate-test-external-tls.yml fqcn[action-core] | ||
etc/kayobe/ansible/rabbitmq-reset.yml command-instead-of-module | ||
etc/kayobe/ansible/ubuntu-upgrade.yml syntax-check[missing-file] |
This file contains hidden or 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
This file contains hidden or 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 |
---|---|---|
@@ -1,47 +1,47 @@ | ||
--- | ||
- name: ADVise run | ||
hosts: localhost | ||
gather_facts: no | ||
gather_facts: false | ||
tags: | ||
- advise | ||
vars: | ||
venv: "~/venvs/advise-review" | ||
venv: ~/venvs/advise-review | ||
input_dir: "{{ lookup('env', 'PWD') }}/overcloud-introspection-data" | ||
output_dir: "{{ lookup('env', 'PWD') }}/review" | ||
advise_pattern: ".*.eval" # Uses regex | ||
advise_pattern: .*.eval # Uses regex | ||
tasks: | ||
- name: Install dependencies | ||
pip: | ||
ansible.builtin.pip: | ||
virtualenv: "{{ venv }}" | ||
name: | ||
- git+https://github.com/stackhpc/ADVise | ||
state: latest | ||
virtualenv_command: "python3 -m venv" | ||
virtualenv_command: python3 -m venv | ||
|
||
- name: Create data directory | ||
file: | ||
path: '{{ output_dir }}/data' | ||
ansible.builtin.file: | ||
path: "{{ output_dir }}/data" | ||
state: directory | ||
|
||
- name: Extract data | ||
shell: | ||
ansible.builtin.shell: | ||
cmd: > | ||
{{ venv }}/bin/m2-extract {{ input_dir }}/*.json --output_dir {{ output_dir }}/data | ||
|
||
- name: Create review directory | ||
file: | ||
path: '{{ output_dir }}/results' | ||
ansible.builtin.file: | ||
path: "{{ output_dir }}/results" | ||
state: directory | ||
|
||
- name: Process data | ||
shell: | ||
ansible.builtin.shell: | ||
cmd: > | ||
{{ venv }}/bin/advise-process | ||
-I ipmi | ||
-p '{{ output_dir }}/data/extra-hardware/{{ advise_pattern }}' | ||
-o '{{ output_dir }}' | ||
|
||
- name: Visualise data | ||
command: > | ||
ansible.builtin.command: > | ||
{{ venv }}/bin/advise-visualise | ||
--output_dir '{{ output_dir }}' |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
---|---|---|
@@ -1,9 +1,22 @@ | ||
--- | ||
# Deploy Ceph via Cephadm. Create EC profiles, CRUSH rules, pools and keys. | ||
- import_playbook: cephadm-deploy.yml | ||
- import_playbook: cephadm-commands-pre.yml | ||
- import_playbook: cephadm-ec-profiles.yml | ||
- import_playbook: cephadm-crush-rules.yml | ||
- import_playbook: cephadm-pools.yml | ||
- import_playbook: cephadm-keys.yml | ||
- import_playbook: cephadm-commands-post.yml | ||
- name: Import Cephadm deploy playbook | ||
import_playbook: cephadm-deploy.yml | ||
|
||
- name: Import Cephadm commands pre playbook | ||
import_playbook: cephadm-commands-pre.yml | ||
|
||
- name: Import Cephadm ec profiles playbook | ||
Alex-Welsh marked this conversation as resolved.
Show resolved
Hide resolved
|
||
import_playbook: cephadm-ec-profiles.yml | ||
|
||
- name: Import Cephadm crush rules playbook | ||
import_playbook: cephadm-crush-rules.yml | ||
|
||
- name: Import Cephadm pools playbook | ||
import_playbook: cephadm-pools.yml | ||
|
||
- name: Import Cephadm keys playbook | ||
import_playbook: cephadm-keys.yml | ||
|
||
- name: Import Cephadm commands post playbook | ||
import_playbook: cephadm-commands-post.yml |
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.