On May 21, 8:52 am, Nan Liu <[email protected]> wrote:
> On Fri, May 20, 2011 at 8:20 PM, Randall Hansen <[email protected]>
> wrote:
> >http://projects.puppetlabs.com/issues/7606
>
> > The spaceship operator:
>
> > User <| group == sysadmin or title == luke |>
>
> > Is relatively easy to type but, if you don’t know it, very hard to
> > read. We should consider a word-based syntax, e.g.:
>
> > collect User { group == sysadmin or title == luke }
> > User search { group == sysadmin or title == luke }
>
> > Please comment on the ticket or reply here, whichever you prefer.
>
> I actually prefer the old syntax because we currently we support the usage of:
> User <| title == puppet |> {
> noop => true
>
> }
>
> Would the new syntax deprecate this feature? It seems rather confusing to
> read:
> collect User { group == sysadmin or title == luke } { noop => true }
>
> On this subject, should we support regular expression?
> User <| title =~ /*adm/ |>
>
> Should we allow referencing of resources using this syntax?
> require => User[ group == sysadmin ]
My agreement is here with Nan. I think the ability to override at
collection time is a required feature. I feel mixing two sets of {}
in this situation to be a bad idea. I am fine with the word based
collect and search syntax but the first set {} need to be different.
--
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.