Skip to content

Commit

Permalink
fix subsystem option if use_augeas = true, fixes #376
Browse files Browse the repository at this point in the history
  • Loading branch information
saz committed May 23, 2024
1 parent 3f6eff7 commit 465a67f
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 465a67f

Please sign in to comment.