terraform-provider-netapp-cloudmanager icon indicating copy to clipboard operation
terraform-provider-netapp-cloudmanager copied to clipboard

Feature Request - ONTAP user management

Open rbenigno opened this issue 3 years ago • 3 comments

Working with a customer that wants to use a dedicated Ansible service account for CVO in their DevOps pipeline . We stand up CVO with Terraform, but there is no clean way (that I can find) to create an ONTAP account.

The current workaround is to have a step where Ansible creates the ONTAP account, and the real Ansible playbooks run after that under the new account. Would be great we could create the account as part of the Terraform build instead.

Thanks.

rbenigno avatar Oct 27 '22 22:10 rbenigno

Are you using na_ontap_user with Ansible?

lonico avatar Oct 28 '22 04:10 lonico

Yes.

  - name: User Accounts
    na_ontap_user:
      <<: *login
      state: "{{ item.state | default('present') }}"
      vserver: "{{ item.vserver | default(cluster.ontap_info.cluster.name) }}"
      name: "{{ item.name }}"
      application_dicts: "{{ item.application_dicts }}"
      role_name: "{{ item.role_name }}"
      set_password: "{{ item.set_password }}"
    loop: "{{ users | default([]) }}"

rbenigno avatar Oct 28 '22 16:10 rbenigno

The CloudManager APIs do not provide a way to create a user account.

lonico avatar Jan 24 '23 21:01 lonico

Closing this issue as there is no API supported.

suhasbshekar avatar Jan 31 '25 19:01 suhasbshekar