Skip to content

Commit 384f42b

Browse files
committed
Fix linter issues
1 parent cb7d982 commit 384f42b

20 files changed

+22
-20
lines changed

.github/workflows/stackhpc-all-in-one.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ jobs:
271271
-v $(pwd):/stack/kayobe-automation-env/src/kayobe-config \
272272
-e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
273273
${{ steps.kayobe_image.outputs.kayobe_image }} \
274-
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/playbook-run.sh etc/kayobe/ansible/fixes/fix-hostname.yml
274+
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/playbook-run.sh etc/kayobe/ansible${{ inputs.upgrade && '/' || 'fixes/' }}fix-hostname.yml
275275
env:
276276
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
277277

@@ -282,7 +282,7 @@ jobs:
282282
-v $(pwd):/stack/kayobe-automation-env/src/kayobe-config \
283283
-e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
284284
${{ steps.kayobe_image.outputs.kayobe_image }} \
285-
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/playbook-run.sh etc/kayobe/ansible/maintenance/reboot.yml -e reboot_with_bootstrap_user=true
285+
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/playbook-run.sh etc/kayobe/ansible${{ inputs.upgrade && '/' || 'maintenance/' }}reboot.yml -e reboot_with_bootstrap_user=true
286286
env:
287287
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
288288

@@ -292,7 +292,7 @@ jobs:
292292
-v $(pwd):/stack/kayobe-automation-env/src/kayobe-config \
293293
-e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
294294
${{ steps.kayobe_image.outputs.kayobe_image }} \
295-
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/playbook-run.sh '$KAYOBE_CONFIG_PATH/ansible/tools/growroot.yml'
295+
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/playbook-run.sh '$KAYOBE_CONFIG_PATH/ansible${{ inputs.upgrade && '/' || 'tools/' }}growroot.yml'
296296
env:
297297
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
298298

@@ -322,7 +322,7 @@ jobs:
322322
-v $(pwd):/stack/kayobe-automation-env/src/kayobe-config \
323323
-e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
324324
${{ steps.kayobe_image.outputs.kayobe_image }} \
325-
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/playbook-run.sh etc/kayobe/ansible/tools/configure-aio-resources.yml
325+
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/playbook-run.sh etc/kayobe/ansible${{ inputs.upgrade && '/' || 'tools/' }}configure-aio-resources.yml
326326
env:
327327
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
328328

.github/workflows/stackhpc-pull-request.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ jobs:
100100
- name: Linting code 🧪
101101
run: |
102102
ansible-lint -v --force-color etc/kayobe/ansible/.
103+
env:
104+
KAYOBE_CONFIG_PATH: ${{ github.workspace }}/etc/kayobe/
103105

104106
# A skipped job is treated as success when used as a required status check.
105107
# The registered required status checks refer to the name of the job in the

doc/source/configuration/wazuh.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ vault file which will be placed in ``$KAYOBE_CONFIG_PATH/deployment/wazuh-secret
252252
If using environments it ends up in ``$KAYOBE_CONFIG_PATH/environments/<env_name>/deployment/wazuh-secrets.yml``
253253
Remember to encrypt!
254254

255-
Wazuh secrets template is located in ``$KAYOBE_CONFIG_PATH/ansible/templates/deployment/wazuh-secrets.yml.j2``.
255+
Wazuh secrets template is located in ``$KAYOBE_CONFIG_PATH/ansible/templates/wazuh-secrets.yml.j2``.
256256
It will be used by wazuh secrets playbook to generate wazuh secrets vault file.
257257

258258

etc/kayobe/ansible/deployment/deploy-os-capacity-exporter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
- name: Template clouds.yml
5050
ansible.builtin.template:
51-
src: templates/os_capacity-clouds.yml.j2
51+
src: "{{ lookup('env', 'KAYOBE_CONFIG_PATH') }}/ansible/templates/os_capacity-clouds.yml.j2"
5252
dest: /opt/kayobe/os-capacity/clouds.yaml
5353
register: clouds_yaml_result
5454

etc/kayobe/ansible/deployment/smartmon-tools.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
- name: Copy smartmon.py and nvmemon.sh from scripts folder
5858
ansible.builtin.copy:
59-
src: scripts/{{ item }}
59+
src: "{{ lookup('env', 'KAYOBE_CONFIG_PATH') }}/ansible/scripts/{{ item }}"
6060
dest: /usr/local/bin/{{ item }}
6161
owner: root
6262
group: root

etc/kayobe/ansible/deployment/wazuh-secrets.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
- name: Template new secrets
2020
no_log: true
2121
ansible.builtin.template:
22-
src: wazuh-secrets.yml.j2
22+
src: "{{ lookup('env', 'KAYOBE_CONFIG_PATH') }}/ansible/templates/wazuh-secrets.yml.j2"
2323
dest: "{{ wazuh_secrets_path }}"
2424

2525
- name: In-place encrypt wazuh-secrets

etc/kayobe/ansible/deployment/write-github-workflows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
- name: Write Kayobe Automation Workflows for GitHub
33
hosts: github-writer
44
vars:
5-
github_output_directory: "{{ kayobe_config_path }}/../../.github/workflows"
5+
github_output_directory: "{{ lookup('env', 'KAYOBE_CONFIG_PATH') }}/../../.github/workflows"
66
roles:
77
- stackhpc.kayobe_workflows.github

etc/kayobe/ansible/deployment/write-gitlab-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
- name: Write Kayobe Automation Pipeline for GitLab
33
hosts: gitlab-writer
44
vars:
5-
gitlab_output_directory: "{{ kayobe_config_path }}/../../"
5+
gitlab_output_directory: "{{ lookup('env', 'KAYOBE_CONFIG_PATH') }}/../../"
66
roles:
77
- stackhpc.kayobe_workflows.gitlab

etc/kayobe/ansible/fixes/fix-hostname.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
become: true
2424

2525
- name: Reboot hosts
26-
import_playbook: "{{ playbook_dir | realpath }}/maintenance/reboot.yml"
26+
import_playbook: "{{ lookup('env', 'KAYOBE_CONFIG_PATH') }}/ansible/maintenance/reboot.yml"
2727
vars:
2828
reboot_hosts: fix-hostname
2929
reboot_with_bootstrap_user: true

etc/kayobe/ansible/fixes/fix-houston.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
- name: Create systemd service for -ovs network interface
2525
ansible.builtin.template:
26-
src: fix-houston-interface.service.j2
26+
src: "{{ lookup('env', 'KAYOBE_CONFIG_PATH') }}/ansible/templates/fix-houston-interface.service.j2"
2727
dest: /etc/systemd/system/fix-houston-{{ item }}.service
2828
loop: "{{ neutron_bridge_name.split(',') }}"
2929
vars:

0 commit comments

Comments
 (0)