Debian Codegraph @

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

raw
1 na_ontap_san_create
2 =========
3
4 Create one or more luns for iSCSI or FCP
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 igroups:
20 - { name: igroup1, vserver: san_vserver, group_type: iscsi, ostype: linux, initiator: "<iqn or wwpn>" } # the quotes for iqn/wwpn are necessary because of the : in them.
21 luns:
22 - { name: lun1, vol_name: lun_vol, aggr: aggr1, vserver: san_vserver, size: 10, ostype: linux, space_reserve: false, igroup: igroup1 }
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_san_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 igroups:
53 - { name: igroup1, vserver: san_vserver, group_type: iscsi, ostype: linux, initiator: "iqn.1994-05.com.redhat:2750d14d868d" }
54
55 luns:
56 - { name: lun1, vol_name: lun_vol, vserver: san_vserver, size: 10, ostype: linux, space_reserve: false, igroup: igroup1 }
57 ```
58
59 License
60 -------
61
62 GNU v3
63
64 Author Information
65 ------------------
66 NetApp
67 http://www.netapp.io