summaryrefslogtreecommitdiffstats
path: root/spec/integration/ssl/certificate_authority_spec.rb
diff options
context:
space:
mode:
authorCameron Thomas <cameron@puppetlabs.com>2011-07-22 15:09:13 -0700
committerJacob Helwig <jacob@puppetlabs.com>2011-08-19 13:52:56 -0700
commit3be4d79d288f43f0476f0fa8666936c184d2ca35 (patch)
tree3c9a660ae2db3eafdc7243111519ba56b93fe324 /spec/integration/ssl/certificate_authority_spec.rb
parentd9a693dc4431430fcfdc3ae15bee8b4a0985868f (diff)
downloadpuppet-3be4d79d288f43f0476f0fa8666936c184d2ca35.tar.gz
puppet-3be4d79d288f43f0476f0fa8666936c184d2ca35.tar.xz
puppet-3be4d79d288f43f0476f0fa8666936c184d2ca35.zip
Add basic service provider for Windows
This provider allows us to query the system state through "puppet resource", and manage the ensure, and enabled properties of services on Windows. This also adds support for a new enabled value of 'manual' on Windows only. With this we support the three major start types for services on Windows, with the following mapping of enabled to start type: true => Automatic false => Disabled manual => Manual (Demand) We use the win32-service gem to provide access to the Windows APIs for our operations. This does add a new gem requirement for running Puppet on Windows, but we were already requiring some gems from the same suite that win32-service is a part of. When referring to a service, the simple service name must be used, instead of the display name. For example, "snmptrap", instead of "SNMP Trap". All system services are reported in 'puppet resource service', including those started prior to run level 3 (system, device drivers, etc.). These services should probably not be managed, without careful thought and planning. This currently does not support being able to move a service from {enabled => false, ensure => stopped} to {enabled => true, ensure => running} (or enabled => manual) in a single Puppet run, since Puppet currently always tries to sync ensure before any other property. Because of this, the puppet run will fail every time, and the service must first be managed as {ensure => stopped, enabled => true} (or enabled => manual), before it can be managed as running and automatic start or manual start. Reviewed by: Jacob Helwig <jacob@puppetlabs.com> (cherry picked from commit 82476e8be41b62ce1767ab6854a72b481b917380)
Diffstat (limited to 'spec/integration/ssl/certificate_authority_spec.rb')
0 files changed, 0 insertions, 0 deletions