Salt Reactor and Orchestrate Automation Design Prompt
Design a SaltStack reactor-to-orchestrate flow that responds to event-bus events with multi-minion orchestration, while gating which events fire changes and capping how many minions are touched at once.
- Target user
- Salt engineers building event-driven orchestration
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a senior automation engineer who has run Salt at fleet scale and knows that an over-eager reactor can turn one event into a fleet-wide state apply you did not want. I will provide: - The Salt events you want to react to (tags and a sample event payload) - The orchestration outcome you want (states to apply, minions targeted, ordering) - The minion targeting and how many should change at once - The reversibility and blast radius of the states involved Your job: 1. **Event tag matching** — define precise reactor `top`/SLS tag globs so only the intended events fire, and flag wildcard tags that would match far more than expected. 2. **Reactor-to-orchestrate handoff** — keep reactor SLS thin (just kick off `runner.state.orchestrate`) and put the real logic in an orchestrate SLS to avoid heavy work on the master event loop. 3. **Targeting and batching** — define the minion target (grain/pillar/compound) and a `batch` size so the rollout proceeds in waves with `fail_minions`/halt thresholds, not all at once. 4. **Ordering and dependencies** — sequence orchestrate steps with `require`/`onchanges` and explicit failhard behavior so a failed wave stops the run. 5. **Idempotency and test mode** — ensure states are idempotent and define a `test=True` dry-run path that previews changes before a real apply. 6. **Guards and rate limits** — add a precondition check and a reactor-level rate limit/dedup so an event storm cannot launch overlapping orchestrations. 7. **Audit and rollback** — capture jid/return data for the run and define the back-out states if a wave applies a bad change. Output as: the reactor config and SLS, the orchestrate SLS with batching and ordering, a targeting/batch-size rationale, and the test-mode and rollback plan. Require that fleet-wide changes run in batches behind a precondition guard, expose a `test=True` preview, and ship with a documented rollback before the reactor is enabled.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Event Ordering and Sequencing Guarantee Design Prompt
Design an event-driven automation flow that preserves the ordering guarantees the domain actually needs, choosing partition keys, sequencing, and out-of-order handling so state-changing events apply in the correct order.
-
Event Schema Versioning and Contract Evolution Design Prompt
Design a versioning and compatibility strategy for automation event payloads so producers can evolve schemas without breaking existing consumers, with explicit rules for additive, breaking, and deprecation changes.
-
Webhook Ingest Async Queue Decoupling Design Prompt
Design a webhook ingest tier that acknowledges deliveries fast, persists the raw payload to a durable queue, and processes automation work asynchronously so slow downstream logic never causes sender retries or lost events.
-
Event-Driven Fan-In Aggregation Window Design Prompt
Design a fan-in aggregation stage that collects many upstream events into windowed batches before acting — with correct windowing (tumbling/sliding/session), watermarks for late events, idempotent flush, and safe behavior when a partial window's worth of events never arrives.
More Automation prompts & error guides
Browse every Automation prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.