Issue #22580 has been updated by Vadim Nevorotin.

Status changed from Needs More Information to Duplicate

Duplicate, see https://projects.puppetlabs.com/issues/22587#note-2

----------------------------------------
Feature #22580: Recognize 'undef' value of ensure property of service
https://projects.puppetlabs.com/issues/22580#change-98814

* Author: Vadim Nevorotin
* Status: Duplicate
* Priority: Normal
* Assignee: Vadim Nevorotin
* Category: 
* Target version: 
* Affected Puppet version: 
* Keywords: 
* Branch: 
----------------------------------------
Now it's impossible to leave service in it's current state if you add ensure 
property. There is no valid value for it.

But if you write a wrapper class for some service (e.g. classical 
package->config->service) you need to send value for ensure from main class to 
service.

So, e.g., class is 

class someservice (
  $ensure,
  ...

And in it

service {'someservice':
  ensure => $ensure
  ...

In this case you must specify 'running' or 'stopped' when declare main class. 
But sometimes you don't need to change service status. (when service controlled 
from scripts).

So please add 'undef' valid value for ensure property of a service. If 
ensure=>undef, then curren't status of a service should not be changed.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to