Skip to content

Commit

Permalink
Add configuration option for RDP resize method
Browse files Browse the repository at this point in the history
  • Loading branch information
wfdewith committed May 23, 2024
1 parent aee7b77 commit 4d8a28b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,11 @@ OPTIONS (= is mandatory):
[Default: (null)]
type: bool
- rdp_resize_method
Resize method to use when the client display changes
(Choices: display-update, reconnect)[Default: (null)]
type: str
- rdp_security
The security mode to use for the RDP connection
(Choices: any, nla, nla-ext, tls, rdp)[Default: (null)]
Expand Down
11 changes: 10 additions & 1 deletion plugins/modules/guacamole_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,13 @@
- Ignore rdp server certs
type: bool
rdp_resize_method:
description:
- Resize method to use when the client display changes
choices:
- display-update
- reconnect
rdp_security:
description:
- The security mode to use for the RDP connection
Expand Down Expand Up @@ -455,7 +462,8 @@ def guacamole_populate_connection_payload(module_params):
"security",
"server_layout",
"width",
"height"
"height",
"resize_method"
)
guacamole_add_parameter(payload, module_params, parameters, "rdp")
if module_params.get('rdp_ignore_server_certs'):
Expand Down Expand Up @@ -542,6 +550,7 @@ def main():
rdp_drive_path=dict(type='str'),
rdp_enable_full_window_drag=dict(type='bool', default=True),
rdp_ignore_server_certs=dict(type='bool', required=False),
rdp_resize_method=dict(type='str', choices=['display-update', 'reconnect'], required=False),
rdp_security=dict(type='str', choices=['any', 'nla', 'nla-ext', 'tls', 'rdp'], required=False),
rdp_server_layout=dict(
type='str',
Expand Down

0 comments on commit 4d8a28b

Please sign in to comment.