__systemd_unit: manpage clarifications

Clarify that this type only operates on units in /etc/systemd/system.
Also, when state=present, it is not always true that the type is
"installed, enabled and started"
This commit is contained in:
Adam Dej 2018-07-11 15:53:23 +02:00
parent 6c8014b407
commit 8d84834db6

View file

@ -9,9 +9,10 @@ cdist-type__systemd_unit - Install a systemd unit
DESCRIPTION DESCRIPTION
----------- -----------
This type can install, enable and start a systemd unit. This is particularly This type manages systemd units in ``/etc/systemd/system/``. It can install,
useful on systems which take advantage of systemd heavily (e.g., CoreOS). For enable and start a systemd unit. This is particularly useful on systems which
more information about systemd units, see SYSTEMD.UNIT(5). take advantage of systemd heavily (e.g., CoreOS). For more information about
systemd units, see SYSTEMD.UNIT(5).
REQUIRED PARAMETERS REQUIRED PARAMETERS
------------------- -------------------
@ -37,7 +38,7 @@ state
'present' or 'absent', defaults to 'present' where: 'present' or 'absent', defaults to 'present' where:
present present
the unit is installed, enabled and started the unit is installed
absent absent
the unit is stopped, disabled and uninstalled the unit is stopped, disabled and uninstalled