diff options
-rw-r--r-- | manifests/service/enabled.pp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/manifests/service/enabled.pp b/manifests/service/enabled.pp index 3808585..f3ffc64 100644 --- a/manifests/service/enabled.pp +++ b/manifests/service/enabled.pp @@ -2,7 +2,10 @@ define runit::service::enabled( $ensure = present, $timeout ) { # enabling the service by creating a symlink in /etc/service file { "/etc/service/${name}": - target => "/etc/sv/${name}", + target => $ensure ? { + present => "/etc/sv/${name}", + default => undef, + }, ensure => $ensure ? { present => link, default => absent, |