F5Networks / terraform-gcp-bigip-module

Terraform module for Deploying BIG-IP in GCP
Apache License 2.0
9 stars 13 forks source link

Proposed enhancement for sleep delay #11

Closed memes closed 2 years ago

memes commented 2 years ago

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.

Closes #8.

memes commented 2 years ago

Closing this PR as the maintainers have a better solution.