Skip to content

Clean up pass-through variables and standardize defaults#90

Merged
Oddly merged 1 commit intomainfrom
fix/collection-cleanup
Mar 9, 2026
Merged

Clean up pass-through variables and standardize defaults#90
Oddly merged 1 commit intomainfrom
fix/collection-cleanup

Conversation

@Oddly
Copy link
Owner

@Oddly Oddly commented Mar 9, 2026

Summary

  • Remove 7 pure pass-through elasticsearch.yml variables (elasticsearch_action_destructive_requires_name, elasticsearch_recovery_max_bytes_per_sec, and the 5 elasticsearch_http_cors_* settings) — these had no role-side behavior and should go through elasticsearch_extra_config instead
  • Extract _elasticsearch_managed_keys list into vars/main.yml (was duplicated in both the template and the conflict warning task)
  • Add explicit elasticsearch_extra_config: {} default with documentation
  • Mark kibana_sniff_on_start and kibana_sniff_on_connection_fault as deprecated (removed in 9.x)
  • Change kibana_config_backup default from true to false (matches ES and Logstash)
  • Fix beats version guard (> 7>= 8)
  • Document why elasticsearch_manage_logging defaults to false
  • Migrate molecule custom scenario to test CORS/destructive/recovery via extra_config

Test plan

  • elasticsearch_custom scenario passes (validates extra_config pass-through renders correctly)
  • elasticsearch_default scenario passes (validates cluster_settings still works)
  • Linting passes

…e defaults

Remove elasticsearch_action_destructive_requires_name, elasticsearch_recovery_max_bytes_per_sec,
and the five elasticsearch_http_cors_* variables — these were pure pass-through to elasticsearch.yml
with no role-side behavior. Users should set them via elasticsearch_extra_config instead.

Extract the _elasticsearch_managed_keys list (used by both the template filter and the conflict
warning task) into vars/main.yml so it's defined once. Add elasticsearch_extra_config: {} as an
explicit default. Mark kibana_sniff_on_start and kibana_sniff_on_connection_fault as deprecated
(removed in 9.x). Change kibana_config_backup default from true to false to match ES and Logstash.
Fix beats version guard (> 7 to >= 8). Document why elasticsearch_manage_logging defaults to false.
@Oddly Oddly merged commit 7411156 into main Mar 9, 2026
30 checks passed
@Oddly Oddly deleted the fix/collection-cleanup branch March 9, 2026 12:50
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