mirror of
https://github.com/oscarhermoso/terraform-provider-binarylane
synced 2026-10-20 05:56:05 +11:00
f73528497f
* Wait for cloud-init to complete * Define `wait_for_create` attribute to make waiting for server opt-in
23 lines
794 B
YAML
23 lines
794 B
YAML
#cloud-config
|
|
bootcmd:
|
|
# By default, the provider won't wait for the server installation to complete.
|
|
#
|
|
# If you want Terraform to wait until the server has fully provisioned, set
|
|
# the `wait_for_create` attribute on the `binarylane_server` resource.
|
|
#
|
|
# If you have additional installation steps that need to be awaited, define
|
|
# these in the `bootcmd` section and they will also be awaited.
|
|
#
|
|
- [cloud-init-per, once, 'example-installing', sh, -c, 'sleep 60'] # pretend this is a slow installation step
|
|
- [
|
|
cloud-init-per,
|
|
once,
|
|
'example-done',
|
|
sh,
|
|
-c,
|
|
'echo Finished installing, Terraform will now proceed:`date` >> /var/tmp/user_data.log',
|
|
]
|
|
|
|
runcmd:
|
|
- [sh, -c, 'sleep 99999'] # The provider won't wait for `runcmd` to complete
|