Add parameter RSAMinSize to Match blocks

This is a follow-on to https://github.com/willshersystems/ansible-sshd/pull/194
The previous PR added RSAMinSize as an option for the "body" of the
config file, but not for Match blocks.
This commit is contained in:
Rich Megginson 2022-07-28 15:40:10 -06:00
parent 9f3eb191ea
commit 1bc8395ea8
4 changed files with 5 additions and 2 deletions

View file

@ -360,9 +360,9 @@ Template Generation
The [`sshd_config.j2`](templates/sshd_config.j2) and
[`sshd_config_snippet.j2`](templates/sshd_config_snippet.j2) templates are
programatically generated by the scripts in meta. New options should be added
to the `options_body` or `options_match`.
to the `options_body` and/or `options_match`.
To regenerate the template, from within the `meta/` directory run:
To regenerate the templates, from within the `meta/` directory run:
`./make_option_lists`
License

View file

@ -49,6 +49,7 @@ RekeyLimit
RevokedKeys
RhostsRSAAuthentication
RSAAuthentication
RSAMinSize
SetEnv
StreamLocalBindMask
StreamLocalBindUnlink

View file

@ -90,6 +90,7 @@ Match {{ match["Condition"] }}
{{ render_option("RevokedKeys",match["RevokedKeys"],true) -}}
{{ render_option("RhostsRSAAuthentication",match["RhostsRSAAuthentication"],true) -}}
{{ render_option("RSAAuthentication",match["RSAAuthentication"],true) -}}
{{ render_option("RSAMinSize",match["RSAMinSize"],true) -}}
{{ render_option("SetEnv",match["SetEnv"],true) -}}
{{ render_option("StreamLocalBindMask",match["StreamLocalBindMask"],true) -}}
{{ render_option("StreamLocalBindUnlink",match["StreamLocalBindUnlink"],true) -}}

View file

@ -89,6 +89,7 @@ Match {{ match["Condition"] }}
{{ render_option("RevokedKeys",match["RevokedKeys"],true) -}}
{{ render_option("RhostsRSAAuthentication",match["RhostsRSAAuthentication"],true) -}}
{{ render_option("RSAAuthentication",match["RSAAuthentication"],true) -}}
{{ render_option("RSAMinSize",match["RSAMinSize"],true) -}}
{{ render_option("SetEnv",match["SetEnv"],true) -}}
{{ render_option("StreamLocalBindMask",match["StreamLocalBindMask"],true) -}}
{{ render_option("StreamLocalBindUnlink",match["StreamLocalBindUnlink"],true) -}}