File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 21
21
Ini_setting[$option ] {
22
22
* => $value ,
23
23
}
24
+ } elsif $value =~ Array {
25
+ Ini_setting[$option ] {
26
+ value => join($value , ' ' ),
27
+ }
24
28
} else {
25
29
Ini_setting[$option ] {
26
30
value => $value ,
Original file line number Diff line number Diff line change 246
246
logind_settings : {
247
247
'HandleSuspendKey' => 'ignore' ,
248
248
'KillUserProcesses' => 'no' ,
249
+ 'KillExcludeUsers' => [ 'a' , 'b' ] ,
249
250
'RemoveIPC' => {
250
251
'ensure' => 'absent' ,
251
252
} ,
260
261
ensure : 'running' ,
261
262
)
262
263
}
263
- it { is_expected . to have_ini_setting_resource_count ( 4 ) }
264
+ it { is_expected . to have_ini_setting_resource_count ( 5 ) }
264
265
it {
265
266
is_expected . to contain_ini_setting ( 'HandleSuspendKey' ) . with (
266
267
path : '/etc/systemd/logind.conf' ,
277
278
value : 'no' ,
278
279
)
279
280
}
281
+ it {
282
+ is_expected . to contain_ini_setting ( 'KillExcludeUsers' ) . with (
283
+ path : '/etc/systemd/logind.conf' ,
284
+ section : 'Login' ,
285
+ notify : 'Service[systemd-logind]' ,
286
+ value : 'a b' ,
287
+ )
288
+ }
280
289
it {
281
290
is_expected . to contain_ini_setting ( 'RemoveIPC' ) . with (
282
291
path : '/etc/systemd/logind.conf' ,
You can’t perform that action at this time.
0 commit comments