PuppetserverConfig - file /etc/sysconfig/puppetserver

class insights.parsers.puppetserver_config.PuppetserverConfig(*args, **kwargs)[source]

Bases: Parser, LegacyItemAccess

Warning

This parser is deprecated, please use insights.parsers.sysconfig.PuppetserverSysconfig instead.

Parse the puppetserver configuration file.

Produces a simple dictionary of keys and values from the configuration file contents , stored in the data attribute. The object also functions as a dictionary itself thanks to the insights.core.LegacyItemAccess mixin class.

Sample configuration file:

###########################################
# Init settings for puppetserver
###########################################

# Location of your Java binary (version 7 or higher)
JAVA_BIN="/usr/bin/java"

# Modify this if you'd like to change the memory allocation, enable JMX, etc
JAVA_ARGS="-Xms2g -Xmx2g -XX:MaxPermSize=256m"

# These normally shouldn't need to be edited if using OS packages
USER="puppet"
GROUP="puppet"
INSTALL_DIR="/opt/puppetlabs/server/apps/puppetserver"
CONFIG="/etc/puppetlabs/puppetserver/conf.d"

BOOTSTRAP_CONFIG="/etc/puppetlabs/puppetserver/services.d/,/opt/puppetlabs/server/apps/puppetserver/config/services.d/"

SERVICE_STOP_RETRIES=60

START_TIMEOUT=300

RELOAD_TIMEOUT=120

Examples

>>> puppetserver_config['START_TIMEOUT']
'300'
>>> 'AUTO' in puppetserver_config
False
parse_content(content)[source]

This method must be implemented by classes based on this class.