Juri Rischel Jensen
2008-Jun-04 15:19 UTC
[Puppet Users] usage of the common and shorewall module from David Schmidt
Hi all Before I loose my mind completely, I''d like to know if I''m the only one to bang my head against this problem. (And though I probably should contact David directly, I''m asking on the list first, in case anyone else has something to say). I''m trying to use Davids shorewall module, together with the dependant common module. But I''m getting the following two errors, and I honestly don''t know where to look anymore: Configuration could not be instantiated: Could not find dependent Exec[concat_/var/lib/puppet/modules/shorewall] for File[/var/lib/ puppet/modules/shorewall/interfaces.d] at /etc/puppet/modules/ shorewall/manifests/init.pp:54 and Configuration could not be instantiated: File[/var/lib/puppet/modules/ shorewall/interfaces.d] is already being managed I have both modules added in modules.pp, defined a [modules] fileserver section and included shorewall ("include shorewall") in my node configuration. Can anybody shed some light on this? -- Med venlig hilsen Juri Rischel Jensen Fab:IT ApS Vesterbrogade 50 DK-1620 København Tlf: +45 70 202 407 www.fab-it.dk --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Jeff Falgout
2008-Jun-05 17:57 UTC
[Puppet Users] Re: usage of the common and shorewall module from David Schmidt
Juri - On Wed, Jun 4, 2008 at 9:19 AM, Juri Rischel Jensen <juri@fab-it.dk> wrote:> > Hi all > > Before I loose my mind completely, I''d like to know if I''m the only > one to bang my head against this problem. (And though I probably > should contact David directly, I''m asking on the list first, in case > anyone else has something to say). > > I''m trying to use Davids shorewall module, together with the dependant > common module. But I''m getting the following two errors, and I > honestly don''t know where to look anymore: > > Configuration could not be instantiated: Could not find dependent > Exec[concat_/var/lib/puppet/modules/shorewall] for File[/var/lib/ > puppet/modules/shorewall/interfaces.d] at /etc/puppet/modules/ > shorewall/manifests/init.pp:54 > > and > > Configuration could not be instantiated: File[/var/lib/puppet/modules/ > shorewall/interfaces.d] is already being managed > > I have both modules added in modules.pp, defined a [modules] > fileserver section and included shorewall ("include shorewall") in my > node configuration. > > Can anybody shed some light on this? >I too had problems getting the shorewall module to work. I eventually gave up on it. I''m in the puppet class this week with Luke and it''s one of the first things I''m going to work on when I get back. I''d be interested in working with you on it. Jeff --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Juri Rischel Jensen
2008-Jun-05 22:37 UTC
[Puppet Users] Re: usage of the common and shorewall module from David Schmidt
Hi Jeff On 05/06/2008, at 19:57, Jeff Falgout wrote:> I too had problems getting the shorewall module to work. I eventually > gave up on it. I''m in the puppet class this week with Luke and it''s > one of the first things I''m going to work on when I get back. I''d be > interested in working with you on it.Yes, let''s try to work on this together. Do you get the same errors as I do? It seems to me, that puppet doesn''t see the common module that the shorewall module is depending on. But I''m importing both, common first and then shorewall. So I simply can''t figure out why it doesn''t work... I''m on a mini vacation right now (thursday ''til sunday) and I''m probably not able to take a more thorough look at it before monday... -- Med venlig hilsen Juri Rischel Jensen Fab:IT ApS Vesterbrogade 50 DK-1620 København Tlf: +45 70 202 407 www.fab-it.dk --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
David Schmitt
2008-Jun-06 07:45 UTC
[Puppet Users] Re: usage of the common and shorewall module from David Schmidt
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 04 June 2008, Juri Rischel Jensen wrote:> Hi all > > Before I loose my mind completely, I''d like to know if I''m the only > one to bang my head against this problem. (And though I probably > should contact David directly, I''m asking on the list first, in case > anyone else has something to say). > > I''m trying to use Davids shorewall module, together with the dependant > common module. But I''m getting the following two errors, and I > honestly don''t know where to look anymore: > > Configuration could not be instantiated: Could not find dependent > Exec[concat_/var/lib/puppet/modules/shorewall] for File[/var/lib/ > puppet/modules/shorewall/interfaces.d] at /etc/puppet/modules/ > shorewall/manifests/init.pp:54 > > and > > Configuration could not be instantiated: File[/var/lib/puppet/modules/ > shorewall/interfaces.d] is already being managed > > I have both modules added in modules.pp, defined a [modules] > fileserver section and included shorewall ("include shorewall") in my > node configuration. > > Can anybody shed some light on this?The shorewall module never went into production over here, so there might be some problems with it. I''ll gladly publish patches ;) To the specific errors: this looks as if a concatenated_file is missing or duplicated... Regards, DavidS - -- The primary freedom of open source is not the freedom from cost, but the free- dom to shape software to do what you want. This freedom is /never/ exercised without cost, but is available /at all/ only by accepting the very different costs associated with open source, costs not in money, but in time and effort. - -- http://www.schierer.org/~luke/log/20070710-1129/on-forks-and-forking -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQFISOse/Pp1N6Uzh0URAqFJAJ9IoQ/2EplvPhSgxlz1UwvzPR4zXQCfbKql S430NNQu2hFfoN7e5AKh80U=GlP7 -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Juri Rischel Jensen
2008-Jun-06 09:48 UTC
[Puppet Users] Re: usage of the common and shorewall module from David Schmidt
Hi David On 06/06/2008, at 09:45, David Schmitt wrote:> The shorewall module never went into production over here, so there > might be > some problems with it. I''ll gladly publish patches ;)Ok. The funny thing is, that I''ve used it succesfully on one machine last year (I think), but now it doesn''t work at all. I upgraded to the latest version from your git repo, in the hope that it would fix the problem. But unfortunately it didn''t... :-( I''ll see if I can find the culprit and make som patches (I have to figure out that last bit too :-)> To the specific errors: this looks as if a concatenated_file is > missing or > duplicated...I''ve searched in my modules dir, and only one definition of cancatenated_file exists. So it can''t be that... -- Med venlig hilsen/Best regards Juri Rischel Jensen Fab:IT ApS Vesterbrogade 50 DK-1620 København Tlf: +45 70 202 407 www.fab-it.dk --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
David Schmitt
2008-Jun-06 10:09 UTC
[Puppet Users] Re: usage of the common and shorewall module from David Schmidt
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 06 June 2008, Juri Rischel Jensen wrote:> Hi David > > On 06/06/2008, at 09:45, David Schmitt wrote: > > The shorewall module never went into production over here, so there > > might be > > some problems with it. I''ll gladly publish patches ;) > > Ok. The funny thing is, that I''ve used it succesfully on one machine > last year (I think), but now it doesn''t work at all. I upgraded to the > latest version from your git repo, in the hope that it would fix the > problem. But unfortunately it didn''t... :-(go figure .. since I don''t use it, I probably changed common incompatably ...> I''ll see if I can find the culprit and make som patches (I have to > figure out that last bit too :-) > > > To the specific errors: this looks as if a concatenated_file is > > missing or > > duplicated... > > I''ve searched in my modules dir, and only one definition of > cancatenated_file exists. So it can''t be that...''a concatenated_file'' meaning a specific resource using that define. Regards, DavidS> > -- > Med venlig hilsen/Best regards > Juri Rischel Jensen > > Fab:IT ApS > Vesterbrogade 50 > DK-1620 København > Tlf: +45 70 202 407 > www.fab-it.dk > > >- -- The primary freedom of open source is not the freedom from cost, but the free- dom to shape software to do what you want. This freedom is /never/ exercised without cost, but is available /at all/ only by accepting the very different costs associated with open source, costs not in money, but in time and effort. - -- http://www.schierer.org/~luke/log/20070710-1129/on-forks-and-forking -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQFISQzv/Pp1N6Uzh0URAjoLAJ4o+bh5IXCU/o3P0rFvyLgH4TFYtACgi04z QX2B/4rN9ebIaWtuLWTV5CY=uyWJ -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Jeff Falgout
2008-Jun-06 15:06 UTC
[Puppet Users] Re: usage of the common and shorewall module from David Schmidt
David and Juri On Fri, Jun 6, 2008 at 4:09 AM, David Schmitt <david@schmitt.edv-bus.at> wrote:> > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Friday 06 June 2008, Juri Rischel Jensen wrote: >> Hi David >> >> On 06/06/2008, at 09:45, David Schmitt wrote: >> > The shorewall module never went into production over here, so there >> > might be >> > some problems with it. I''ll gladly publish patches ;) >> >> Ok. The funny thing is, that I''ve used it succesfully on one machine >> last year (I think), but now it doesn''t work at all. I upgraded to the >> latest version from your git repo, in the hope that it would fix the >> problem. But unfortunately it didn''t... :-( > > go figure .. since I don''t use it, I probably changed common incompatably ... > >> I''ll see if I can find the culprit and make som patches (I have to >> figure out that last bit too :-) >> >> > To the specific errors: this looks as if a concatenated_file is >> > missing or >> > duplicated... >> >> I''ve searched in my modules dir, and only one definition of >> cancatenated_file exists. So it can''t be that... > > ''a concatenated_file'' meaning a specific resource using that define.I got most of the module working last night, so don''t change anything yet. I''ve got some (what I hope) minor changes to the module and I''ll send the fixes up to David. Jeff --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Juri Rischel Jensen
2008-Jun-06 16:11 UTC
[Puppet Users] Re: usage of the common and shorewall module from David Schmidt
On 06/06/2008, at 12:09, David Schmitt wrote:> go figure .. since I don''t use it, I probably changed common > incompatably ...Hmm, maybe. But I didn''t update since I used it the last time succesfully. It was only when it didn''t work, that I tried to update - both shorewall and common module... So my guess is that the error or incompatibility was introduced with a new version of puppet, and that it did work with an earlier version...>> I''ll see if I can find the culprit and make som patches (I have to >> figure out that last bit too :-) >> >>> To the specific errors: this looks as if a concatenated_file is >>> missing or >>> duplicated... >> >> I''ve searched in my modules dir, and only one definition of >> cancatenated_file exists. So it can''t be that... > > ''a concatenated_file'' meaning a specific resource using that define.From common/manifests/defines/concatenated_file.pp define concatenated_file ( # where the snippets are located $dir = '''', # a file with content to prepend $header = '''', # a file with content to append $footer = '''', $mode = 0644, $owner = root, $group = 0 ) .... The definition is made in the top scope (not wrapped in any classes) so all modules and classes should be able to call it (and the exec { "concat_${name}" stanza in that define). But puppet claims to be unable to see it. Weird... -- Med venlig hilsen/Best regards Juri Rischel Jensen Fab:IT ApS Vesterbrogade 50 DK-1620 København Tlf: +45 70 202 407 www.fab-it.dk --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Juri Rischel Jensen
2008-Jun-06 16:12 UTC
[Puppet Users] Re: usage of the common and shorewall module from David Schmidt
Hi Jeff On 06/06/2008, at 17:06, Jeff Falgout wrote:> I got most of the module working last night, so don''t change anything > yet. I''ve got some (what I hope) minor changes to the module and I''ll > send the fixes up to David.That sounds good. Been pulling my hair on this one for some days now, and I really want it to work. :-) -- Med venlig hilsen/Best regards Juri Rischel Jensen Fab:IT ApS Vesterbrogade 50 DK-1620 København Tlf: +45 70 202 407 www.fab-it.dk --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
David Schmitt
2008-Jun-08 08:42 UTC
[Puppet Users] Re: usage of the common and shorewall module from David Schmidt
>>>> To the specific errors: this looks as if a concatenated_file is >>>> missing or >>>> duplicated... >>> I''ve searched in my modules dir, and only one definition of >>> cancatenated_file exists. So it can''t be that... >> ''a concatenated_file'' meaning a specific resource using that define. > > From common/manifests/defines/concatenated_file.pp > > define concatenated_file ( > # where the snippets are located > $dir = '''', > # a file with content to prepend > $header = '''', > # a file with content to append > $footer = '''', > $mode = 0644, $owner = root, $group = 0 > ) > .... > > The definition is made in the top scope (not wrapped in any classes) > so all modules and classes should be able to call it (and the exec > { "concat_${name}" stanza in that define). But puppet claims to be > unable to see it. Weird...So? The "define" is only a template. Where do you create the actual resource? For reference again, your error message:> Configuration could not be instantiated: Could not find dependent > Exec[concat_/var/lib/puppet/modules/shorewall] for File[/var/lib/ > puppet/modules/shorewall/interfaces.d] at /etc/puppet/modules/ > shorewall/manifests/init.pp:54This means usually means that you have a concatenated_file_part, without the matching concatenated_file. This can happen by not matching the $dir (I often mix up trailing slashes) or by simpler omission of the latter. Regards, DavidS --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Peter Meier
2008-Jun-09 07:18 UTC
[Puppet Users] Re: usage of the common and shorewall module from David Schmidt
Hi> On 06/06/2008, at 17:06, Jeff Falgout wrote: >> I got most of the module working last night, so don''t change anything >> yet. I''ve got some (what I hope) minor changes to the module and I''ll >> send the fixes up to David. > > That sounds good. Been pulling my hair on this one for some days now, > and I really want it to work. :-)I have a working shorewall module in production from DavidS with little changes. Unfortunately my public git repo isn''t currently avaiable and I didn''t yet push it on github. If you can wait a day or so, I''ll send the link on the list. Otherwise you can contact me on irc: duritong greets pete --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Peter Meier
2008-Jun-13 21:11 UTC
[Puppet Users] Re: usage of the common and shorewall module from David Schmidt
Hi>>> I got most of the module working last night, so don''t change anything >>> yet. I''ve got some (what I hope) minor changes to the module and I''ll >>> send the fixes up to David. >> That sounds good. Been pulling my hair on this one for some days now, >> and I really want it to work. :-) > > I have a working shorewall module in production from DavidS with little > changes. Unfortunately my public git repo isn''t currently avaiable and I > didn''t yet push it on github. If you can wait a day or so, I''ll send the > link on the list. Otherwise you can contact me on irc: duritongsorry, nearly forgot that: https://git.puppet.immerda.ch/?p=module-shorewall some changes to davids module, however fully compatible with all his others, which are needed due to dependencies (like common etc.) greets pete --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---