Skip to content

Commit

Permalink
fix subsystem option if use_augeas = true, fixes #376 (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
saz authored May 24, 2024
1 parent 3f6eff7 commit c2175e4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions manifests/server/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,15 @@

if $ssh::server::use_augeas {
$options.each |String $k, Hash $v| {
sshd_config { $k:
* => $v,
if $k.downcase == 'subsystem' {
$_v = $v.match(/(^(\w+)\s+(.*)$)/)
sshd_config_subsystem { $v[2]:
command => $v[3],
}
} else {
sshd_config { $k:
* => $v,
}
}
}
} else {
Expand Down

0 comments on commit c2175e4

Please sign in to comment.