michael@livia.co.nz
2008-Nov-08 00:52 UTC
[Puppet Users] Possible documentation error, around aliases?
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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Luke Kanies
2008-Nov-13 00:29 UTC
[Puppet Users] Re: Possible documentation error, around aliases?
On Nov 7, 2008, at 4:52 PM, michael@livia.co.nz wrote:> > 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?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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
michael@livia.co.nz
2008-Nov-13 00:42 UTC
[Puppet Users] Re: Possible documentation error, around aliases?
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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---