How to include modules from a different directory in puppet -


my module tree this

   - modules      - socle1        - stdlib      - socle2        - ntp 

how include stdlib module in site.pp?

i have tried include socle1::stdlib , not working .

should modify environment.conf directory environment?

if want arrange modules in separate trees, may so. should include each base path in environment's modulepath, , refer modules regular names. note in particular altering path module not change name or names of of classes or types defines -- path influences whether autoloader can find them.

i advise against making subdirectories of standard module directory, however. instead, if want group modules in multiple directories create parallel module directories purpose:

- modules - socle1   - stdlib - socle2   - ntp 

should modify environment.conf directory environment?

in order support module directories beyond or instead of default, yes, should. puppet documentation describes how configure environment's modulepath. consider following @mattschuchard's advice , instead restricting standard module directories.


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -