Merge pull request #319 from cloudevelops/master

Enabled undef for service where we dont want puppet control service
This commit is contained in:
James Fryman 2014-06-04 11:44:05 +02:00
Родитель 4bc07a43c8 48c0895423
Коммит 99df70b3dd
1 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -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,