File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 414414 }
415415 }
416416
417- if $manage_service_file {
417+ if $manage_service_file and $facts [ ' kernel ' ] == ' Linux ' {
418418 if $title != ' default' {
419419 $real_service_ensure = $service_ensure == ' running'
420420 $real_service_enable = $service_enable
453453 ),
454454 }
455455 } else {
456- if $ulimit_managed {
456+ if $ulimit_managed and $facts [ ' kernel ' ] == ' Linux ' {
457457 systemd::service_limits { "${service_name}.service" :
458458 limits => {
459459 ' LimitNOFILE' => $ulimit ,
Original file line number Diff line number Diff line change 1717class redis::ulimit {
1818 assert_private(' The redis::ulimit class is only to be called from the redis::config class' )
1919
20- if $redis::managed_by_cluster_manager {
20+ if $redis::managed_by_cluster_manager and $facts [ ' kernel ' ] == ' Linux ' {
2121 file { '/etc/security/limits.d/redis.conf' :
2222 ensure => ' file' ,
2323 owner => ' root' ,
You can’t perform that action at this time.
0 commit comments