#1184: Autoloading definitions doesn't work, explicit import is required
----------------------------------+-----------------------------------------
 Reporter:  shadoi                |        Owner:  community      
     Type:  defect                |       Status:  new            
 Priority:  normal                |    Milestone:                 
Component:  library               |      Version:  0.24.4         
 Severity:  normal                |   Resolution:                 
 Keywords:  definition, autoload  |        Stage:  Needs more info
    Patch:  None                  |   Complexity:  Unknown        
----------------------------------+-----------------------------------------
Comment (by arogge):

 This only seems to occur in client/server and (at least for me) only
 sometimes.

 I'm using something like the following:

 in my module's init.pp:
 {{{
 class nagios{ ... }
 define nagios::check(...) {...}
 }}}

 in my site.pp:
 {{{
 import 'puppet.pp'

 node basenode {
   include puppet
 }
 }}}
 in puppet.pp:
 {{{
 class puppet {
   ...
   nagios::check { "puppet_freshness": }
   ...
 }
 }}}
 in my node configuration:
 {{{
 node mynode inherits basenode {
   $nagios_parents = [ "parenthost" ]
   include nagios
 }
 }}}

 I can see the problem only sometimes, but I think it happens for every
 host. I first guessed it would occur on the first recompile after
 puppetmaster reloads its files, but that's not the case. It just happens
 from time to time.

-- 
Ticket URL: <http://reductivelabs.com/trac/puppet/ticket/1184#comment:5>
puppet <http://reductivelabs.com>
Puppet - Portable System Automation
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to