I have this... node base_node { } node child_node inherits base_node { Yumrepo { mirrorlist => absent, enabled => 0, gpgcheck => 1 } yumrepo { "Core": enabled => 1, name => "Core", descr => "Software", baseurl => "http://$repo_server/repo/core", priority => 1, gpgcheck => 0; } } node app_node inherits child_node { include app_module } My app module has... package { "jboss-4.2.3.GA-1.tf": ensure => installed, require => Yumrepo[''Core'']; } I am getting the error: Configuration could not be instantiated: Could not find dependency Yumrepo[Core] for Package[jboss-tfel1-4.2.3.GA-1.tf] at /etc/puppet/modules/jboss/manifests/init.pp:26; using cached catalog So obviously puppet can''t find the Yumrepo[''Core''] resource. How can I let a puppet module include/access resources defined in nodes? Doug --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I have this... node base_node { } node child_node inherits base_node { Yumrepo { mirrorlist => absent, enabled => 0, gpgcheck => 1 } yumrepo { "Core": enabled => 1, name => "Core", descr => "Software", baseurl => "http://$repo_server/repo/core", priority => 1, gpgcheck => 0; } } node app_node inherits child_node { include app_module } My app module has... package { "jboss-4.2.3.GA-1.tf": ensure => installed, require => Yumrepo[''Core'']; } I am getting the error: Configuration could not be instantiated: Could not find dependency Yumrepo[Core] for Package[jboss-tfel1-4.2.3.GA-1.tf] at /etc/puppet/modules/jboss/manifests/init.pp:26; using cached catalog So obviously puppet can''t find the Yumrepo[''Core''] resource. How can I let a puppet module include/access resources defined in nodes? Doug --~--~---------~--~----~------------~-------~--~----~ 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 Oct 20, 2009, at 4:55 PM, Douglas Garstang wrote:> > I have this... > > node base_node { > } > > node child_node inherits base_node { > Yumrepo { > mirrorlist => absent, > enabled => 0, > gpgcheck => 1 > } > yumrepo { > "Core": > enabled => 1, > name => "Core", > descr => "Software", > baseurl => "http://$repo_server/repo/core", > priority => 1, > gpgcheck => 0; > } > } > > node app_node inherits child_node { > include app_module > } > > My app module has... > > package { > "jboss-4.2.3.GA-1.tf": > ensure => installed, > require => Yumrepo[''Core'']; > } > > I am getting the error: > Configuration could not be instantiated: Could not find dependency > Yumrepo[Core] for Package[jboss-tfel1-4.2.3.GA-1.tf] at > /etc/puppet/modules/jboss/manifests/init.pp:26; using cached catalog > > So obviously puppet can''t find the Yumrepo[''Core''] resource. How can I > let a puppet module include/access resources defined in nodes?You can''t - you have to extract it into a class that the requiring node can include. -- Good judgment comes from experience, and experience comes from bad judgment. --Barry LePatner --------------------------------------------------------------------- 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 -~----------~----~----~----~------~----~------~--~---
On Oct 21, 12:14 am, Luke Kanies <l...@madstop.com> wrote:> On Oct 20, 2009, at 4:55 PM, Douglas Garstang wrote:[...]> > So obviously puppet can''t find the Yumrepo[''Core''] resource. How can I > > let a puppet module include/access resources defined in nodes? > > You can''t - you have to extract it into a class that the requiring > node can include.And that''s a GOOD thing. If your modules only work with specially- configured nodes, then they aren''t very modular. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---