Ask Your Question
1

set modulepath

asked 2013-06-13 18:40:30 -0500

BaltoStar gravatar image

Is it possible to set modulepath to other than the defaults ?

Windows Puppet Agent

modulepath=C:/ProgramData/PuppetLabs/puppet/etc/modules;C:/usr/share/puppet/modules

I'd like to augment those paths with path to a GitHub local repo.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-06-13 19:56:22 -0500

llowder gravatar image

updated 2013-06-13 22:13:05 -0500

Yes, just set modulepath in your puppet.conf. See the docs for details, but basically just add:

modulepath=C:/path/to/repo;C:/ProgramData/PuppetLabs/puppet/etc/modules;C:/usr/share/puppet/modules

to the [main] section, to the specific [environment] section you want to modify, or to the [user] section (If you only want it to be used when you run puppet apply. This section may not exist by default).

edit flag offensive delete link more

Comments

on Windows , C:\ProgramData\PuppetLabs\puppet\etc\puppet.conf doesn't have a [master] section , but it does have a [main] section - is that what you meant ?

BaltoStar gravatar imageBaltoStar ( 2013-06-13 21:03:41 -0500 )edit

modulepath is only relevant on a master or if you are running masterless. Since Windows doesn't support running the puppet master currently, it would need to go into either ...(more)

llowder gravatar imagellowder ( 2013-06-13 22:11:42 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-06-13 18:40:30 -0500

Seen: 1,277 times

Last updated: Jun 13 '13