How to update values dynamically for the individual match sections within sshd config file using puppet
问题 i am able to update the value to the sections "User foo" and "Host *.example.net" by passing the index. If i pass index 1 or 2 the respective value is getting updated. my code: $sections = ['Host *.example.net', 'User foo'] $sections.each |String $section| { sshd_config_match { "${section}": ensure => present, } } $settings = [['User foo', 'X11Forwarding yes', 'banner none'],['Host *.example.net', 'X11Forwarding no', 'banner none']] $settings.each |Array $setting| { $setting_array = split(