I'm noticed a similar odd behavior with 0.25.1 as well. I have a  
module that works fine under 0.24.8 (both webrick and passenger),  
works fine under 0.25.1 (webrick), but will not load for the first few  
runs under 0.25.1 (passenger). I only have one node, so I'm pretty  
sure it's not a caching issue, or if it is, it's odd.

For the first few runs of the node I see the following in the log:

<Error>: Could not parse for environment production: No file(s) found  
for import of 'lanl-baseline' at /var/puppet/environments/production/ 
manifests/site.pp:19

So here's the chain. If you can see where the problem is, please let  
me know.


/var/puppet/environments/production/manifests/site.pp:
import "lanl-baseline"

/var/puppet/environments/production/modules/lanl-baseline/manifests/ 
init.pp:
import "nodes.pp"
import "definitions/*"
import "classes/*"

/var/puppet/environments/production/modules/lanl-baseline/manifests/ 
nodes.pp:
node basenode {
         case $operatingsystem {
                 darwin: { include darwin }
                 default: { include darwin }
         }
}

# the default node. All non OS classes should inherit this
node default inherits basenode {}

/var/puppet/environments/production/modules/lanl-baseline/manifests/ 
classes/darwin.pp
class darwin {
         include puppet
         include stom
         include getDefsDate
        include swInventory
        include sav
}

each of the classes included in darwin.pp have corresponding ".pp"  
class files in same "classes" dir.

So after two or three client runs I no longer get the error about lanl- 
baseline and the catalog is built and run.

Do I need to change my dir structure:

puppet-dev:production root# pwd
/var/puppet/environments/production
puppet-dev:production root# tree .
    |-manifests
    |-modules
    |---lanl-baseline
    |-----files
    |-----manifests
    |-------classes
    |-------definitions
    |-templates


puppet.conf:

[main]
  manifest      = /var/puppet/environments/production/manifests/site.pp
  modulepath    = /var/puppet/environments/production/modules
  templatedir    = /var/puppet/environments/production/templates


---
Thanks,

Allan Marcus
505-667-5666



On Sep 28, 2009, at 2:13 AM, Nico -telmich- Schottelius wrote:

> Good morning dear puppet users,
>
> if you experience "it works - it does not work" situations with puppet
> like I do, here may be the reason for it:
>
>  http://www.nico.schottelius.org/blog/puppet-sometimes-loads-a-class/
>
> I was told that this behaviour is "correct" on IRC, but I don't agree
> with it: a configuration should either work or not, not both.
>
> What's your point of view?
> Is my approach not the way puppet users/devs think or do you also see
> this as a bug?
>
> Sincerly,
>
> Nico
>
> -- 
> Currently moving *.schottelius.org to http:// 
> www.nico.schottelius.org/ ...
>
> PGP: BFE4 C736 ABE5 406F 8F42  F7CF B8BE F92A 9885 188C


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to