Issue #7606 has been updated by Nick Fagerlund.
A conversation about something else with Jeff McCune and Dan Bode today brought
up the point that this will have to be done with care to keep all the
functionality we currently get from the spaceship operator. For instance, we
might have to add a new keyword for overriding attributes. (My comment above
wasn't quite right: you can add new attributes to a resource using the
`Reference['name'] { attribute => value }` form, but you can't override
existing ones, which you CAN do with the spaceship.) And we'll definitely want
to extend the `realize` keyword to take collections of references.
Adding those two as watchers, since they seem to know more about spaceships
than most people.
----------------------------------------
Feature #7606: Spaceship operator too magical, hard to read
https://projects.puppetlabs.com/issues/7606
Author: Randall Hansen
Status: Investigating
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version:
Keywords: puppetcamp-eu-2011
Branch:
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 }
--
*This ticket is a request for comment, coming out of a discussion at Puppet
Camp EU, 2011. No promises whatever about implementation, but there were
enough people interested to open a public discussion.*
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" 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-bugs?hl=en.