Future work for reproducible Splunk Enterprise labs — a shared framework prefix, agent-ready spa CLI, Terraform AWS and Splunk Operator for Kubernetes, without a full repo checkout per lab.
Shipped work stays checked. Git clone remains the contributor path. Splunk installers, licenses, and Professional Services baseconfig apps stay out of band (Software/ path in config).
Install the shared framework once (playbooks, Terraform, skills, spa binary). spa init writes config only for that environment. Controllers should feel the same on macOS and Linux: install the prefix, then spa init / spa deploy — no per-env git clone.
Contract: SPA_HOME is the framework (ansible/, Terraform modules, skills/, bin/). SPA_ENV_DIR is the Splunk environment (splunk_config.yml, optional .spa.yml, inventory/hosts, Terraform state, saved_base_config_apps/). Unset both → the git clone; today's ansible-playbook workflow is unchanged. When they differ, do not write env state into the prefix (an upgrade of ~/.local/share/spa or /opt/spa would lose it).
Ship M1–M3 on one integration branch, then 3.0 when that branch is ready to merge to master. Do not cut a minor per milestone. Pickup: the issue for that milestone (not a Cursor plan). After a milestone is done: check it here, close the issue, merge into master.
Branching: PRs land on master. M1–M3 used a distribution integration branch (off main/master) and dist/mN milestone branches; 3.0.0 shipped and that extra integration branch is retired. Clone remains the contributor path.
- M1 Path contract + env scaffold — #46
- M2
spaCLI over the clone prefix — #47 - M3
install.sh+ framework tarball — #48
- Semver GitHub Releases from CHANGELOG.md (RELEASE.md)
-
SPA_HOME/SPA_ENV_DIRpath contract; operatorspadoes not treat clone-equalSPA_HOME/SPA_ENV_DIRas an env (see docs/migrate.md). Clone remains the contributor path (M1) -
spa initscaffolds an env dir (example config,.spa.yml; no copy ofansible/) and migrates an existing clone env (config, inventory, Terraform state) (M1 / M2) - Separate env dirs against one clone
SPA_HOME(M1) -
bin/spa_venv.shshared venv (framework, envs, tests);sparesolves cwd /--env/ the registered default; no Homebrew Ansible/Pydantic requirement (M1) -
spacommands use the shared prefix (init,validate,deploy,suspend,resume,destroy,hosts,run; host create isspa hosts provision; AWS discovery isspa provider aws; licenses isspa licenses list) (M2) -
spa run list/NAME --helpfrom# spa-run:metadata; 3.0 operator stems (2.x names still resolve with a hint) (M2) -
--hostsondeploy,run,suspend,resume, andhosts list(inventory names or roles) (M2) - Mutating ops confirm in
LocalSpaSession(named human prompt; agents/GUI pass--yesand neverinput()) (M2) -
spa suspend/spa resumefor AWS compute (keep Terraform state and EBS; resume refreshes inventory addresses) (M2) - Release tarball of the framework (exclude
tests/,.git, labconfig/) (M3) -
install.sh(GitHubreleases/latest/download/install.shpiped to sh): default prefix${XDG_DATA_HOME:-~/.local/share}/spa, launcher~/.local/bin/spa, or--prefix/SPA_PREFIX; creates the venv (M3) - Documented extract-anywhere: unpack the tarball, set
SPA_HOME, runspafrom that tree (M3) - User-level Software / baseconfig / apps pointers (
~/.config/spa/paths.yml;spa init --software-dir) so prefix installs do not look next to~/.local/share/spa— #73 -
install.sh --uninstall(prefix + launcher only; never env dirs / Terraform / AWS) — #72 - Operator self-update:
spa version/spa version check/spa self updatefrom GitHub Releases for a prefix install; clone staysgit pull— #172 - Optional later: native Linux packages (
.deb/.rpm) from the same tarball, unpack to/opt/spa;install.shprefers the distro package when it matches - Optional later: Homebrew tap of the same tarball (no brew Ansible/Pydantic;
spa_venvstays the Python path) - Use uv inside
spa_venv.sh/install.sh(pinned binary; keepspa venvand.venv). Not an operatoruvinstall. Galaxy collections unchanged. Optional lockfile /uv python installwhen the host has no usable Python. — #83 - Optional later: Ansible collection extract of roles/plugins — not the primary install
Modeled on cup agent mode (detect agent env, JSON envelope, agent schema, -y).
- Portable skills under skills/spa/ + Cursor
/spa-create-config(docs/contributing.md) - Agent-mode
spa: auto-detect agent env, JSON envelope withschema_version,spa agent schema,--agent/--no-agent,-yfor destructive ops, parse-error JSON - Explicit
spaactions: a catalog isspa COMMAND list; a missing action or a retired--list/--list-*flag exits 2 and names the legal command — #99 - Promote
spa provider awsandspa shellonto the versioned agent envelope; named aws actions replace parent flags; live SSH/SCP stay native text — #133 -
spa.apibackend session (open_session/LocalSpaSession) for the CLI and a future GUI; optional remote daemon later; skills stay onspa. See the controller architecture. - Fold SSH/SCP into
spa hosts(list/ssh/copy);spa shell/spa shremain SSH aliases (nospa shell -l) - Shell completion for every
spacommand (spa completion bash|zshprints the script;spa shellstays SSH) — #107 - Stable CLI UX and output contract: one command language, usage errors that name how to find a value, agent
--helpfromCOMMAND_SCHEMA, canonical names in the schema,spa venvactions, and non-TTY confirmation — #108, #105 - Map top-level ansible/ playbooks to
spa run(and namedspa hosts provision/deploy/destroy) — every playbook is a main entry point; do not require rawansible-playbookfor day-to-day use. Discover withspa run list; inspect withspa run NAME --help. - Env-dir playbook/Terraform logs + compact progress (full transcript in
$SPA_ENV_DIR/logs/; agents get a small envelope +logpath, not the dump) — #71 - Richer Ansible transcripts and upgrade progress (native lines in the run log, repeatable
-v, timestamps and color, one compact line per upgrade include) — #93 - Hide credentials in Ansible output (
no_log, stop putting secrets oncommand:argv) so-vcan stay native debug without leaking admin/Splunkbase/SHC/API secrets; keep agents off the transcript — #88 - Main
spaskill (cup-style/spaentry) plusspa environmentregistry — #54 -
spa skills install/spa skills remove(Claude / Cursor / Codex and the other cup IDE paths, plus Antigravity) from$SPA_HOME/skills/spa/— #55 - Agent first-run: checkout in-place venv,
spa doctorSoftware inventory (binaries / baseconfigs / licenses as warnings),install.shnames Software when those warnings appear; non-clone / repo URL uses the release prefix installer (not git clone) — #153 - Skills, agents, and runbooks pack (full operator loop; calls
spaonly). Add-app skills use Splunkbase/vendor install docs (when linked) to settarget_roles/splunk_config.yml, e.g. Unix TA Install — #67. Blocked by #55 - Local archive check, AWS lab settings, and apps/upgrade/health references:
splunk_archive_globwith the missing-file download URLs andSplunkDownloadConfigdescriptions;spa validate --splunk-config awsin create-config; Unix TA install docs, Java on the search host afterapps add 1841,upgrade.md, andhealth.md— #125. Split from #67. The nine AWS labspa config setkeys moved to #143 - Apps agent interface: search shows where app 833 belongs, a Splunkbase timeout is retryable,
spa apps auth checkreports whether credentials are set, andspa config merge itsi-minimalapplies the four-app ITSI set — #124. Slice of #67 - Splunkbase search / snippet / download (
spa apps; app-management skill; never display Splunkbase passwords — secrets-handling.md) — #59. Config add/remove is #76. - Optional cup integration (plugin; spa works without cup; cup uses
spa hosts copy/sshfor file transfer) — #62 - Single-app deploy/remove, list, optional app groups (from config only) — #68. Blocked by #76
- Pydantic schema +
spa validate(idxc / role pairing; supersedes a Vagrantfile-only idxc check) - Schema rejects duplicate roles on one host and double-quoted mapping keys and role names; quoted values stay valid — slice of #127
- Config write commands show a clear diff (
--show-diff) — slice of #127 -
spa config getfor a list selector returns found vs not found — slice of #127 - Validation errors include example YAML for the fix — slice of #127
- Docs include a verify-after-write practice — slice of #127
-
spa config audit --check-hand-edits— slice of #127 - Unresolved
spa config/spa appswrites returnok: falseand exit 1 — slice of #127 - Architecture-file apply is explicit and reports what was ingested (
spa architecture planstays read-only;spa init --architectureandspa architecture applyoverlay schema 1 and report ingested/skipped/remaining) - Version
splunk_config.ymlwith SPA-ownedschema_version(current is 1). Optional operatorconfig_versionis stored and never used for schema dispatch. A missing stamp is read as version 1;spa validatereports it and does not write;spa deployrefuses untilspa config migrate --yes. A later incompatible change ships a migration. — #117 -
spa validatechecks Splunk installers in Software for the architecture in config (splunk_architecture, default amd64) — #74 - Host ranges (
iter.numbers: "1..N") - Index definitions including
datatype: metric(splunk_indexes) - First-login splash disabled (ansible/roles/splunk_software/tasks/ui_config.yml)
- Per-host / multi-group
splunk_outputsin the inventory plugin (today hardcodedall; DS can already stage multiple output apps) - Optional CM deployment-client toggle (
org_all_deploymentclientvsmaster_deployment_client) - Deploy dry-run / plan (stale-fact preflight already in Unreleased)
- Documented
splunk_user(and local VirtualBox SSH user) insplunk_defaults - Disable remaining UI tours and info wizards after login
- Feature catalog + provider-independent topology examples; separate provider examples; spa init composes on select — #53
-
spa configtransactionally edits explicit schema paths and fragments;spa config explainandspa config searchare the schema walk;spa apps add/removeowns structured app entries. Catalog snippets remain examples — #76 - Remote-provider defaults (hostname, host-side Splunk download, TLS):
spa initfor a remote provider already mergesexamples/templates/remote-provider.yml; existing envs usespa config merge remote-provider --yes— #143 - User config templates:
spa config template list|save|show|removewrites~/.config/spa/examples/{topologies,providers,templates}and init,config topology,config provider, andconfig mergeapply them. Retirespa config templatesso the catalog islist— #113 - Certificate add/rotate + SPA vault for certs/keys (closes #30) — #69. Blocked by #52
- Credentials /
spa auth(profiles, Splunkbase, vault password; macOS Keychain; backwards compatible) — #52
- Slim README + structured user guide + rewrite AGENTS.md — #61
- AGENTS.md Install from this checkout (venv, skills, doctor,
spa environment set --software-dir) and Install from a repo URL (README one-liner; do not clone) — #153 - Generated docs/config.md of every
splunk_config.ymlkey (spa config schema --markdown), with code-derived descriptions and omit-safe defaults — #86 - Developer architecture and contributor standards: module map, command and provider extension points, and test layers. Link the existing operator docs and command rules; do not restate them. — #101
- Production-ready setup: document must-settings (vs lab defaults); teach them in a skill/catalog; enforce with
spa validateprofile or schema (deployment_intent: production). Lab validate stays permissive. Not capacity planning. Secrets/TLS/RF-SF/licenses/network — never print secrets. — #80 - Docs / operator CLI follow-ups (not in #61): VirtualBox snapshots / reload after Vagrantfile changes (
spa snapshot/spa reload); extra forwarded ports,ssh-config, VirtualBox GUI; Windows guests throughspa(operator path is Linux AWS/VirtualBox; historical box notes are in contributing). Do not document rawvagrant/terraform/ansible-playbookas the operator interface. -
spa apps versions(list Splunkbase versions);spa apps download --versionalready exists
- Terraform AWS +
spa provider aws(docs/aws.md) -
spa provider awsuses--region, thenterraform.aws.region, thenAWS_REGION/AWS_DEFAULT_REGION/~/.aws/config, names that source, and marks it inspa provider aws regions list - VirtualBox spa provider (
spa deploy/destroy/ suspend-resume via Vagrant) — #56 - Shared network access groups (provider-agnostic CLI; AWS first; SPA_HOME state; env destroy does not delete) — #58
- External / BYO SSH hosts (register only; mixed with managed; never terminate the real machine) — #57.
- CCM provider (Corporate Cloud Manager EC2 via REST, not Terraform) — #146. Operator page: docs/ccm.md
- Splunk Operator for Kubernetes:
splunk_config.yml→ Operator CRs (IndexerCluster, SearchHeadCluster, ClusterManager, LicenseManager, MonitoringConsole, Standalone) plus namespace, storage, and image settings - Windows Universal Forwarder on AWS (AMI + WinRM); VirtualBox UF role exists but needs a supported SPA workflow (background in docs/contributing.md)
- Cluster manager, indexer cluster, deployer, search head cluster, deployment server, heavy / universal forwarder, license manager, monitoring console
- SmartStore / S2 index path
- Load balancer in front of SHC (UI / API) and HEC on indexers — AWS NLB/ALB via Terraform; Kubernetes Service
LoadBalancer/ Ingress with the Operator - Cluster manager redundancy (manager redundancy / CMHA) in config, Terraform, and Operator
- UF → heavy forwarder or single-indexer outputs as first-class config
- Per-tier DS
outputs.conf/ serverclasses (HF vs cluster vs standalone indexer) - DNS role or Bind on one node; point lab hosts at it
- Finish
ldap_server(add to schema) and wire Splunkauthentication.conf
- Optional Splunk OpenTelemetry Collector on lab hosts via the signalfx.splunk_otel_collector Ansible collection (
signalfx.splunk_otel_collector.collector). Pin inrequirements.yml; wrap with a SPA playbook/splunk_config.ymlblock; skip when unset. Tokens from env / vault /spa auth— never print access or HEC tokens. Distinct from ITSI o11y content packs / TA-SIM (those are Splunk apps, not the host agent).
- Generic Splunkbase / local / URL apps + customizations (docs/apps.md)
- ITSI premium app + content packs (
premium_app: itsi) - Discover the exact packs bundled in a selected ITSI Content Library 5391 archive, including labels, descriptions, versions, and SPA automation — #109
-
premium_app: es(Enterprise Security + CIM / TA layout) — #60 - More curated app playbooks (add
# spa-app:underansible/apps_playbooks/; snippet/spa run splunk_apps_playbook_run --helppick them up)
- Manual upgrade playbooks, including rolling IDXC and SHC (
ansible/upgrade_splunk*.yml) - Architecture-aware
upgrade_distributedfor complex environments: upgrade every present tier in the required order, reusing the IDXC and SHC rolling playbooks — #96 - Include Windows UF in the upgrade host set
- Config-driven version bump (
splunk_versionchange → rolling upgrade) — same runbook-vs-playbook choice as the upgrade skill - Remove a host:
spa destroy --hosts NAMEruns decommission (IDXC peer / SHC member, DS serverclass), then tears down only those instances and drops them from config/state.spa destroy --allis whole-env teardown. Omitting both--hostsand--allis an error (do not treat “no hosts” as destroy-everything). No separatedecommissioncommand. Until this exists,spa destroy --yesremains whole-env. - Creating hosts must abort if the Terraform plan would destroy or replace an instance (host removed from
splunk_config.yml, or AMI / instance-type replacement). Tell the operator to restore the host or usespa destroy --hosts. Creates and in-place updates still apply. Today, deleting a host from config and running deploy terminates that VM with no Splunk decommission. - Cluster topology changes on a live site (RF/SF, add a site, move a host between clusters) — not just re-run bootstrap
- Make
spa deployidempotent after a successful run (second pass green/ok, no restart/reload without a real change) — #87 - Git for env configs and local apps; pluggable SCM/CI (GitHub first); promote along user-named stages — #63
- Baseconfig: render/generate locally or standalone (no env) + placement markdown/JSON; ship via app deployment when using SPA (replaces optional public baseconfig-substitute download) — #64
- Splunk binary/version management (download to Software or register remote; AWS stub/touch) — #65
-
spa licenses add+ canonical NFR symlink in Software — #66
- Local pytest + GitHub Actions CI (tests/README.md)
- Speed PR local-test CI under ~5 minutes — #151
- Keep local pytest wall clock under ~3 minutes (unsandbox inner loop, split CI CLI, shrink xdist outliers) — #175
- Live AWS suites under
tests/deployment/(spa-onlyvalidate/deploy/run verification/destroy) - Leftover local playbook pytest through
spa run— #165 - Hermetic CLI argv contract: isolate inherited
SPA_*/ANSIBLE_*fromrun_spa, table-driven flags/aliases/--extras fromspa agent schema— #89 - Broader schema / example sweep
- Optional nightly AWS job — not required on every PR