From 48c089542357151feba7733e0e854fd37983dee2 Mon Sep 17 00:00:00 2001 From: Zdenek Janda Date: Sun, 25 May 2014 12:03:53 +0200 Subject: [PATCH] Enabled undef for service where we dont want puppet control service --- manifests/service.pp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/manifests/service.pp b/manifests/service.pp index 2818532..2fa361c 100644 --- a/manifests/service.pp +++ b/manifests/service.pp @@ -23,11 +23,18 @@ class nginx::service( running => true, absent => false, stopped => false, + 'undef' => undef, default => true, } + if $service_ensure == 'undef' { + $service_ensure_real = undef + } else { + $service_ensure_real = $service_ensure + } + service { 'nginx': - ensure => $service_ensure, + ensure => $service_ensure_real, enable => $service_enable, hasstatus => true, hasrestart => true,