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

Fix windows service management #35

Merged
merged 1 commit into from
Aug 10, 2020
Merged

Fix windows service management #35

merged 1 commit into from
Aug 10, 2020

Conversation

treydock
Copy link
Collaborator

@treydock treydock commented Aug 6, 2020

Pull Request Checklist

Description

Replace dsc_service with Exec that installs the sensu-client service. All parameter behaviors are the same, the only change is how the service gets installed.

Related Issue

Fixes #33

Motivation and Context

This more closely matches the steps documented by Sensu for installing the client service on Windows.

@treydock treydock added the bug Something isn't working label Aug 6, 2020
manifests/init.pp Outdated Show resolved Hide resolved
@treydock treydock force-pushed the fix-windows branch 2 times, most recently from b2c91e8 to 2f4cc17 Compare August 6, 2020 21:06
Replace dsc_service with Exec that installs the sensu-client service
Fixes #33
@ghoneycutt ghoneycutt merged commit 2177a8c into master Aug 10, 2020
@ghoneycutt ghoneycutt deleted the fix-windows branch August 10, 2020 15:29
@StuartMcManus
Copy link

Cheers @treydock will try out the change this week to test and will advise. Shame about moving to an exec but not surprising about DSC being an issue really as I can see a gotcha you need to be aware of when using user rights assignment with multiple policies.

@StuartMcManus
Copy link

@treydock @ghoneycutt I have tested out the change and looks good. It creates it correctly with identity info passed to it and starts the service when down without any issues. Cheers.

Do you know when this might make it into PuppetForge as a version?

@treydock
Copy link
Collaborator Author

@StuartMcManus This was released to PuppetForge as v3.6.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows sensu service DSC error for starting
3 participants