Issue #1743 has been updated by smrf.

By the way, the way I worked around this was to use a pseudo parameter, and 
have the "unzip" definition do the following:

if ($other_names) {
  Exec["unzip $title"] { alias +> $other_names }
}

Which works, but is rather clunky.
----------------------------------------
Bug #1743: alias metaparameter on a defined resource causes error
http://projects.reductivelabs.com/issues/show/1743

Author: smrf
Status: Unreviewed
Priority: Normal
Assigned to: 
Category: 
Target version: 
Complexity: Unknown
Affected version: 0.24.5
Keywords: 


Using puppet 0.24.5 (puppet-0.24.5-1.el5 from the dlutter repository), on 
Centos 5.2, the following manifest:

define unzip($dest, $creates) {
  exec {
    "unzip $title":
      cwd     => $dest,
      creates => "$dest/$creates",
      unless  => "test -e $creates"
  }
}
unzip {
  "/var/tmp/foo.zip": alias=>"unpack_foo_zip", dest=>"/var/tmp",creates => 
"foobar";
}

Produces the following error:

  err: Could not create Unzip[/var/tmp/foo.zip]: Parameter alias failed: 
Munging failed for value ["unpack_foo_zip"] in class alias: Cannot add aliases 
without a catalog
  Parameter alias failed: Munging failed for value ["unpack_foo_zip"] in class 
alias: Cannot add aliases without a catalog

Per discussion with Luke Kanies on the puppet-users mailing list, 
http://groups.google.com/group/puppet-users/msg/2b25a71f94d6e908?dmode=source, 
this is a bug.


----------------------------------------
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://reductivelabs.com/redmine/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
-~----------~----~----~----~------~----~------~--~---

Reply via email to