Skip to content

Chef LWRP for Creating and Deleting Windows Services

License

Notifications You must be signed in to change notification settings

abudhu/winservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

winservice-cookbook

Chef LWRP for creating and deleting Windows Services

Supported Platforms

Windows 2008R2
Windows 2012
Windows 2012R2
## Attributes
Key Type Description Default
name String Name of the service nil
bin_path String Full path to the executable nil
start_type String Start type of the service disabled
display_name String Display name of the windows service nil
run_as_user String User to run the service LocalSystem
run_as_password String Password for user, if other than LocalSystem nil

Usage

Place a dependency on the winservice cookbook in your cookbook's metadata.rb

depends 'winservice'

Then, in a recipe:

win_service "Create Window Service" do
  name MyService
  bin_path C:\\My\\Awesome\\Path
  display_name MyAwesomeService
  run_as_user Foo\\Bar
  run_as_password MySuperSecretPassword
  action :create
end
win_service "Create Window Service" do
  name MyService
  action :delete
end

License and Authors

Author:: Amitraj Budhu (abudhu@gmail.com)

About

Chef LWRP for Creating and Deleting Windows Services

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages