#1094: resource aliases aren't being validated
------------------------------------+---------------------------------------
Reporter: whaymand | Owner: luke
Type: defect | Status: new
Priority: normal | Milestone: 0.24.3
Component: library | Version: 0.24.2
Severity: normal | Resolution:
Keywords: resource require alias | Stage: Accepted
Patch: None | Complexity: Unknown
------------------------------------+---------------------------------------
Changes (by Fujin):
* owner: Fujin => luke
* priority: high => normal
* status: assigned => new
* severity: major => normal
Comment:
Workaround for now: use the 'name' parameter instead of alias - this
requires a little bit of manifest changing, but should work fine.
{{{
[EMAIL PROTECTED] /tmp# cat test.pp
#!/usr/bin/env puppet
package {
pwgen:
ensure => installed,
alias => "pwgentestaliaslol";
}
file {
"/tmp/testing":
ensure => present,
require => Package[pwgentestaliaslol];
}
[EMAIL PROTECTED] /tmp# ./test.pp
Could not find dependency Package[pwgentestaliaslol] for
File[/tmp/testing] at /tmp/./test.pp:11
}}}
Workaround:
{{{7
[EMAIL PROTECTED] /tmp# cat test2.pp
#!/usr/bin/env puppet
file {
"filealiastest":
path => "/tmp",
ensure => present;
"/tmp/testing":
ensure => present,
require => File[filealiastest];
}
[EMAIL PROTECTED] /tmp# ./test2.pp
notice: //File[/tmp/testing]/ensure: created
}}}
--
Ticket URL: <http://reductivelabs.com/trac/puppet/ticket/1094#comment:5>
puppet <http://reductivelabs.com>
Puppet - Portable System Automation
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---