Add a separate interface address for tgtd

Closes-Bug: #2031237
Change-Id: I7a4eaeab0c106ebdcb4d4cf9825c53dd8ad62dbf
This commit is contained in:
Rafal Lewandowski
2023-10-05 13:27:28 +02:00
parent 13ba75cccf
commit ec11c31253
4 changed files with 7 additions and 2 deletions

View File

@@ -19,6 +19,7 @@ iscsi_services:
volumes: "{{ tgtd_default_volumes + tgtd_extra_volumes }}" volumes: "{{ tgtd_default_volumes + tgtd_extra_volumes }}"
dimensions: "{{ tgtd_dimensions }}" dimensions: "{{ tgtd_dimensions }}"
tgtd_interface_address: "{{ api_interface_address }}"
#################### ####################
# Docker # Docker

View File

@@ -16,7 +16,7 @@
- name: Checking free port for iscsi - name: Checking free port for iscsi
wait_for: wait_for:
host: "{{ api_interface_address }}" host: "{{ tgtd_interface_address }}"
port: "{{ iscsi_port }}" port: "{{ iscsi_port }}"
connect_timeout: 1 connect_timeout: 1
timeout: 1 timeout: 1

View File

@@ -1,4 +1,4 @@
{ {
"command": "tgtd -d 1 -f --iscsi portal={{ api_interface_address | put_address_in_context('url') }}:{{ iscsi_port }}", "command": "tgtd -d 1 -f --iscsi portal={{ tgtd_interface_address | put_address_in_context('url') }}:{{ iscsi_port }}",
"config_files": [] "config_files": []
} }

View File

@@ -0,0 +1,4 @@
---
fixes:
- |
Added ability to define address for a separate tgtd network interface.