Configuring and tuning the console
After installing Puppet Enterprise, you can change product settings to customize the console's behavior, adjust to your team's needs, and improve performance.
Configure the PE console and console-services
Configure the behavior of the console and console-services, as needed.
puppet_enterprise::api_port
and puppet_enterprise::console_services::no_longer_reporting_cutoff
. Console and console-services parameters
Use these parameters to customize the behavior of the console and console-services. Parameters that begin with puppet_enterprise::profile
can be modified from the console itself. See the configuration methods documents for more information on how to change parameters in the console or Hiera.
-
puppet_enterprise::profile::console::classifier_synchronization_period
- Integer representing, in seconds, the classifier synchronization period, which controls how long it takes the node classifier to retrieve classes from the master.
-
puppet_enterprise::profile::console::rbac_failed_attempts_lockout
- Integer specifying how many failed login attempts are allowed on an account before that account is revoked.
-
puppet_enterprise::profile::console::rbac_password_reset_expiration
- Integer representing, in hours, how long a user's generated token is valid for. An administrator generates this token for a user so that they can reset their password.
-
puppet_enterprise::profile::console::rbac_session_timeout
- Integer representing, in minutes, how long a user's session may last. The session length is the same for node classification, RBAC, and the console.
-
puppet_enterprise::profile::console::session_maximum_lifetime
- Integer representing the maximum allowable period that a console session may be valid. May be set to "0" to not expire before the maximum token lifetime.
-
puppet_enterprise::profile::console::console_ssl_listen_port
- Integer representing the port that the console is available on.
-
puppet_enterprise::profile::console::ssl_listen_address
- Nginx listen address for the console.
-
puppet_enterprise::profile::console::classifier_prune_threshold
- Integer representing the number of days to wait before pruning the size of the classifier database. If you set the value to
"0"
, the node classifier service is never pruned. -
puppet_enterprise::profile::console::classifier_node_check_in_storage
-
"true"
to store an explanation of how nodes match each group they're classified into, or"false"
. -
puppet_enterprise::profile::console::display_local_time
-
"true"
to display timestamps in local time, with hover text showing UTC time, or"false"
to show timestamps in UTC time.
pe.conf
, not the console:-
puppet_enterprise::api_port
- SSL port that the node classifier is served on.
-
puppet_enterprise::console_services::no_longer_reporting_cutoff
- Length of time, in seconds, before a node is considered unresponsive.
-
console_admin_password
- The password to log into the console, for example
"myconsolepassword"
.
Manage the HTTPS redirect
By default, the console redirects to HTTPS when you attempt to connect over HTTP. You can customize the redirect target URL or disable redirection.
profile
class and can be edited in the console.Customize the HTTPS redirect target URL
By default, the redirect target URL is the same as the FQDN of your master, but you can customize this redirect URL.
Disable the HTTPS redirect
The pe-nginx webserver listens on port 80 by default. If you need to run your own service on port 80, you can disable the HTTPS redirect.
Tuning the PostgreSQL buffer pool size
If you are experiencing performance issues or instability with the console, adjust the buffer memory settings for PostgreSQL.
The most important PostgreSQL memory settings for PE are shared_buffers
and work_mem
.
Enable data editing in the console
The ability to edit configuration data in the console is enabled by default in new installations. If you upgrade from an earlier version and didn't previously have configuration data enabled, you must manually enable classifier configuration data, because enabling requires edits to your hiera.yaml
file.
/etc/puppetlabs/puppet/hiera.yaml
to add: hierarchy:
- name: "Classifier Configuration Data"
data_hash: classifier_data
hiera-yaml
or hiera-eyaml
under the same hierarchy
key, preferably below the Classifier
Configuration Data
entry.If your environment is configured for high availability, you must also update hiera.yaml
on your replica.