-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit includes a properly configured ansible-lint CI job and a large amount of changes to the existing playbooks so that the new CI passes. Some fixes were applied automatically with the --fix argument, many were made manually. There is some risk that the changes have altered the behaviour of the playbooks.
- Loading branch information
1 parent
161fbd7
commit 0be7a56
Showing
70 changed files
with
625 additions
and
568 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,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 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 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 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 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 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 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 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 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 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 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 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 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,16 @@ | ||
--- | ||
# 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 | ||
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 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 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.