Skip to content

[Draft] Add explicit Noah role provisioning - dual format (list, dict) - #929

Open
patrykw-splunk wants to merge 5 commits into
developfrom
feature/noah-dual-format-conf
Open

[Draft] Add explicit Noah role provisioning - dual format (list, dict)#929
patrykw-splunk wants to merge 5 commits into
developfrom
feature/noah-dual-format-conf

Conversation

@patrykw-splunk

Copy link
Copy Markdown

No description provided.

Vivek Reddy and others added 5 commits August 26, 2026 19:15
…tasks

The Noah pre_auth.yml was hardcoded to dict-format access
(splunk.conf.server.content.noahService). This fails when
splunk.conf is a list (the operator's native ConfFileEntry format).

Fix: detect whether splunk.conf is a mapping or list and extract
the noahService stanza accordingly. Apply the same dual-format
pattern to the CSPL-4006 SSL replication port checks in
indexer_clustering.yml and setup_multisite.yml.

The existing dict2items fallback in main.yml is preserved for
backward compatibility with users passing splunk.conf as a dict.

Changes:
- pre_auth.yml: two set_fact branches (dict vs list) for noah_service_stanza
- indexer_clustering.yml: dual-format extraction for SSL replication check
- setup_multisite.yml: same for multisite
- test_noah_role_configuration.py: assert both format branches exist
refactor: standardize splunk.conf on native list format (remove dict-format access)
@patrykw-splunk
patrykw-splunk requested a review from a team as a code owner September 3, 2026 13:41
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