jvm, environment, timesettings

Change JVM, Environment, Time settings

Tunning JVM for Puppet Server

I did the Puppet Enterprise installation on my local laptop which doesn't have a lot of ram (8G) total. So I make some tunning changes on the JVM for puppet server. The following change I did on my puppet server before I change the memory size of my Virtual Machine to 3G.

To decrease the Java heap size for pe-puppetserver:

  • In the console, click Nodes > Classification, and in the PE Infrastructure node group, select the PE Master node group.
  • Click Classes and scroll down to the puppet_enterprise::profile::master class.
  • Click the Parameter name drop-down list and select java_args. Replace the parameter value with the JSON string {"Xmx": "1024m", "Xms": "1024m"}. This decreases the heap size from the default of 2 GB to 1 GB.
  • In the command line on the puppet master, run puppet agent -t to start a Puppet run and apply the change.

Agent-specified environment

In my infrastructure I want to test my puppet code to different enviroments, like a testing environment.

puppet agent -t --environment=testing

So I have to change my Agent-specified environment

  • In the console, click Nodes > Classification, and in the Production environment node group, select the Agent-specified environment.
  • Click by Certname Node name and select the nodes you want to test in different enviroments.

In my infrastructure I added node puppetmaster and puppetclient.

Console Time settings

The console displays timestamps in UTC format (also known as Zulu time). If you prefer, you can change your console settings to display all timestamps in local time, with UTC time shown on hover.
Set to true to display timestamps in local time, with hover text showing UTC time or false (default) to show timestamps in UTC time.
You can change this in PE Orchestrator.

  • In the console, click Nodes > Classification, and in the PE Infrastructure node group, select the PE Orchestrator node group.
  • Click Classes and scroll down to the puppet_enterprise::profile::console.
  • Click the Parameter name drop-down list and select displaylocaltime . Replace the parameter value with the JSON string true. This wil change the timesettings in your Puppet Console.
  • In the command line on the puppet master, run puppet agent -t to start a Puppet run and apply the change.

These settings can also be changed in the PE configuration settings in pe.conf.