Possible documentation error, around aliases?

1 view
Skip to first unread message

mic...@livia.co.nz

unread,
Nov 7, 2008, 7:52:37 PM11/7/08
to puppet...@googlegroups.com
Hi all,

The docs say:

"Note that all defined types support automatically all metaparameters."

But when I try (with Puppet 0.24.5 on Centos 5.2, courtesy of the dlutter
packages) the following:

define unzip (...) {
exec { ... }
if $alias { Exec[...]{ alias +> $alias }
}
unzip { ....: alias => "..." }

As is inferred by the LanguageTutorial to work, and as does work for
require, subscribe, etc., I get the following error message:

Parameter alias failed: Munging failed for value
["unpack_opensso_war"] in class alias: Cannot add aliases without
a catalog

This is moderately annoying; I need to depend on the definition elsewhere,
but the title of the generated resource is quite long; what's the standard
way around this problem?

-- michael.

Luke Kanies

unread,
Nov 12, 2008, 7:29:58 PM11/12/08
to puppet...@googlegroups.com


This is definitely a bug -- the system is attempting to add the alias
before the catalog has been assigned.

Can you file this?

--
A conservative is a man who believes that nothing should be done for
the first time. --Alfred E. Wiggam
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com

mic...@livia.co.nz

unread,
Nov 12, 2008, 7:42:42 PM11/12/08
to puppet...@googlegroups.com
Luke Kanies writes:
>> This is moderately annoying; I need to depend on the definition
>> elsewhere,
>> but the title of the generated resource is quite long; what's the
>> standard
>> way around this problem?
>
>This is definitely a bug -- the system is attempting to add the alias
>before the catalog has been assigned.
>
>Can you file this?

Sure, filed as bug # 1743.

-- michael.

Reply all
Reply to author
Forward
0 new messages