The part that I do not understand is how to generate an authorization token. I have, after some research, been made aware of the python script - storagegrid-ssoauth-azure.py script that can be used to obtain the authentication token - but I need help with what modules or utilities need installed to run this script in ansible.
Any examples of how this has been written in ansible would also greatly help.
#Need help with automating creation of storage grid tenants and buckets with Ansible.
1 messages · Page 1 of 1 (latest)
The repo of the storagegrid collection shows an example how to get the token via a REST request
https://github.com/ansible-collections/netapp.storagegrid?tab=readme-ov-file#usage
Thanks @ornate sequoia . Does it work when SSO is enabled ? I am told that this only works for local users.
I don't know
Hi @ornate sequoia hope ur doing good. In that collection , I don't find any subset to use under netapp.storagegrid.na_sg_grid_info so I could fetch out settings about autosupport. basically, on Storagegrid I need to check through ansible playbook if autosupport is communicating through HTTPS. kindly suggest if you have any clue.
Hi @dense steeple can you help me if you have been able to get through creating an ansible playbook for getting an authentication token for StorageGrid
The /private/autosupport API can get your the ASUP configuration.
You can view an example of it in the Swagger UI at https://<GRIDMGMT-FQDN>/grid/apidocs.html?type=private#/asup/get_private_autosupport