ansible-collections / netapp.ontap

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

Manage objects tags #148

Closed Gianlu closed 1 year ago

Gianlu commented 1 year ago

Summary

Hello, it would be useful add the tag management to the collection. According to this link, svm, aggregates and volumes support tagging.

Have you planned this feature?

Thanks for your work!!

Component Name

na_ontap_svm, na_ontap_aggregate, na_ontap_volume

Additional Information

- name: Create FlexVol
  netapp.ontap.na_ontap_volume:
    state: present
    name: ansibleVolume12
    is_infinite: False
    aggregate_name: ansible_aggr
    size: 100
    size_unit: mb
    user_id: 1001
    group_id: 2002
    space_guarantee: none
    tiering_policy: auto
    export_policy: default
    percent_snapshot_space: 60
    qos_policy_group: max_performance_gold
    vserver: ansibleVServer
    wait_for_completion: True
    space_slo: none
    nvfail_enabled: False
    comment: ansible created volume
    hostname: "{{ netapp_hostname }}"
    username: "{{ netapp_username }}"
    password: "{{ netapp_password }}"
    tags:
       label1: value1
       label2: value2
       label3: value3

Or

-  name: Manage Tags
   netapp.ontap.na_objects_tags:
   state: present
      object: "object-guid"
      hostname: "{{ netapp_hostname }}"
   username: "{{ netapp_username }}"
   password: "{{ netapp_password }}"
   tags:
       label1: value1
       label2: value2
       label3: value3
carchi8py commented 1 year ago

This is being worked on in Devops-6014 internally.

Gianlu commented 1 year ago

Thank you. I'll wait for it

mohanrajb9 commented 1 year ago

new options tags added in na_ontap_aggregate, na_ontap_volume module, requires REST and ONTAP 9.13.1 or later version. this option is missing in volume API.

carchi8py commented 1 year ago

This was fixed as part of 22.6.0