-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a Connection to a Pre-Existing User #13
Comments
@bamhm182 have you considered importing the users into your terraform configuration? |
@techBeck03 , the problem with that is that I am trying to use Coder to manage the capability to spin an arbitrary number of VMs up at the same time with the ability to add or remove more as I see fit. With that model, no one terraform config can be responsible for the user. |
I said I was using it with Coder, but honestly, this applies to anything that uses Guacamole for more than one set of VMs, which I feel like would be most cases. The only time this feels like it wouldn't apply is when you would be also deploying the entire guacamole stack alongside the VMs. |
Sorry I have gone silent on this. I finally found time to get back into it this morning and have been reviewing your guacamole-api-client and terraform-provider-guacamole projects, as well as exploring the API calls the default guacamole client itself makes, and I think I have a solid way forward. It seems like User Groups have both the ability to define connections they permit access to, as well as the users they control. Your api client has this functionality built already, but it is not utilized within the terraform provider. I intend to add a EDIT: Digging further in, I found artifacts of a |
Hello, I am attempting to use terracorm-provider-guacamole to create a new connection which is automatically available to a Pre-Existing user. The problem is, it seems all currently available paths lead to terraform wanting to fully create and later fully destroy a user, and there is no path to modify. I understand that this is generally how terraform works, but it kind of kills the utility of this provider for me if I can't use it to assign connections to users.
Terraform Configuration Files
This is the relevant parts of my terraform config, snipped for brevity and sanitized.
Expected Behavior
There should be some way to add a connection to a Pre-Existing user.
Actual Behavior
Unless I'm missing something (very possible), there is no way to add a connection to a Pre-Existing user.
Steps to Reproduce
If it would be an acceptable PR, I would gladly spend the time to figure out how to add an
assigned_users
attribute to the various connection types, and implement code that adds the connection to a list of usernames, and deletes it when the connection should be deleted (though I believe this last step would be automatic and perhaps better left undone).Thank you for your hard work on this project, techBeck03!
The text was updated successfully, but these errors were encountered: