1
0
Fork 0

Added iSCSI configuration for rift

This commit is contained in:
Jakub Filo 2019-11-06 15:20:55 +00:00
parent af34c97ad4
commit 4f574336b7
3 changed files with 34 additions and 0 deletions

View File

@ -4,3 +4,4 @@
- common
- crypto
- libvirthost
- iscsitarget

View File

@ -0,0 +1,6 @@
<target iqn.2019-11.plantroon.com:lun1>
backing-store /dev/haze/forge
incominguser rift-in raij8IevMoh8Uiha
outgoinguser haze-out Shahpie5iuNg3oor
</target>

View File

@ -0,0 +1,27 @@
---
- name: install packages
apt:
state: latest
pkg:
- tgt
install_recommends: no
force_apt_get: yes
become: yes
- name: copy config files, scripts and services
copy:
src: "{{ item }}"
dest: "/{{ item }}"
force: yes
mode: preserve
become: yes
with_items:
- etc/tgt/conf.d/forge_iscsi.conf
- name: enable and restart service
systemd:
name: tgt
state: restarted
enabled: yes
become: yes