On Jul 5, 2010, at 4:14 PM, Douglas Garstang wrote:

On Mon, Jul 5, 2010 at 4:00 PM, Peter Meier <peter.me...@immerda.ch> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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(){}

Really? Are you serious???. Why is puppet dictating to me that it will
only autoload classes if I have a class named module::disable,
module::virtualhost? Who's idea was that and why? This seems awfully
arbitrary.

on what other basis should puppet then autoload classes/defines?

Let me try this again.

Your saying that unless my module contains a class specifically called
$module::disable.pp (and therefore a filed called 'disable.pp' in
manifests), then puppet will not autoload anything? I just got it to
work without such a class in a module. All I had to do was throw a
bunch of files in $module/manifests/, include $module::something and
it worked.

Where is this documented?

Just to be more clear:

Nowhere does Puppet require that you have those files specifically.

However, *if* you want Puppet to autoload a class named '$module::foo', then that class must either be in the module's init.pp file or in a class named 'foo.pp' in that module's 'manifests' directory.

There was clearly some confusion on specificity here - an example was being used, but it wasn't meant to say that all classes had to look like that.

--
Brand's Asymmetry:
    The past can only be known, not changed. The future can only be
    changed, not known.
---------------------------------------------------------------------
Luke Kanies  -|-   http://puppetlabs.com   -|-   +1(615)594-8199

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to