I am probably doing something weird/stupid here, but: http://pastie.org/private/dvqohxaynduishegpjibpg The error I''m getting is: Jun 1 19:05:21 control puppetmasterd[18028]: [ID 702911 daemon.error] Puppet::Parser::AST::Resource failed with error ArgumentError: Duplicate definition: Zfs[zone_] is already defined in file /icg/pkg/local/puppet/etc/manifests/classes/zones.pp at line 57; cannot redefine at /icg/pkg/local/puppet/etc/manifests/classes/zones.pp:57 on node shiver If I comment out the second include from node ''shiver'' {}, it builds the first included zone happily. Any pointers? (James: Really hoping to get to those tests this week; sorry. Lots of meatspace boom the last couple weeks.) -- bda cyberpunk is dead. long live cyberpunk. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi! Bryan Allen schrieb:> I am probably doing something weird/stupid here, but: > > http://pastie.org/private/dvqohxaynduishegpjibpg > > The error I''m getting is: > > Jun 1 19:05:21 control puppetmasterd[18028]: [ID 702911 daemon.error] Puppet::Parser::AST::Resource failed with error ArgumentError: Duplicate definition: Zfs[zone_] is already defined in file /icg/pkg/local/puppet/etc/manifests/classes/zones.pp at line 57; cannot redefine at /icg/pkg/local/puppet/etc/manifests/classes/zones.pp:57 on node shiver > > If I comment out the second include from node ''shiver'' {}, it builds the first > included zone happily. > > Any pointers?"Zfs[zone_]" seems to point towards a missing variable. Since the linenumbers of your paste and the error message don''t seem to line up, I guess it''s the > zfs { "zone_$zonename_tank": on line 28. This should read > zfs { "zone_${zonename}_tank": to be parsed correctly. See the "No more than one "instances" of a type in define()?" thread from yesterday for details. Regards, DavidS -- dasz.at OG Tel: +43 (0)664 2602670 Web: http://dasz.at Klosterneuburg UID: ATU64260999 FB-Nr.: FN 309285 g FB-Gericht: LG Korneuburg --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
+------------------------------------------------------------------------------ | On 2009-06-02 08:30:34, David Schmitt wrote: | | This should read | | > zfs { "zone_${zonename}_tank": | | to be parsed correctly. Yup. In fact, I asked this question on IRC a couple weeks ago and someone responded "Just like in shell." Thanks very much for the refresher. -- bda cyberpunk is dead. long live cyberpunk. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---