Avi Miller wrote:
> Steve Wray wrote:
>> I prefer the second one but cannot fathom why the syntax is wrong.
>
> Inline syntax is a little different:
>
> package { ntp:
> ensure => $lsbdistcodename ? {
> sarge => present,
> default => absent,
> },
> }
>
> Hope that helps,
How about multiple conditions? Eg if I want ntp to not be installed on
virtual machines unless they are running sarge?
This gets me installed if its sarge:
package { ntp-simple:
ensure => $lsbdistcodename? { 'sarge' => present, default => absent }
}
This gets me installed if its xen:
package { ntp-simple:
ensure => $virtual? {
'xenu' => present,
'xen0' => present,
default => absent
}
}
How do I combine these? I've tried various permutations and had no luck.
and I don't see any obvious examples of what I'm trying to do.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---