-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to mappe individual LUNs to ACLs
WARNING: this is breaking change as the format of 'initiators' has changed. Motivation for this change was OndrejHome/ansible.targetcli-modules#5 To be able to use this new format the relevant OndrejHome.targetcli-modules are needed. Known issues: the cluster configuration use case is broken at this time.
- Loading branch information
1 parent
ce034b4
commit 6754fcb
Showing
3 changed files
with
145 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
- name: map LUNs to ACLs | ||
targetcli_iscsi_acl_mapped_lun: | ||
wwn: "{{ wwn_list.wwn }}" | ||
initiator_wwn: "{{ item.0.name }}" | ||
backstore_type: "{{ item.1.type }}" | ||
backstore_name: "{{ item.1.name }}" | ||
mapped_lun_id: "{{ item.1.lun_id }}" | ||
with_subelements: | ||
- "{{ wwn_list.initiators }}" | ||
- mapped_luns | ||
notify: | ||
- save targetcli configuration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters