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

Made role idempotent #17

Merged
merged 3 commits into from
Nov 7, 2016
Merged

Conversation

codecounselor
Copy link
Contributor

@codecounselor codecounselor commented Oct 30, 2016

  1. Broke out a separate start.yml task so that when: telegraf_start_service is only in main.yaml
  2. There was a handlers/main.yml already but it wasn't used - I added notify events for anything that should not run unless a change event happens
    • Configuration - only restart the service if it changed
    • Status Check - only pause and check running status if service was (re)started

seconds: 3
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was already here, but the one I removed from was set to 6 seconds. Not sure the reason for 3 vs. 6, should this be a property?

@codecounselor
Copy link
Contributor Author

@rossmcdonald Any feedback on this?

@rossmcdonald
Copy link
Owner

@codecounselor Sorry! I don't get notifications for PR's for some reason. I'll review this here in the next couple of hours, though.

@rossmcdonald rossmcdonald self-assigned this Nov 7, 2016
@rossmcdonald
Copy link
Owner

@codecounselor Great work. This has drastically improved rerun times and I like the use of the handlers. Thank you for the help!

@rossmcdonald rossmcdonald merged commit 1024bf4 into rossmcdonald:master Nov 7, 2016
@codecounselor
Copy link
Contributor Author

Thank you @rossmcdonald, happy to contribute

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.

2 participants