na_ontap_autosupport – NetApp ONTAP Autosupport¶
New in version 2.7.
Requirements¶
The below requirements are needed on the host that executes this module.
- A physical or virtual clustered Data ONTAP system. The modules support Data ONTAP 9.1 and onward
- Ansible 2.6
- Python2 netapp-lib (2017.10.30) or later. Install using ‘pip install netapp-lib’
- Python3 netapp-lib (2018.11.13) or later. Install using ‘pip install netapp-lib’
- To enable http on the cluster you must run the following commands ‘set -privilege advanced;’ ‘system services web modify -http-enabled true;’
Parameters¶
| Parameter | Choices/Defaults | Comments | 
|---|---|---|
| from_address 
                    -
                                                                 added in 2.8 | specify the e-mail address from which the node sends AutoSupport messages | |
| hostname 
                    string
                                             / required                     | The hostname or IP address of the ONTAP instance. | |
| hostname_in_subject 
                    boolean
                                                                 added in 2.8 | 
 | Specify whether the hostname of the node is included in the subject line of the AutoSupport message. | 
| http_port 
                    integer
                                                                 | Override the default port (80 or 443) with this port | |
| https 
                    boolean
                                                                 | 
 | Enable and disable https | 
| mail_hosts 
                    -
                                                                 | List of mail server(s) used to deliver AutoSupport messages via SMTP. Both host names and IP addresses may be used as valid input. | |
| node_name 
                    -
                                             / required                     | The name of the filer that owns the AutoSupport Configuration. | |
| noteto 
                    -
                                                                 | Specifies up to five recipients of short AutoSupport e-mail messages. | |
| ontapi 
                    integer
                                                                 | The ontap api version to use | |
| partner_addresses 
                    -
                                                                 added in 2.8 | Specifies up to five partner vendor recipients of full AutoSupport e-mail messages. | |
| password 
                    string
                                             / required                     | Password for the specified user. aliases: pass | |
| post_url 
                    -
                                                                 | The URL used to deliver AutoSupport messages via HTTP POST | |
| proxy_url 
                    -
                                                                 added in 2.8 | specify an HTTP or HTTPS proxy if the 'transport' parameter is set to HTTP or HTTPS and your organization uses a proxy. If authentication is required, use the format "username:password@host:port". | |
| state 
                    -
                                                                 | 
 | Specifies whether the AutoSupport daemon is present or absent. When this setting is absent, delivery of all AutoSupport messages is turned off. | 
| support 
                    boolean
                                                                 | 
 | Specifies whether AutoSupport notification to technical support is enabled. | 
| to_addresses 
                    -
                                                                 added in 2.8 | Specifies up to five recipients of full AutoSupport e-mail messages. | |
| transport 
                    -
                                                                 | 
 | The name of the transport protocol used to deliver AutoSupport messages | 
| use_rest 
                    string
                                                                 | 
 | REST API if supported by the target system for all the resources and attributes the module requires. Otherwise will revert to ZAPI. Always -- will always use the REST API Never -- will always use the ZAPI Auto -- will try to use the REST Api | 
| username 
                    string
                                             / required                     | This can be a Cluster-scoped or SVM-scoped account, depending on whether a Cluster-level or SVM-level API is required. For more information, please read the documentation https://mysupport.netapp.com/NOW/download/software/nmsdk/9.4/. aliases: user | |
| validate_certs 
                    boolean
                                                                 | 
 | If set to  no, the SSL certificates will not be validated.This should only set to  Falseused on personally controlled sites using self-signed certificates. | 
Examples¶
- name: Enable autosupport
  na_ontap_autosupport:
    hostname: "{{ hostname }}"
    username: "{{ username }}"
    password: "{{ password }}"
    state: present
    node_name: test
    transport: https
    noteto: abc@def.com,def@ghi.com
    mail_hosts: 1.2.3.4,5.6.7.8
    support: False
    post_url: url/1.0/post
- name: Modify autosupport proxy_url with password
  na_ontap_autosupport:
    hostname: "{{ hostname }}"
    username: "{{ username }}"
    password: "{{ password }}"
    state: present
    node_name: test
    transport: https
    proxy_url: username:password@host.com:8000
- name: Modify autosupport proxy_url without password
  na_ontap_autosupport:
    hostname: "{{ hostname }}"
    username: "{{ username }}"
    password: "{{ password }}"
    state: present
    node_name: test
    transport: https
    proxy_url: username@host.com:8000
- name: Disable autosupport
  na_ontap_autosupport:
    hostname: "{{ hostname }}"
    username: "{{ username }}"
    password: "{{ password }}"
    state: absent
    node_name: test
Status¶
- This module is not guaranteed to have a backwards compatible interface. [preview]
- This module is maintained by an Ansible Partner. [certified]
Authors¶
- NetApp Ansible Team (@carchi8py) <ng-ansibleteam@netapp.com>
Hint
If you notice any issues in this documentation, you can edit this document to improve it.
