#Cluster Setup via Ansible over BMC

1 messages · Page 1 of 1 (latest)

sturdy jetty
#

Good evening everyone,
Is it possible to perform the ONTAP Cluster SETUP via Ansible?
I have only configured the BMC IP addresses for new systems and would like to carry out the rest (cluster setup -> create,join) via Ansible. Is that possible?

Best regards

real mantle
#

the BMC has no API (yet... I have not given up the hope that the next models will support Redfish, but currently they don't)

small thistle
#

Hey @sturdy jetty! I've done this a couple of years ago, but as @real mantle already pointed out, there is currently no easy to consume API for it. The only way would be passing SSH commands and parsing the return. Here is an old example with python:
https://github.com/AdrianBronder/ontap-day0-setup
I could imagine, that this could be implemented puerly with Ansible modules as well, e.g. na_ontap_ssh_command has an option to interact with the service processor:
https://docs.ansible.com/ansible/latest/collections/netapp/ontap/na_ontap_ssh_command_module.html#ansible-collections-netapp-ontap-na-ontap-ssh-command-module
Have you tried this already?

sturdy jetty
#

Many thanks for the information. I will test the two variants next week 🙂

small thistle
drowsy fractal
#

I just gave up with something like this and I always run the cluster setup on the console of the first node (only need that first node; dont need to do it any other nodes or the HA Partner, even massive clusters), just to set the node management IP for the first node in the cluster, then cancel it (CTRL+C), login as admin (no password), and change the admin password to actually set one). Then I can hit the node management IP via Ansible and use the na_ontap_cluster module to run the cluster setup. You can also add more nodes to the cluster if you know at least one of the Cluster IPs on each node.