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

molecule tests #19

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open

molecule tests #19

wants to merge 30 commits into from

Conversation

abhi8080
Copy link

No description provided.

@abhi8080 abhi8080 requested a review from nkakouros June 19, 2024 20:57
@abhi8080
Copy link
Author

abhi8080 commented Jul 6, 2024

I have made all the tasks pass, and also written molecule tests. Should I containerize the environment and save the image so that there is not dependency problems in the future? Also, what should I do first, upgrade this role to version 8, or start with the ansible-role-elasticsearch role?

@abhi8080 abhi8080 changed the title install python3.7 in prepare.yml molecule tests Jul 6, 2024
@abhi8080
Copy link
Author

abhi8080 commented Jul 6, 2024

Also, the value of the 'beat_flavour' variable was 'auditbeat', so I think I would need to test with other beats as well? And also with a Windows image?

@abhi8080
Copy link
Author

abhi8080 commented Jul 8, 2024

In the Github Workflows, when running the role, it says that "Failed to create temporary directory" when trying to gather facts. When I run other tasks before that, I get that the container is not running. When I do some debugging on the workflow runner container, I can see that the docker container exits directly after being created. I get this error sometimes when running the role locally on my computer, but it usually goes away when I run for the second time.

@abhi8080
Copy link
Author

I am working on writing a role to install Elastic Beats via Docker containers, as we discussed during the last meeting. I have created a role that does this with Elasticsearch, but when working with Elastic Beats, it does not work. When creating an auditbeat docker container manually, and running it, I get this error:

"Exiting: 1 error: failed to create audit client: failed to get audit status: operation not permitted","

I have debugged this a lot and have not found a solution. I was using this link when working with the audibeat docker container: https://www.elastic.co/guide/en/beats/auditbeat/current/running-on-docker.html.

@nkakouros
Copy link
Collaborator

Probably you need to run the container in privileged mode or with specific capabilities added. Ask chatgpt about it.

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.

2 participants