ansible-collections / netapp.ontap

Ansible collection to support NetApp ONTAP configuration.
https://galaxy.ansible.com/netapp/ontap
GNU General Public License v3.0
51 stars 34 forks source link

Allow both username / password and certificate based authentication fields #150

Open jf229 opened 1 year ago

jf229 commented 1 year ago

Summary

We have converted most of our playbooks to use client cert based auth and have scheduled them in tower where a single client certificate exists. When ever we want to run the playbooks manually for testing or devlopment outside of tower we want the ability to easily switch to username/password.

I would like to propose allow both username/password as well as client certificate cert and key path authentication fields to netapp.ontap modules. If one of the fields is empty, then default to using the other. If both basic and client cert auth fields exists and are correctly populated default to using client cert based authentication.

Component Name

netapp.ontap

Additional Information

 Allow the following auth fields / vars

  login: &login
    hostname: "{{ inventory_hostname }}.{{ dnsdomain }}"
    username: "{{ netapp_username }}"
    password: "{{ netapp_password }}"
    cert_filepath: "{{ cert_tower_path }}"
    key_filepath: "{{ key_tower_path }}"
    https: true
    validate_certs: "{{ validate_certs }}"
carchi8py commented 1 year ago

Were looking in to how complicated this will be to implement and will get back to you

suhasbshekar commented 2 months ago

DEVOPS-6836