From 9db11c33015175cc0d5f867816a54e5449df6405 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 30 Dec 2017 14:11:12 -0200 Subject: Better way to specify service name for debian --- manifests/server/params.pp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'manifests/server') diff --git a/manifests/server/params.pp b/manifests/server/params.pp index 6dad5ce..77101d6 100644 --- a/manifests/server/params.pp +++ b/manifests/server/params.pp @@ -6,12 +6,10 @@ class samba::server::params { 'Debian': { case $::operatingsystem { 'Debian': { - $service_name = 'smbd' - $nmbd_name = 'nmbd' - #case $::operatingsystemmajrelease { - # '8' : { $service_name = 'smbd' } - # default: { $service_name = 'samba' } - #} + case $::operatingsystemmajrelease { + '7' : { $service_name = 'samba' } + default: { $service_name = 'smbd' } + } } 'Ubuntu': { $service_name = 'smbd' -- cgit v1.2.3