The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Feature #7612

Exported resource syntax is too magical, hard to read

Added by Anonymous about 3 years ago. Updated about 3 years ago.

Status:InvestigatingStart date:05/20/2011
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Affected Puppet version: Branch:
Keywords:puppetcamp-eu-2011

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This ticket may be automatically exported to the PUP project on JIRA using the button below:


Description

The exported resources syntaxe:

@@user { luke: ensure => present }

Is concise and powerful, but very difficult to read. We should consider word-based syntax, e.g.:

export @user { luke: ensure => present }

And taking into account #7605, perhaps:

export virtual user { luke: ensure => present }

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.

History

#1 Updated by Peter Meier about 3 years ago

I don’t really like

export @user {}

or

export virtual user {}

Because exporting a user has only technically todo something with virtual resources, but from a user point of view not really. At least that’s the way how I see it.

So I would favor:

export user {}

But still would like to keep

@@user{}

around, as it’s much easier to type.

Also available in: Atom PDF