Issue #4073 has been updated by Peter Meier.
I assume you define the package{'curl': ensure => installed } somewhere in a
class. Then simply require that class instead of include and everything within
that class that requires the other class will depend on the resources in the
required class.
----------------------------------------
Feature #4073: global "require" per class
http://projects.puppetlabs.com/issues/4073
Author: Cedric Jeanneret
Status: Unreviewed
Priority: Low
Assigned to:
Category:
Target version:
Affected version: 2.6alpha1
Keywords:
Branch:
Hello,
While doing some code review in our modules, I thought it could be great to
have a global require per class, like :
class toto::titi {
$global_require = Package["curl"]
exec {"download $name":
command => "curl -o ..."
create => "...",
}
package {"foo":
ensure => present,
}
}
so that Exec["download $name"] and Package["foo"] directyl require
Package["curl"] without mentioning "require => Package["curl"]" in each bloc..
Is it possible? is it a good idea ?
Thank you.
Regards,
C.
--
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.