On 2010-07-03, Jeff McCune wrote:
> In this module, if you use the following orginization puppet will
> autoload everything:
>
> manifests/init.pp contains class apache { }
> manifests/disable.pp contains class apache::disable inherits apache {}
> manifests/virtualhost.pp contains define apache::virtualhost(){}
Yuck! Forcing each class or define into its own file sucks royally.
No sane person wants their code organized like that.
> If you want additional namespaces, they go in directories.
> class apache::service::disable would go in manifests/service/disable.pp
>
> I highly recommend against using import today and in the future.
The cure is in this case worse, *much* worse, than the illness of having
to do explicit imports. I'd rather have two dozen import lines in site.pp
(which is what I have now) than having to split my classes and defines into
almost 200 files in two dozen directories.
/Thomas Bellman
--
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.