Repository navigation
Conversation
Add azure_rm_searchindexer and azure_rm_searchindexer_info to manage indexers in an Azure AI Search service (data plane), built on the azure-search-documents SDK via the shared AzureRMSearchDataPlaneMixin (SearchIndexerClient), mirroring the merged azure_rm_searchindex pattern. An indexer is the ingestion pipeline that reads from a data source, optionally enriches through a skillset, and writes into a target index. Idempotent and check-mode aware; state=run and state=reset are on-demand actions. On a full-replace PUT update the module merges user-supplied keys onto the existing indexer to preserve unsupplied settings (target/data source/skillset/schedule/mappings/parameters). target_index_name and data_source_name are required only on create. The info module can optionally return execution status via include_status. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Stands up a search service (AAD data-plane auth + Search Service Contributor), a blob data source and a target index, then exercises create/idempotent/info+status/update/ reset/run/delete. A description-only update verifies the PUT merge preserves the target index, data source, schedule and field mappings. Uses azure_rm_searchdatasource (PR ansible-collections#2384) and azure_rm_searchindex, so this target depends on the data source module. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SUMMARY
Adds two new modules to manage indexers in an Azure AI Search service (data
plane), the final piece of the Azure AI Search module set after
azure_rm_searchindex(#2377),
azure_rm_searchdatasource(#2384),azure_rm_searchskillset(#2385) andazure_rm_searchsynonymmap(#2386):azure_rm_searchindexer— create, update, delete, run, and reset an indexer (theingestion pipeline that reads a data source, optionally enriches through a skillset,
and writes into a target index). Idempotent and check-mode aware;
state=runandstate=resetare on-demand actions.azure_rm_searchindexer_info— get a specific indexer or list all indexers;include_status=truealso returns the indexer's execution status.Built on the
azure-search-documentsSDK via the sharedAzureRMSearchDataPlaneMixin(SearchIndexerClient), mirroring the mergedazure_rm_searchindex.Implementation notes:
create_or_update_indexeris a full-replace PUT, so an update merges theuser-supplied keys onto the existing indexer to preserve settings that were not
resupplied (target index, data source, skillset, schedule, field mappings,
parameters).
target_index_nameanddata_source_nameare required only when creating.Validated with
ansible-test sanity --dockerand a live integration run in eastus(
ok=37 failed=0): create / idempotent re-create / info + execution status / scheduleupdate / description-only update (which asserts the PUT preserves the target index,
data source, schedule and field mappings) / reset / run / delete / idempotent delete.
Depends on #2384 (
azure_rm_searchdatasource): the integration target provisionsa data source via that module, so this PR should merge after it.
ISSUE TYPE
New Module Pull Request
COMPONENT NAME
azure_rm_searchindexer
azure_rm_searchindexer_info
ADDITIONAL INFORMATION
The CI service principal needs
Microsoft.Authorization/roleAssignments/write; theintegration test grants the test principal the Search Service Contributor role
to manage data-plane object definitions.
Assisted-by: Claude Opus 4.8 (Anthropic)