Ask Your Question
1

Puppet Enterprise is ignoring my modulepath settings in my puppet.conf

asked 2014-02-13 17:32:30 -0600

pridey gravatar image

Hi,

I'm trying to configure the Git Workflow and Puppet Environments layout as specified here: http://puppetlabs.com/blog/git-workflow-and-puppet-environments but my puppet enterprise installation seems to be ignoring the path changes I have made to the /etc/puppetlabs/puppet/puppet.conf

    [main]
    certname = pe01
    dns_alt_names = pe01,puppet
    vardir = /var/opt/lib/pe-puppet
    logdir = /var/log/pe-puppet
    rundir = /var/run/pe-puppet
    # modulepath = /etc/puppetlabs/puppet/modules:/opt/puppet/share/puppet/modules
    server = pe01
    user  = pe-puppet
    group = pe-puppet
    archive_files = true
    archive_file_server = pe01
    # additional config for environment workflows see: http://puppetlabs.com/blog/git-workflow-and-puppet-environments
    environment = production
    confdir = /etc/puppetlabs/puppet

[master ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-02-14 01:57:22 -0600

Ancillas gravatar image

Put your modulepath declaration in the [main] block after $confdir is defined. Items in the [main] block will be applied to all of the other blocks unless overridden.

Here's an abbreviated example that I tested on Puppet 3.2.4 using sudo puppet config print modulepath. I quickly modified a stock config from a vagrant instance.

[main]
    logdir=/var/log/puppet
    vardir=/var/lib/puppet
    ssldir=/var/lib/puppet/ssl
    rundir=/var/run/puppet
    confdir=/etc/puppet
    modulepath=$confdir/environments/$environment/modules
    factpath=$vardir/lib/facter
    templatedir=$confdir/templates
    prerun_command=/etc/puppet/etckeeper-commit-pre
    postrun_command=/etc/puppet/etckeeper-commit-post

[master]
    # These ...
(more)
edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2014-02-13 17:32:30 -0600

Seen: 176 times

Last updated: Feb 14 '14