On Monday, August 6, 2012 1:31:17 PM UTC-5, Kenneth Lo
wrote:>
> On a vanilla resource require statement, is there a way to define a
> require for either ''resource A'' or ''resource
B'' ?
>
> Historically our system setup increment app per version (as opposed to
> having a parameter to define it). Ie. Say, we have a tomcat_6 and tomcat_7
> classes for tomcat v.6 and v.7 respectively. So obviously if some other
> resources is depending on Tomcat, a particular node would have either 6 or
> 7.
>
>
Not directly, no. What you can do is create, apply, and set your
requirement for a class of this general form:
class tomcat {
if $i_want_tomcat_6 {
include ''tomcat_6''
} else {
include ''tomcat_7''
}
}
John
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/HoeVpkUo_YMJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.