Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add wait function during install #80

Merged
merged 1 commit into from Mar 30, 2020
Merged

Add wait function during install #80

merged 1 commit into from Mar 30, 2020

Conversation

logicminds
Copy link
Contributor

  • When the puppetserver has a high CPU usage normal tasks can often
    take longer than anticipated. If the puppetserver is not
    ready for requests, the puppet runs will fail and the plan fails
    shortly after.

    This calls the check_status task to determine if the puppetserver
    is not only up but taking requests. This will help prevent unwanted
    failures. This code will sleep in 5 second increments up to a total
    of 50 seconds. If the puppetserver hasn't calmed down by then we
    continue with the plan and let it fail during the puppet run.

@logicminds
Copy link
Contributor Author

This requires #79 to be merged first.

I have tested this and it does work I am a bit unsure how bolt is passing the parameter. So I am not 100% confident on the code.

  * When the puppetserver has a high CPU usage normal tasks can often
    take longer than anticipated.  If the puppetserver is not
    ready for requests, the puppet runs will fail and the plan fails
    shortly after.

    This calls the check_status task to determine if the puppetserver
    is not only up but taking requests. This will help prevent unwanted
    failures. This code will sleep in 5 second increments up to a total
    of 50 seconds.  If the puppetserver hasn't calmed down by then we
    continue with the plan and let it fail during the puppet run.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants