#Automatic Firmware Updates - CLI / API / Ansible

1 messages · Page 1 of 1 (latest)

unique kelp
#

I am searching for a way to configure the automatic firmware updates across our fleet that does not involve me logging into each cluster and doing it by hand in the GUI.
Is there a CLI command or API implementation that I am missing or is it GUI online for now?

stark terrace
#

You can cover this task with some ansible magic.

round ruin
#

It seems like these only show up if you have a vulnerability that requires a firmware update. Is there any way to get the code to show up when it's not needed? I want to be able to stage and test the code before I actually NEEDED it.

stark terrace
round ruin
#

The scripts you download from ActiveIQ do a lot more than what is show in those examples though.
We had a vulnerability for our BMCs, so I was able to download the SP one, and there is a lot in there (and, it's failing in our environment, but I haven't had a chance to figure out why though. I think SSH might be getting blocked from the server I'm running from).

stark terrace
#

Does the authentication user have sufficient rights? What error message does Ansible run return? And yes there is more magic in the downloadable script from the aiq page than in the example.

#

Useally ssh is not used for the ansible run. Does any previse Ansible runs worked as expected before?

unique kelp
round ruin
#

I don't see anything in the Ansible modules, but in the API, there is /support/auto-update/configurations
Maybe that will give you what you want?

knotty creek
#

just as an fyi, the netapp ontap and storagegrid modules do not use SSH for access. Hosts is set to 'localhost' for the inventory and REST API calls are actually made against hte targets

#

if I remember in my previous life at NetApp I tried to solve this, but the issue was that the firmware updates require netapp.com authentication and thus couldn't be directly linked, so a fully automated format couldn't be setup up.

obsidian bay
#

The issue, iirc, is logging in and having to accept the license conditions before downloading, so full automatic is a bit of a challenge atm.

unique kelp
#

for reference: I am talking about these GUI buttons

#

seems to be that you can turn on auto update like @knotty creek stated above:
curl -X PATCH "https://<CLUSTER>/api/support/auto-update" -H "accept: application/json" -H "authorization: Basic <Redacted>" -H "Content-Type: application/json" -d "{ "enabled": true}"

would love to see this as an Ansible module