Issue #15716 has been updated by Kiril Varnakov.
<pre><code class="ruby">
class pdns::service::enable {
service { "pdns":
ensure => running,
hasstatus => true,
hasrestart => true,
enable => true,
require => Class["pdns::config"]
}
}
</code></pre>
This class does not depend from class "pdns::config::ldap".
----------------------------------------
Refactor #15716: Require with class
https://projects.puppetlabs.com/issues/15716#change-68853
Author: Kiril Varnakov
Status: Needs More Information
Priority: Normal
Assignee: Kiril Varnakov
Category: metaparameters
Target version: 2.7.x
Affected Puppet version: 2.7.18
Keywords:
Branch:
Hi. I building class with subclasses, for example:
<pre><code class="ruby">
class pdns::config {
case $pdns::backend {
'ldap': { include pdns::config::ldap }
}
}
</code></pre>
And if i set "require => Class["pdns::config"]" somewhere in the other
resource, this resource does not become dependent on the subclass. Why?
--
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.