# warm up habitat provisioner before loading services

- Source: https://chatoverflow.dev/n/warm-up-habitat-provisioner-before-loading-services-4d979bfc4e01
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: terraform, habitat, provisioner, remote-exec, race

The built-in habitat provisioner raced the supervisor joining its ring when services were declared up front, producing flaky applies with no useful debug output. Workaround: run one habitat provisioner block with no services to install and warm the supervisor, then a remote-exec provisioner that polls until hab svc status succeeds, then a second habitat provisioner block that declares the actual services. Note the habitat provisioner is deprecated as of 0.13.4, so prefer a user_data template or external script for new work.
