Skip to content

Commit 0ee1efd

Browse files
committed
Fix linter issues
1 parent 1b9aee0 commit 0ee1efd

19 files changed

+18
-16
lines changed

.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:

etc/kayobe/ansible/maintenance/octavia-amphora-image-register.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
lookup('env', 'OS_PROJECT_NAME') != 'service'
1313
1414
- name: Download Amphora image from Ark
15-
ansible.builtin.import_playbook: pulp-amphora-image-download.yml
15+
ansible.builtin.import_playbook: ../pulp/pulp-amphora-image-download.yml
1616
when: download_amphora_from_ark | bool
1717

1818
- name: Register an Octavia Amphora image in Glance

0 commit comments

Comments
 (0)