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 414
414
}
415
415
}
416
416
417
- if $manage_service_file {
417
+ if $manage_service_file and and $facts [ ' service_provider ' ] == ' systemd ' {
418
418
if $title != ' default' {
419
419
$real_service_ensure = $service_ensure == ' running'
420
420
$real_service_enable = $service_enable
453
453
),
454
454
}
455
455
} else {
456
- if $ulimit_managed {
456
+ if $ulimit_managed and $facts [ ' service_provider ' ] == ' systemd ' {
457
457
systemd::service_limits { "${service_name}.service" :
458
458
limits => {
459
459
' LimitNOFILE' => $ulimit ,
Original file line number Diff line number Diff line change 17
17
class redis::ulimit {
18
18
assert_private(' The redis::ulimit class is only to be called from the redis::config class' )
19
19
20
- if $redis::managed_by_cluster_manager {
20
+ if $redis::managed_by_cluster_manager and $facts [ ' kernel ' ] == ' Linux ' {
21
21
file { '/etc/security/limits.d/redis.conf' :
22
22
ensure => ' file' ,
23
23
owner => ' root' ,
You can’t perform that action at this time.
0 commit comments