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

fix: assert checks and task status for idempotent #73

Merged
merged 9 commits into from
Jan 11, 2025
Merged

Conversation

AchimHaaser1
Copy link
Collaborator

…riable checks to main.yml, remove message with string sample-sap-monitoring-parameters.yml, show ansible results as 'OK' not 'changed' executing port checks and sap-hana-keystore checks, converting string to integer in template templates/sap_host_exporter-DI.conf.j2 to prevent typecast error

…riable checks to main.yml, remove message with string sample-sap-monitoring-parameters.yml, show ansible results as 'OK' not 'changed' executing port checks and sap-hana-keystore checks, converting string to integer in template templates/sap_host_exporter-DI.conf.j2 to prevent typecast error
@AchimHaaser1
Copy link
Collaborator Author

pre-commit passed,
hana-keystore-check already has a check on the created keystore-file in hanadb-exporter-configuration.yml,
thus the check did not need a check on the register status. SImply restricted to 'failed' and 'OK'.

Copy link
Collaborator

@surajsbharadwaj surajsbharadwaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see comments for each file @AchimHaaser1

Also please keep it consistent for all integer types:
Ansible will automatically try to infer the type of the variable based on its content. For example:

If you provide a value like "42", Ansible will treat it as a string, but you can convert it to an integer using | int.

roles/monitoring_sap/tasks/main.yml Outdated Show resolved Hide resolved
roles/monitoring_sap/tasks/main.yml Outdated Show resolved Hide resolved
@surajsbharadwaj surajsbharadwaj changed the title feat.: changes to not showing secrets using assert command, moving va… fix: assert checks and task status for idempotent Jan 3, 2025
… when-statement. Warning: Collection community.general does not support Ansible version 2.14.14.
…check status of hana-keytore to changed , renamed assertion titles, removed paranthesis of asserted variables
…md starts, adapt tasks, templates sap_host_exporter-DI.conf.j2 and prometheus-sap_monitoring_nr.j2
@surajsbharadwaj surajsbharadwaj merged commit 8fe9126 into main Jan 11, 2025
0 of 4 checks passed
@surajsbharadwaj surajsbharadwaj deleted the monitoring branch January 11, 2025 13:49
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