3.0 is not a Splunk-config rewrite. Operators always use an env dir (spa init) and the spa CLI. The git clone is SPA_HOME (framework) only; clone-equal SPA_HOME/SPA_ENV_DIR is not valid for operator spa.
This is the short “what do I change?” list. Full release history is in CHANGELOG.md.
Only bin/spa and bin/spa_venv.sh remain in a clone. Operators can install a prefix with install.sh instead of cloning (Install). Use spa venv for the Python environment; do not invoke the old wrappers.
| 2.x | 3.0 |
|---|---|
bin/spash |
spa hosts ssh NAME (aliases: spa sh, spa shell) |
bin/spash -l |
spa hosts list (optional --status) |
bin/spash -c |
spa hosts copy SRC DST |
bin/init_spa_dir.sh |
spa init |
bin/spa_env.sh |
Not needed by spa; spa env --export remains for external tools |
bin/spa_doctor.sh |
spa doctor |
bin/validate_splunk_config.sh |
spa validate |
bin/splunk_config_aws.py |
spa provider aws |
bin/splunk_config_licenses.py |
spa licenses |
spa shell stays as an SSH alias. There is no spa shell -l; list hosts with spa hosts list.
Skills and agents should use full names (spa hosts ssh, spa validate), not spa sh / spa val.
--labis--env(for examplespa doctor --env NAMEor a dest path).spa environmentis the env family;spa envis its alias.SPA_LAB_DIRis gone. UseSPA_ENV_DIR. There is no alias.- Jinja
SPADirNameisspa_env_dir | basename.
SPA_HOMEis the framework (playbooks, Terraform modules,Vagrantfile,bin/, skills). A clone is develop-only forspa; operators use a prefix or clone as home, never as the env.SPA_ENV_DIRis one Splunk environment (config/splunk_config.yml, optional.spa.yml,inventory/hosts, Terraform state,.vagrant/, optionalsaved_base_config_apps/). Do not copyansible/into the env. Do not put a Vagrantfile in the env.- Unset both → cwd discovery and then the registered default select the env. A clone-equal layout is not valid for operator commands.
- When they differ, Terraform modules stay under
$SPA_HOME/terraform/aws; state stays in the env. VirtualBox usesVAGRANT_CWD=$SPA_HOMEandVAGRANT_DOTFILE_PATH=$SPA_ENV_DIR/.vagrant. ../Softwareand../appsprefer a sibling of the env, then the clone.- Install the
spalauncher once. Each command resolves cwd,--env NAME, or the registered default.
Move an existing 2.x clone env out of the checkout:
spa init my-env
# or from a new framework tree:
spa init --from /path/to/old-clone ~/Splunk-Platform-Automator/Envs/my-env
cd ~/Splunk-Platform-Automator/Envs/my-env
spa validatespa init migrates config/, inventory/, Terraform state, and .vagrant/ (VirtualBox machine IDs). If .vagrant is left in the clone, spa deploy would create a second set of VMs.
If you copied a whole old checkout as the env directory, spa init DIR exits 2 until --force. Then env state is kept and framework leftovers under that dir are stripped (including an inventory/group_vars symlink into the old clone; framework vars stay in $SPA_HOME/ansible/group_vars). After conversion (or for any older lab that already has config), spa init DIR or spa env init NAME registers that directory so it appears in spa environment list. Use --force to convert leftovers or refresh .spa.yml; spa init --force --reset-paths DIR restamps Software/baseconfig/apps dirs from paths.yml.
spa init does not write a .gitignore. To put the environment in Git later, ignore .vault_pass, .vault_pass.txt, .venv/, .vagrant/, .terraform/, *.tfstate, *.tfstate.*, *.tfvars, tfplan, and saved_base_config_apps/. Commit config/, inventory/, and .spa.yml.
A later spa init --force DEST on that environment writes the running spa into .spa.yml spa_home and refreshes Terraform module links. It does not strip again. It keeps this env’s Software/baseconfig/apps dirs; spa init --force --reset-paths restamps those pointers from paths.yml (or discovery). setup_ansible_remote.txt and .ansible/ are removed only while ansible/ is still present. If .spa.yml spa_home is missing, empty, or not a usable framework, env commands exit 2 until spa init --force DEST.
When run from a recognizable 2.x checkout, operator commands fail instead of silently selecting the registered default environment. Use spa init --force DIR to convert that copied tree, spa init --from OLD DEST to move it, or an explicit spa --env NAME COMMAND when targeting another environment intentionally.
Do not use Homebrew Ansible or Pydantic. Recreate the shared venv:
spa venv rebuild --shared --yesUse spa venv reinstall --shared --yes when the venv itself is sound and
only missing packages need filling in. Use spa venv upgrade --shared --yes
to bump Ansible and other requirements in place (pip install --upgrade plus
ansible-galaxy collection install --upgrade). boto3 is in requirements.txt.
spa deploy,spa destroy,spa suspend, andspa resumefollowsplunk_config.yml:terraform.awsorvirtualbox:. Same env-dir loop for both.- VirtualBox env dirs have no
Vagrantfile; provision and deploy throughspa.
Playbooks are invoked with spa run NAME (discover: spa run list). Site deploy is spa deploy --yes.
--hosts on deploy, run, suspend, resume, and hosts list takes inventory names or roles (for example indexer). That is not Ansible --limit in user help; playbooks still receive --limit internally.
Do not delete a live host from splunk_config.yml and run spa deploy. Terraform will terminate that instance. Later work will refuse instance destroys on provision and add host-targeted destroy (--hosts / --all; see ROADMAP.md).
spa run list shows current names. spa run OLD still resolves and prints use spa run NEW. Prefer spa deploy / spa destroy / spa deploy over running the AWS or site pipeline playbooks directly.
| 2.x | 3.0 |
|---|---|
start_splunk |
splunk_start |
stop_splunk |
splunk_stop |
restart_splunk |
splunk_restart |
run_splunk_command |
splunk_cli |
call_splunk_rest |
splunk_rest |
install_splunk |
splunk_install |
remove_splunk |
splunk_remove |
enable_splunkweb |
splunk_web_enable |
disable_stop_splunkweb |
splunk_web_disable |
add_splunk_license |
splunk_license |
backup_splunk_etc |
splunk_backup_etc |
cleanup_backup_dir |
splunk_backup_cleanup |
update_splunk_certs_web |
splunk_certs_web |
update_splunk_certs_inputs |
splunk_certs_inputs |
setup_splunk_roles |
splunk_setup_roles |
setup_splunk_conf |
splunk_setup_conf |
upgrade_splunk_shc_rolling |
upgrade_shc_rolling |
upgrade_splunk_idxc_rolling |
upgrade_idxc_rolling |
upgrade_splunk_dist_env |
upgrade_distributed |
provision_terraform_aws |
aws_provision |
destroy_terraform_aws |
aws_destroy |
wait_for_terraform_aws_hosts |
aws_wait_hosts |
deploy_splunk_apps |
splunk_apps_deploy |
remove_splunk_apps |
splunk_apps_remove |
run_apps_playbook |
splunk_apps_playbook_run |
install_ssh_keys |
ssh_keys |
test_ansible_prereqs |
ansible_check |
Unchanged: deploy_site, preflight_deploy, setup_common, create_linkpage, setup_other_roles, update_hosts_file, upgrade_splunk.
First-party playbooks carry a # spa-run: comment. spa run NAME --help prints it; spa --agent run list includes summary / risk / category / requires_provisioned. Set requires_provisioned: true when the playbook needs live hosts; omit it (or false) for controller-only stems such as aws_provision.
If you jump from an older 2.x (before 2.5) to 3.0:
splunk_license_fileand alicense_managerhost are both required (and the reverse).- Deploy runs a fact-cache preflight (
spa_preflight_deploy, default on).
SPA 2.0 introduced a dynamic Ansible inventory plugin and moved topology into splunk_config.yml. Before going to 3.0, first ensure the old config includes plugin: splunk-platform-automator and that values formerly held in static inventory/group* files are represented in config.
For VirtualBox, start_ip moved from general to virtualbox. For old Ansible-only environments, export the effective inventory before migration and compare it with spa hosts list afterwards.
Update old config and local apps to current Splunk terminology:
- role
cluster_master→cluster_manager - role
license_master→license_manager - clustering mode
master/slave→manager/peer master_uri→manager_uriclustermasterstanzas →clustermanager
SPA applies current terms in generated configuration for Splunk 9+, but custom/local apps remain your responsibility.