Puppet Module directory structure

40 views
Skip to first unread message

Harish Kothuri

unread,
May 16, 2016, 9:31:42 AM5/16/16
to Puppet Users
Hi,

Can we customize the puppet module directory structure as i would like to separate the puppet modules and in-house written modules.


Current Structure:

/etc/puppet/environment/production/modules/   contains all modules includes puppet forge 
Ex: ntp , stdlib, chocolatey and mypackg

Expected:

1. puppetpackages
/etc/puppet/environment/production/modules/puppetpackages

folders
ntp, sdlib, chocolatey

2. inhousepackages

/etc/puppet/environment/production/modules/inhousepackages

folders
mypkg1, mypkg2.


Thanks



Tim Skirvin

unread,
May 16, 2016, 10:04:54 AM5/16/16
to puppet...@googlegroups.com
Harish Kothuri <harish...@gmail.com> writes:

> Can we customize the puppet module directory structure as i would like to
> separate the puppet modules and in-house written modules.

Yes. You're looking at the 'modulepath' directive in
environment.conf:

https://docs.puppet.com/puppet/latest/reference/config_file_environment.html#modulepath

- Tim Skirvin (tski...@fnal.gov)
--
HPC Systems Administrator / Developer http://www.linkedin.com/in/tskirvin
USCMS-T1 Collaboration Fermilab ECF
signature.asc

Henrik Lindberg

unread,
May 16, 2016, 10:05:38 AM5/16/16
to puppet...@googlegroups.com
On 16/05/16 15:31, Harish Kothuri wrote:
> Hi,
>
> Can we customize the puppet module directory structure as i would like
> to separate the puppet modules and in-house written modules.
>
Yes. The modulepath takes multiple entries - each should be the path to
a directory containing modules. You should find what you need here:

https://docs.puppet.com/puppet/latest/reference/dirs_modulepath.html

- henrik

>
> _*Current Structure:*_
>
> /etc/puppet/environment/production/modules/ contains all modules
> includes puppet forge
> Ex: ntp , stdlib, chocolatey and mypackg
>
> _*Expected:*_
>
> 1. puppetpackages
> /etc/puppet/environment/production/modules/puppetpackages_*
> *_
>
> _folders_
> ntp, sdlib, chocolatey
>
> 2. inhousepackages
>
> /etc/puppet/environment/production/modules/inhousepackages
> _
> _
> _folders_
> mypkg1, mypkg2.
>
>
> Thanks
>
>
> _*
> *_
>
> --
> You received this message because you are subscribed to the Google
> Groups "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to puppet-users...@googlegroups.com
> <mailto:puppet-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/c195a5f1-bef6-4fd9-aef3-0987e8a04efc%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/c195a5f1-bef6-4fd9-aef3-0987e8a04efc%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.


--

Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/

Harish Kothuri

unread,
May 16, 2016, 12:43:36 PM5/16/16
to Puppet Users
Thanks for your reply. Will give that a try.
Reply all
Reply to author
Forward
0 new messages