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

Dsc (continued) #917

Merged
merged 4 commits into from
Jan 11, 2019
Merged

Dsc (continued) #917

merged 4 commits into from
Jan 11, 2019

Conversation

treydock
Copy link
Collaborator

@treydock treydock commented Jun 21, 2018

Pull Request Checklist

Description

Related Issue

Continuation of #907

Motivation and Context

Same as #907 with updates to Vagrant tests for Windows to have Powershell 5+.

How Has This Been Tested?

Fresh install tested with Vagrant. Also tested by provisioning win2012r2-client box without these changes and then apply changes from this PR and no errors were encountered.

General

  • Update README.md with any necessary configuration snippets

  • New parameters are documented

  • New parameters have tests

  • Tests pass - bundle exec rake validate lint spec

@treydock treydock mentioned this pull request Jun 21, 2018
Closed
4 tasks
manifests/client.pp Outdated Show resolved Hide resolved
manifests/client.pp Show resolved Hide resolved
manifests/init.pp Show resolved Hide resolved
.fixtures.yml Outdated Show resolved Hide resolved
.fixtures.yml Outdated Show resolved Hide resolved
.fixtures.yml Outdated Show resolved Hide resolved
Refactor to use DSC for installing the service

* Add new parameter `$windows_service_user` which can be used to run the
  service as a different user.
* Use `dsc_service` resource instead of `exec` to install the service.
  If `$windows_service_user` isn't set then this will just use the Local
  System user as normal.
* If `$windows_service_user` is set then also use the
  `dsc_userrightsassignment` resource to grant the "Log on as a service"
  right to the user and also use the `acl` module to grant permission
  for the user to access the Sensu install directory.

Fixed tests with new Windows modules

added spec tests

Readded powershell dependency (needed by dsc)

Powershll module already installed by dsc, avoid version conflicts
@treydock
Copy link
Collaborator Author

treydock commented Jan 8, 2019

Rebased to fix merge conflicts.

@treydock
Copy link
Collaborator Author

Updated PR so tests should be passing now.

@ghoneycutt
Copy link
Collaborator

Waiting on Travis. Good to merge.

@ghoneycutt ghoneycutt merged commit d06499a into sensu:master Jan 11, 2019
@ghoneycutt
Copy link
Collaborator

Released in v2.61.0

@treydock treydock deleted the 907 branch January 12, 2019 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants