-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Unauthenticated Endpoint Support #16
Comments
Hi @rvalle The api library used (https://github.com/exoscale/cs) in the modules does not allow to auth with username and password (AFAICS). However, the way I we do in the cloustack test container (to test the modules against the simulator api) is to use the internal API which allows unauthenticated api calls on localhost:8096. To get an idea see https://github.com/ansible/cloudstack-test-container/blob/master/run.sh |
@resmo my current workaround is to install cloudmonkey and do it with it, but since it is not packaged is a bit messy. I did not realize that cs has a CLI, that helps. Perhaps we could allow usage of the modules on the unauthenticated endpoint for edge use cases like this one? what do you think?
|
Yes, perhaps. I found it good enough for this special case to use dummy values for secret and key since as they are not validated by the internal API. |
OK, I see. I did not think of that. So, this use case was supported, after all. Document or we could allow a setting such as:
which simply disables the check for TOKEN, and defaults to true. something like:
If you want this I can submit a PR... |
@resmo any idea how to get that port working on the manager? I can find a reference in the documentation for manager HA. but in my install the port is not up. |
I can see here: apache/cloudstack#3504 that the port ships disabled with global configuration:
but I wonder if I can override its value without using the API |
Hi
I am trying to get a fully automated ACS deployment.
I use playbooks to install ACS and then I continue with these modules to configure ACS.
There is a missing link in the right in the middle.
I need an automated way to configure the credentials (API Token) for Ansible modules to work.
Is it possible to use username/password authentication in these Ansible Modules? CMK can handle either username/password or TOKEN auth.
That would allow to create the API token and then switch to TOKEN authentication afterwards.
The text was updated successfully, but these errors were encountered: