Issue #16238 has been reported by Nick Fagerlund.
----------------------------------------
Bug #16238: References like Type['alias'] work inconsistently, and it might be
best to remove them
https://projects.puppetlabs.com/issues/16238
Author: Nick Fagerlund
Status: Needs Decision
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version:
Keywords:
Branch:
This works:
file {'file1':
path => '/tmp/file1',
ensure => file,
alias => ['othername', 'fourthname'],
}
file {'file2':
path => '/tmp/file2',
ensure => file,
before => File['othername'],
}
This does not:
File['file2'] -> File['othername']
Neither does this:
File['/tmp/file1'] {
content => "This got in here, somehow",
}
Neither does this:
@file {'file1':
...
}
realize File['othername']
And of course, this will return `false`:
notice( defined(File['othername']) )
Four of the five use cases for resource references don't work with aliases.
This raises the question: what in the world are aliases even **for,** anyway?
Does it make sense to remove the ability to refer to resources by their namevar
and other aliases, and just expect folk to use the title? Or should we fix it
instead and make aliases work globally?
--
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.