File tree 2 files changed +9
-7
lines changed
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 483
483
}
484
484
} else {
485
485
if $ulimit_managed {
486
- systemd::service_limits { "${service_name}.service" :
487
- limits => {
486
+ systemd::manage_dropin { "${service_name}-90-limits.conf" :
487
+ ensure => present ,
488
+ unit => " ${service_name} .service" ,
489
+ service_entry => {
488
490
' LimitNOFILE' => $ulimit ,
489
491
},
490
- restart_service => false ,
492
+ notify_service => false ,
491
493
}
492
494
}
493
495
}
Original file line number Diff line number Diff line change @@ -109,10 +109,10 @@ class { 'redis':
109
109
is_expected . to contain_file ( "/etc/systemd/system/#{ service_name } .service.d/limit.conf" ) .
110
110
with_ensure ( 'absent' )
111
111
112
- is_expected . to contain_systemd__service_limits ( "#{ service_name } .service " ) .
113
- with_limits ( { 'LimitNOFILE' => 7777 } ) .
114
- with_restart_service ( false ) .
115
- with_ensure ( 'present' )
112
+ is_expected . to contain_systemd__manage_dropin ( "#{ service_name } -90-limits.conf " ) .
113
+ with_service_entry ( { 'LimitNOFILE' => 7777 } ) .
114
+ with_ensure ( 'present' ) .
115
+ with_unit ( " #{ service_name } .service" )
116
116
end
117
117
end
118
118
You can’t perform that action at this time.
0 commit comments