Puppet Enterprise (PE) uses Coordinated Universal Time (UTC) as the default time zone for reports. You can change the default time zone to your own time zone.
Version and installation information
PE version: All supported versions
OS: Unix
Installation type: Any
Solution
You can change the time zone for reports displayed in either the console or Hiera.
In the console:
-
Click Node groups and click the
+
next to PE Infrastructure group. Select the PE Console group, and then click the Classes tab. -
Under the class
puppet_enterprise::profile::console
, select the parameterdisplay_local_time
and in Value entertrue
. -
Click Add to node group and then click Commit 1 change.
-
Complete the change by running Puppet on the primary server. You can do that in the command line by running
puppet agent -t
or by following steps in our documentation to run Puppet in the console.
In Hiera:
Note: These steps assume you’re using the default location for common.yaml
. If you’re not, you need to modify these instructions.
-
On the primary server, edit the file
/etc/puppetlabs/code/environments/production/data/common.yaml
to addpuppet_enterprise::profile::console::display_local_time: true
to the end of the file. -
Complete the change by running Puppet. On the console node (the primary server), you can either run
puppet agent -t
in the command line or run Puppet on the node in the console.
How can we improve this article?
2 comments
Hi Martin, looks like you're working with Nicky on something, if you have any questions on this or find any errors in the article, please let him know.
Please sign in to leave a comment.
Related articles