Skip to content
Snippets Groups Projects
Commit a6807aed authored by Thomas Bellman's avatar Thomas Bellman
Browse files

New definition for managing systemd unit files.

This adds a new definition, systemd::unit, for managing unit files
in /etc/systemd/system.  The content of the unit file can be given
as a hash of hashes (like in the systemd::unit_options definition),
as a string, or as a path or puppet: URL to a file to copy.

Since we use the same ERB template file for formatting the hash of
hashes into an ini-style file in both systemd::unit_options and
systemd::unit, we have renamed the template file to "unitfile.erb",
to be more neutral.  The comment at the end mentioning from where
the file is managed, now takes the Puppet definition as a parameter,
set by the definition.
parent 955de344
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment