NetApp / terraform-provider-netapp-cloudmanager

Terraform provider to create NetAPP OCCM instances, CVO resources, volumes, snapshots, ... in Azure, AWS, GCP.
Mozilla Public License 2.0
17 stars 27 forks source link

Feature Request - ONTAP user management #141

Open rbenigno opened 2 years ago

rbenigno commented 2 years ago

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.

lonico commented 2 years ago

Are you using na_ontap_user with Ansible?

rbenigno commented 2 years ago

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([]) }}"
lonico commented 1 year ago

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