In this example I am spinning up 2 web servers and 2 file servers using Terraform. During the provision process, Terraform will run a remote-exec
script to bind the 4 new servers to the salt master server.
Substitute actual user and API key for SL_USERNAME
and SL_API_KEY
export TF_VAR_slusername="SL_USERNAME"
export TF_VAR_slapikey="SL_API_KEY"