On 5/21/2010 5:39 PM, Aaron C. de Bruyn wrote:> I can''t seem to find any information on being able to require one
package
> OR another.
>
> I have some existing systems that have postfix, and others that use
> msmtp. How can I specify that either postfix OR msmtp be installed?
$mta = # postfix or msmtp
class mta {
include $mta
}
class other {
file {
"blubb":
require => Class[mta];
"foo":
require => Package[$mta]; #dangerous
}
}
Best Regards, David
--
dasz.at OG Tel: +43 (0)664 2602670 Web: http://dasz.at
Klosterneuburg UID: ATU64260999
FB-Nr.: FN 309285 g FB-Gericht: LG Korneuburg
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
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.