ansible-collections / netapp.ontap

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

Add support for S3 services in na_ontap_svm module #225

Open Sneedes opened 1 month ago

Sneedes commented 1 month ago

Summary

Trying to create/manage an ONTAP vServer that ONLY has NFS services configured/allowed. The services parameter in na_ontap_svm module doesn't support S3. Would like to be able to disallow S3 service during SVM creation.

Expecting to be able to include parameters to services such as:

      s3:
        allowed: false

Currently, this forces me to manually remove S3 support from the SVM by other means. ::> vserver remove-protocols -vserver vserver1 -protocols s3

Noting that in the code...seem to be aware of this with a #TODO comment.
I didn't seem to find a corresponding open issue in GitHub.

https://github.com/ansible-collections/netapp.ontap/blob/67a7e09bbc49b0fb80d9e7bf8fbbd0e085a2946f/plugins/modules/na_ontap_svm.py#L382

Component Name

na_ontap_svm

Additional Information

- name: Create NFS vServer
  netapp.ontap.na_ontap_svm:
    subtype: default
    language: C.UTF-8
    name: vserver1
    services:
      cifs:
        allowed: false
      fcp:
        allowed: false
      iscsi:
        allowed: false
      ndmp:
        allowed: false
      nfs:
        allowed: true
      nvme:
        allowed: false

The services module doesn't support S3. Expecting to be able to include parameters to services such as:

      s3:
        allowed: false
csahu9 commented 1 month ago

@Sneedes we've story 3438 open for this enhancement.