-
Notifications
You must be signed in to change notification settings - Fork 6
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
usernames and passwords in list? #79
Comments
Hey @bjin01 Users can configure the same user and passwords on the peripheral server using the uyuni configuration salt formula [1] [2]. With this salt formula, one can configure organizations, users (and permissions), system groups, and activation keys. There are different login methods available. If the same user and password are defined in all peripheral servers then one can use If different user/password combinations are needed for each server, then the manual login should be used. At the moment we do not support load system list and login information from a yaml file. It can be added in the future in case it's requested for some use case but is not currently in our plans. [1] https://documentation.suse.com/external-tree/en-us/suma/4.1/suse-manager/salt/config-modules.html |
Thanks rjmateus for quick response.
Better: If I think in golangit would be a struct something like this (thinking loud): var PeriSumas struct{ var allsumalist []PeriSumas |
Hey Bo, The alternative you are proposing makes also sense and can be an alternative implementation. This feature is not in technical preview anymore, so any change to the API definition could be harder to implement. |
You will notice that our API is designed in a way that mostly each method's output could be used as it is, as input for further methods. We mostly follow this method chaining approach. In your particular example, we could have come up with what you have suggested but that's not the case, and as Ricardo suggested it might now be hard to change it considering that it is not a tech preview anymore. |
Thanks for the explain. Notes: Now the list serverIDs holds multiple peripheral SUMAs. In my python script I have to loop over this list take each single serverid find the name of the serverid, compare it with user given suma server name and compose the lists for username(s) and password(s). This is ok but really not "user friendly". Hope the complexity is clearly explained. |
What are you ultimately trying to achieve? |
|
This sounds to me like a valid objection. Rephrasing: we assume that there's different credentials for each Peripheral Server. Users know the (FQDN, username, password) tripled for each Server and they have no problem in creating the three arrays, in order, of all FQDNs, usernames and passwords. But now they need an array of the Server IDs, and they need it in the same order of the FQDNs, usernames and passwords they already have (this is a requirement for We give them @admd, @bjin01: How about a new variant of |
This would be brilliant from my point of view (user point). Thanks. |
The yaml file for people to enter multi peripheral suma info looks so:
|
And it would great if the
|
Hi,
While writting python script to login to peripheral suma I don't understand why username(s) and password(s) need to be in list.
I understand that if unicast we need to provide login credentials for each peripheral suma but how are the login(s) mapped to the peripheral suma?
I mean this line in sample python script.
usernames = ["admin" for s in serverIDs]
I created a "advanced login" python script which parses a yaml config file to loop over pre-defined suma servers, but I'm using multicast but I presumed each peri suma has different login and therefore I let user config it in yaml file.
https://github.com/bjin01/patchsystems/tree/master/sumahub
My question is, do you also plan to allow a config file to predefine multiple logins for peripheral sumas? If yes, I assume you might make the code into hub in golang instead of as I did in python, correct?
The text was updated successfully, but these errors were encountered: