Allow module consumer to override the local-exec sleep delay
Add a new variable sleep_secs that defaults to 250, but can be set by the caller where there are dependent modules or circular dependencies.
For example, a CFE deployment will require a GCP forwarding-rule that references the BIG-IP VMs created, and the CFE declaration that is passed to runtime-init will include the name/tags of the forwarding-rule. By reducing the sleep delay the module consumer is able to ensure that the forwarding-rule is created with correct BIG-IP VM targets before CFE initialisation is scanning for matching GCP resources.
Closes #9.
Fix error when deploying on Windows
If HOME path starts with / assume the local-exec is running on a system with POSIX shell and sleep, if not execute PowerShell start-sleep equivalent.
Allow module consumer to override the local-exec sleep delay
Add a new variable
sleep_secs
that defaults to 250, but can be set by the caller where there are dependent modules or circular dependencies.For example, a CFE deployment will require a GCP forwarding-rule that references the BIG-IP VMs created, and the CFE declaration that is passed to runtime-init will include the name/tags of the forwarding-rule. By reducing the sleep delay the module consumer is able to ensure that the forwarding-rule is created with correct BIG-IP VM targets before CFE initialisation is scanning for matching GCP resources.
Closes #9.
Fix error when deploying on Windows
If HOME path starts with / assume the local-exec is running on a system with POSIX shell and
sleep
, if not execute PowerShellstart-sleep
equivalent.Closes #8.