File tree Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change 407
407
section => ' main' ,
408
408
}
409
409
}
410
- ini_setting {'puppetagentconfigtimeout' :
411
- setting => ' configtimeout' ,
412
- value => $configtimeout ,
413
- }
414
- if $stringify_facts != undef {
410
+ if versioncmp($::puppetversion , " 4.0.0" ) < 0 {
411
+ ini_setting {'puppetagentconfigtimeout' :
412
+ setting => ' configtimeout' ,
413
+ value => $configtimeout ,
414
+ }
415
+ if $stringify_facts != undef {
416
+ ini_setting {'puppetagentstringifyfacts' :
417
+ setting => ' stringify_facts' ,
418
+ value => $stringify_facts ,
419
+ }
420
+ }
421
+ } else {
422
+ ini_setting {'puppetagentconfigtimeout' :
423
+ setting => ' configtimeout' ,
424
+ ensure => absent ,
425
+ }
415
426
ini_setting {'puppetagentstringifyfacts' :
416
427
setting => ' stringify_facts' ,
417
- value => $stringify_facts ,
428
+ ensure => absent ,
418
429
}
419
430
}
420
431
if $verbose != undef {
You can’t perform that action at this time.
0 commit comments