Forge Home


Configure system (hostname, locale, timezone) using Systemd


6,367 latest version

5.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.0.1 (latest)
  • 1.0.0
  • 0.1.0
released Nov 25th 2016
This version is compatible with:
  • Puppet Enterprise 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >= 3.0.0
  • Archlinux, Gentoo

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'davispuh-systemd', '1.0.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add davispuh-systemd
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install davispuh-systemd --version 1.0.1

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.



davispuh/systemd — version 1.0.1 Nov 25th 2016


Table of Contents

  1. Overview
  2. Setup - The basics of getting started with systemd
  3. Requirements - Module requirements
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Unlicense - This module is Unlicensed
  8. Contributing - Guide for contributing to the module


This module aims to automate all systemd related functionality. Currently implemented is only configuration for hostname, locale, timezone.


What systemd affects

Systemd module makes sure that systemd is installed and allows configuring hostname, locale and timezone.


  • Puppet 3.5 or later
  • trusted_node_data = true set in puppet.conf


For just installing systemd, use include systemd

To configure hostname: include systemd::hostname

To configure locale: include systemd::locale

To set timezone: include systemd::timezone

All options can be specified with Hiera

systemd::hostname::hostname: somehost
systemd::locale::locale: en_US.utf8
systemd::locale::keymap: us
systemd::timezone::timezone: America/New_York
systemd::timezone::local_rtc: false
systemd::timezone::use_ntp: true


  • manifests/init.pp
  • manifests/params.pp
  • manifests/hostname.pp
  • manifests/locale.pp
  • manifests/timezone.pp


Currently have been tested only on Archlinux and Gentoo



All text, documentation, code and files in this repository are in public domain (including this text, README). It means you can copy, modify, distribute and include in your own work/code, even for commercial purposes, all without asking permission.

About Unlicense


Feel free to improve anything.

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Warning: By sending pull request to this repository you dedicate any and all copyright interest in pull request (code files and all other) to the public domain. (files will be in public domain even if pull request doesn't get merged)

Also before sending pull request you acknowledge that you own all copyrights or have authorization to dedicate them to public domain.

If you don't want to dedicate code to public domain or if you're not allowed to (eg. you don't own required copyrights) then DON'T send pull request.