On Fri, Jul 23, 2010 at 9:08 AM, Tony G. <[email protected]> wrote:
>
> Seems like the parser does not allow case statements in the attributes of
> the resources.
This is correct, case statements must be outside of resource
statements. You could use the selector in-statement though.
file { "/tmp/foo":
source => $hardwaremodel ? {
"x86_64" => "puppet://$server/modules/audit/audit.rules.64",
default => "puppet://$server/modules/audit/audit.rules.32"
}
}
Cheers,
--
Jeff McCune
http://www.puppetlabs.com/
--
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.