On Tue, Aug 2, 2011 at 10:06 PM, Luke Bigum <luke.bi...@lmax.com> wrote:

> Strange, they both appeared in my inbox at the same time.
>
Yes, It appears my messages were sent to a moderator.  Perhaps this is done
with all messages or just new users for a period of time.  Now I know.


>
> http://docs.puppetlabs.com/learning/modules1.html#manifests-namespacing-and-autoloading
>
> Do you have your module directory structure laid out correctly so
> Puppet's auto-loading feature can find it? Assuming the require line
> above, you must have the following on your file system:
>
> modules/firewall/rules/server/allow_ssh.pp
>
> You can force your way around that using the 'import' statement, or
> putting everything in firewall/init.pp but everyone pretty much agrees
> this is a nightmare to manage.
>
> HTH,
>
> -Luke
>
> I *think* my module directory structure is laid out correctly. Below is a
paste of my module tree. What I find strange is from my
manifests/some_file.pp I can use an Include
firewall::rules::server::allow_ssh and it works fine. It's just when I try
and use that as a require statement in another module. For now I'm putting a
bunch of includes in my baseline.pp but this is less than ideal. I'm hoping
someone will be able to point out the error of my ways :)

 |-manifests
 |-*nodes.pp, sites.pp, etc
 |-modules
 |---crontab
 |-----files
 |-----manifests
 |-----templates
 |---firewall
 |-----files
 |-----manifests
 |-------rules
 |---------client
 |---------server
 |---------*allow_ssh.pp (class firewall::rules::server::allow_ssh)
 |-----templates
 |-------Linux
 |---------client
 |---------server
 |---fsmounts
 |-----files
 |-----manifests
 |-----templates
 |---hosts
 |-----files
 |-----manifests
 |-----templates
 |---kernelrtv
 |-----files
 |-----manifests
 |-----templates
 |---packages
 |-----files
 |-------logrotate.d
 |-------rsyslog.d
 |-----manifests
 |-----*ssh.pp (trying to require from here)
 |-----templates
 |---profiles
 |-----files
 |-------bash_defaults
 |-------skel
 |-----manifests
 |-----templates
 |---services
 |-----files
 |-----manifests
 |-----templates
 |---users
 |-----files
 |-----manifests
 |-----templates
 |---yum
 |-----files
 |-----manifests
 |-----templates
 |-pconfig

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to