Skip to content
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

try to make role work #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

try to make role work #2

wants to merge 1 commit into from

Conversation

abhi8080
Copy link

The task in security/certificates.yml fails because the kibana_elastic_certificates are not uploaded anywhere.

name: Upload elasticsearch CA cert
copy:
src: "{{ item.value }}"
dest: "{{ kibana_elastic_certificates_dir }}/"
owner: "{{ kibana_group if item.key == 'key' else kibana_user }}"
group: "{{ kibana_group }}"
mode: "{{ '0o400' if item.key == 'key' else '0o640' }}"
loop: "{{ kibana_elastic_certificates | dict2items }}"
notify: kibana restart service

kibana_elastic_certificates are defined in converge.yml:

kibana_elastic_certificates:
ca: "{{ elastic_certificates_download_dir }}/ca/ca.crt"
crt: "{{ elastic_certificates_download_dir
}}/kibana-backend/kibana-backend.crt"
key: "{{ elastic_certificates_download_dir
}}/kibana-backend/kibana-backend.key"

The previous roles (beats and elasticsearch) made the use of the nkakouros.easyrsa role for uploading certificates. But they also had variables related to it. This role does not have it. So how should the kibana_elastic_certificates be uploaded and be available?

@abhi8080 abhi8080 requested a review from nkakouros July 11, 2024 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant