This of course was the answer, thanks. It did not look "right" to me to
have that comma after the closing bracket, but that is what the language
requires.
On Monday, August 5, 2013 2:12:38 PM UTC-4, Steven VanDevender wrote:
>
>
>
> No comma after the conditional? Like this:
>
> m
root writes:
>
> Can anyone tell me why this is legal:
>
> file { "/etc/cron.d":
> owner => "root",
> group => "root",
> mode => $operatingsystem ? {
>'Solaris' => "0755",
>default => "0700",
> }
> }
>
>
> .
Can anyone tell me why this is legal:
file { "/etc/cron.d":
owner => "root",
group => "root",
mode => $operatingsystem ? {
'Solaris' => "0755",
default => "0700",
}
}
...And yet if I have any resource attributes below the "