Skip to content

Commit

Permalink
add debian9 systemd service name
Browse files Browse the repository at this point in the history
  • Loading branch information
cy4n committed Jan 15, 2018
1 parent 1020f7c commit 90fd862
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions manifests/server/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
'Debian': {
case $::operatingsystem {
'Debian': {
case $::operatingsystemmajrelease {
'8' : { $service_name = 'smbd' }
default: { $service_name = 'samba' }
if (versioncmp($::operatingsystemmajrelease, '8') >= 0) {
$service_name = 'smbd'
} else {
$service_name = 'samba'
}
}
'Ubuntu': {
Expand Down

0 comments on commit 90fd862

Please sign in to comment.