Re: [Puppet Users] Selector within a resource -- location & syntax

2013-08-08 Thread root
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

[Puppet Users] Selector within a resource -- location & syntax

2013-08-05 Thread Steven VanDevender
root writes: > > Can anyone tell me why this is legal: > > file { "/etc/cron.d": > owner => "root", > group => "root", > mode => $operatingsystem ? { >'Solaris' => "0755", >default => "0700", > } > } > > > .

[Puppet Users] Selector within a resource -- location & syntax

2013-08-05 Thread root
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 "