Error: Could not initialize global default settings: Cannot set modulepath settings in puppet.conf

asked 2017-08-24 13:18:59 -0500

Red Cricket gravatar image

I am having trouble setting my modulepath on my puppet master.

# puppet -V
4.10.5

Here is the default modulepath

# puppet config print modulepath
/etc/puppetlabs/code/environments/production/modules:/etc/puppetlabs/code/modules:/opt/puppetlabs/puppet/modules

I have to add two directories ...

  • /etc/puppetlabs/code/environments/production/modules/tools
  • /etc/puppetlabs/code/environments/production/modules/core

... to my modulepath. So I am doing this:

# puppet config set modulepath "/etc/puppetlabs/code/environments/production/modules/tools:/etc/puppetlabs/code/environments/production/modules/core:`puppet config print modulepath`"

But I get this error:

# puppet config print modulepath
Error: Could not initialize global default settings: Cannot set modulepath settings in puppet.conf

The modulepath in my puppet.conf looks ok:

# grep modulepath /etc/puppetlabs/puppet/puppet.conf
modulepath = /etc/puppetlabs/code/environments/production/modules/tools:/etc/puppetlabs/code/environments/production/modules/core:/etc/puppetlabs/code/environments/production/modules:/etc/puppetlabs/code/modules:/opt/puppetlabs/puppet/modules

I am doing something wrong or is this a bug?

edit retag flag offensive close merge delete

Comments

What stops you from doing it by hand?

Kai Burghardt gravatar imageKai Burghardt ( 2017-08-26 07:23:32 -0500 )edit