Ask Your Question

Error with routes.yaml - unable to run puppet on master node

asked 2014-07-15 13:42:30 -0600

sghimire gravatar image

I am having trouble running puppet modules on the master server. The modules run fine when I execute 'puppet agent -t' from agent nodes, however when I execute that same command on the master node, I receive the following error:

Error: /Stage[main]/Pe_puppetdb::Master::Routes/File[/etc/puppetlabs/puppet/routes.yaml]: Could not evaluate: Could not retrieve information from environment production source(s) puppet:///modules/pe_puppetdb/routes.yaml

My modules are not located in the default folder, they are located in '/etc/puppetlabs/puppet/ServerConfiguration/modules'

My puppet.conf file has been updated accordingly:

    certname =
    dns_alt_names = 192,,puppet,puppet.168.2.127
    vardir = /var/opt/lib/pe-puppet
    logdir = /var/log/pe-puppet
    rundir = /var/run/pe-puppet
    modulepath = /etc/puppetlabs/puppet/ServerConfiguration/modules:/opt/puppet/share/puppet/modules
    server =
    user  = pe-puppet
    group = pe-puppet
    archive_files = true
    archive_file_server =

    certname =
    ca_name = 'Puppet CA generated on master.localdomain at 2014-07-03 06:43:49 -0400'
    reports = console,puppetdb
    node_terminus = console
    ssl_client_header = SSL_CLIENT_S_DN
    ssl_client_verify_header = SSL_CLIENT_VERIFY
    storeconfigs_backend = puppetdb
    storeconfigs = true

    report = true
    classfile = $vardir/classes.txt
    localconfig = $vardir/localconfig
    graph = true
    pluginsync = true
    environment = production
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-07-23 19:15:49 -0600

binford2k gravatar image

The second part of your modulepath is likely outdated. It should be /opt/puppetlabs/puppet/modules instead of /opt/puppet/...

edit flag offensive delete link more


The original question was asked in 2014, it may have been correct at the time.

DarylW gravatar imageDarylW ( 2018-07-24 08:02:07 -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: 2014-07-15 13:42:30 -0600

Seen: 317 times

Last updated: Jul 23