Ask Your Question

Do local modules override modules defined on the puppet master?

asked 2017-07-26 16:44:09 -0600

wfsaxton gravatar image

updated 2017-07-26 17:17:51 -0600

I'm using Puppet on Solaris and I'd like to use the most updated version of Solaris providers from github. Puppet on Solaris comes with the provider module already installed, but it is dated.

I put the provider module in my Puppetfile and my puppet master sees it just fine, r10k populates it the environments' module directories, etc.

But when I run "puppet agent -t", it seems to be using the older version of the module.

Here are my paths:

root@test1:/etc/puppet/modules# puppet config print modulepath basemodulepath
modulepath = /etc/puppet/modules:/usr/share/puppet/modules
basemodulepath = /etc/puppet/modules:/usr/share/puppet/modules
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-07-27 07:23:16 -0600

no - precedence is set from modulepath. do a puppet config print --section master --environment envname modulepath

this will show you the order puppet searches for modules

you could override this by specifying --modulepath when running puppet - or alter the location in puppet.conf

edit flag offensive delete link more


Yeah, this is strange. It should definitely be picking up the 2.1.1 module. Here is the output of the command when I run it on the master

wfsaxton gravatar imagewfsaxton ( 2017-07-27 07:44:10 -0600 )edit

# puppet config print --section master --environment my_env modulepath /etc/puppetlabs/code/environments/my_env/site:/etc/puppetlabs/code/environments/my_env/modules: \ /etc/puppetlabs/code/modules:/opt/puppetlabs/puppet/modules

wfsaxton gravatar imagewfsaxton ( 2017-07-27 07:44:46 -0600 )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


Asked: 2017-07-26 16:44:09 -0600

Seen: 66 times

Last updated: Jul 27 '17