Debian Codegraph @

ansible_collections/netapp/ontap/roles/na_ontap_nas_create/README.md

raw
1 na_ontap_nas_create
2 =========
3
4 Create one or more NFS or CIFS exports
5
6 Requirements
7 ------------
8
9 Since this uses the NetApp ONTAP modules it will require the python library netapp-lib as well as the Ansible 2.8 release.
10
11 Role Variables
12 --------------
13 ```
14 cluster: <short ONTAP name of cluster>
15 netapp_hostname: <ONTAP mgmt ip or fqdn>
16 netapp_username: <ONTAP admin account>
17 netapp_password: <ONTAP admin account password>
18
19 nas:
20 - { name: nfs_share, protocol: nfs, vserver: nfs_vserver, client: 172.32.0.201, ro: sys, rw: sys, su: sys, aggr: aggr1, size: 10, share: share_name }
21 # If you are creating an NFS export you will omit the share: section.
22 # If you are creating a CIFS share you may omit the ro, rw, su, client sections.
23
24 ```
25 Dependencies
26 ------------
27
28 The tasks in this role are dependent on information from the na_ontap_gather_facts module.
29 The task for na_ontap_gather_facts can not be excluded.
30
31 Example Playbook
32 ----------------
33 ```
34 ---
35 - hosts: localhost
36 collections:
37 - netapp.ontap
38 vars_files:
39 - globals.yml
40 roles:
41 - na_ontap_nas_create
42 ```
43
44 I use a globals file to hold my variables.
45 ```
46 cluster_name: cluster
47
48 netapp_hostname: 172.32.0.182
49 netapp_username: admin
50 netapp_password: netapp123
51
52 nas:
53 - { name: nfs_share, protocol: nfs, vserver: nfs_vserver, client: 172.32.0.201, ro: sys, rw: sys, su: sys, aggr: aggr1, size: 10 }
54 - { name: cifs_share, protocol: cifs, vserver: cifs_vserver, aggr: aggr1, size: 10, share: cifs_share_1 }
55 ```
56
57 License
58 -------
59
60 GNU v3
61
62 Author Information
63 ------------------
64 NetApp
65 http://www.netapp.io