web-routes.conf

The web-routes.conf file configures the Puppet Server web-router-service, which sets mount points for Puppet Server's web applications. You should not modify these mount points, because Puppet agents rely on Puppet Server mounting them to specific URLs.

For an overview, see Puppet Server Configuration. To configure the webserver service, see the webserver.conf documentation.

Example

Here is an example of a web-routes.conf file:

# Configure the mount points for the web apps.
web-router-service: {
    # These two should not be modified because the Puppet 4 agent expects them to
    # be mounted at these specific paths.
    "puppetlabs.services.ca.certificate-authority-service/certificate-authority-service": "/puppet-ca"
    "puppetlabs.services.master.master-service/master-service": "/puppet"

    # This controls the mount point for the Puppet administration API.
    "puppetlabs.services.puppet-admin.puppet-admin-service/puppet-admin-service": "/puppet-admin-api"

    # This controls the mount point for the status API
    "puppetlabs.trapperkeeper.services.status.status-service/status-service": "/status"

    # This controls the mount point for the metrics API
    "puppetlabs.trapperkeeper.services.metrics.metrics-service/metrics-webservice": "/metrics"
}