openstack-hyper-v/puppet-windows_common — pull request #11 by luisfdez (2014-02-17 20:12:44+00:00)
Title: Add new defined type 'windows_common::configuration::service'

This commit adds a new defined type in the 'configuration' to define a Windows service. It contains functionality not managed by the built-in 'service' type (To disable the service, change the start type,... it has to be used the built-in type).

I've implemented it as part of the refactoring. It allows us to create services and also to specify an user (domain,...) and give it 'logon as a service' rights (important to configure Nova live migration).
```
windows_common::configuration::service { 'app-service':
ensure => present,
description => 'Description of App Service owned by LocalSystem',
display => 'App Service',
binpath => 'C:\App\service.exe',
}

windows_common::configuration::service { 'app-service':
description => 'Service owned by DOMAIN\account',
binpath => 'C:\App\service.exe',
user => 'DOMAIN\account',
password => $user_password,
}

windows_common::configurationi::service { 'app-service':
ensure => absent,
}
```

Please take a look, for me is OK to merge.