Skip to content

Commit

Permalink
Strict variables is in use on moddern puppets
Browse files Browse the repository at this point in the history
  • Loading branch information
vStone committed Mar 1, 2022
1 parent a42264c commit 447face
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions manifests/server/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,33 @@
#
class samba::server::params {
case $facts['os']['family'] {
'Redhat': { $service_name = 'smb' }
'Redhat': {
$service_name = 'smb'
$nmbd_name = undef
}
'Debian': {
case $facts['os']['name'] {
'Debian': {
case $facts['os']['release']['major'] {
'8' : { $service_name = 'smbd' }
default: { $service_name = 'samba' }
}
$nmbd_name = undef
}
'Ubuntu': {
$service_name = 'smbd'
$nmbd_name = 'nmbd'
}
default: { $service_name = 'samba' }
default: {
$service_name = 'samba'
$nmbd_name = undef
}
}
}
'Gentoo': { $service_name = 'samba' }
'Gentoo': {
$service_name = 'samba'
$nmbd_name = undef
}
'Archlinux': {
$service_name = 'smbd'
$nmbd_name = 'nmbd'
Expand Down

0 comments on commit 447face

Please sign in to comment.