Defined Type: systemd::unmask
- Defined in:
- modules/systemd/manifests/unmask.pp
Overview
systemd::unmask ===
Use 'systemctl unmask $title' to undo the effects of systemctl mask so that the given unit can be started again.
Example:
systemd::unmask { 'trafficserver-backend.service': }
9 10 11 12 13 14 15 16 17 18 |
# File 'modules/systemd/manifests/unmask.pp', line 9
define systemd::unmask (
Systemd::Servicename $unit = $title,
Boolean $refreshonly = true,
){
exec { "unmask_${unit}":
command => "/bin/systemctl unmask ${unit}",
onlyif => "/bin/readlink -f /etc/systemd/system/${unit} | grep -q /dev/null",
refreshonly => $refreshonly,
}
}
|