Skip to content

Commit

Permalink
Merge pull request #45 from roumano/guacd_configuration
Browse files Browse the repository at this point in the history
Add to possibility to configure guacd parameters
  • Loading branch information
pescobar authored Dec 14, 2023
2 parents 739c815 + 304e88f commit 104913d
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions plugins/modules/guacamole_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,23 @@
aliases: ['parentIdentifier']
type: str
guacd_hostname:
description:
- Hostname or ip of the guacd to connect
type: str
guacd_port:
description:
- Port to connect on guacd
type: int
guacd_encryption:
description:
- Connect with SSL / TLS or None (unencrypted)
type: str
choices:
- ssl
- ""
protocol:
description:
- Protocol to use for the new connection
Expand Down Expand Up @@ -395,12 +412,12 @@ def guacamole_populate_connection_payload(module_params):
"sftp-directory": module_params['sftp_default_upload_directory'],
},
"attributes": {
"guacd-encryption": "",
"guacd-encryption": module_params['guacd_encryption'],
"failover-only": "",
"weight": "",
"max-connections": module_params['max_connections'],
"guacd-hostname": "",
"guacd-port": "",
"guacd-hostname": module_params['guacd_hostname'],
"guacd-port": module_params['guacd_port'],
"max-connections-per-user": module_params['max_connections_per_user']
}
}
Expand Down Expand Up @@ -570,6 +587,9 @@ def main():
disable_copy=dict(type='bool', default=False),
disable_paste=dict(type='bool', default=False),
cursor=dict(type='str', required=False),
guacd_hostname=dict(type='str', required=False),
guacd_port=dict(type='int', required=False),
guacd_encryption=dict(type='str', required=False),
)

result = dict(changed=False, msg='', diff={},
Expand Down

0 comments on commit 104913d

Please sign in to comment.