diff --git a/ansible/group_vars/all.yml b/ansible/group_vars/all.yml index 55feff1d5adfb5b8a70e7bf0288f507c736ec3e8..db179b8e2df689540a57a925a57291e2338c6e11 100644 --- a/ansible/group_vars/all.yml +++ b/ansible/group_vars/all.yml @@ -259,7 +259,7 @@ enable_heat: "yes" enable_horizon: "yes" enable_influxdb: "no" enable_ironic: "no" -enable_iscsid: "{{ enable_cinder_backend_iscsi | bool or enable_cinder_backend_lvm | bool }}" +enable_iscsid: "{{ enable_cinder_backend_iscsi | bool or enable_cinder_backend_lvm | bool or enable_ironic | bool }}" enable_kuryr: "no" enable_magnum: "no" enable_manila: "no" diff --git a/ansible/inventory/all-in-one b/ansible/inventory/all-in-one index f402925a6c122c43b79603547fb639356642e524..8d6a009ee1a2612a91b8e54fb2e459588b9ee434 100644 --- a/ansible/inventory/all-in-one +++ b/ansible/inventory/all-in-one @@ -221,6 +221,7 @@ cloudkitty [iscsid:children] compute storage +ironic-conductor [tgtd:children] storage diff --git a/ansible/inventory/multinode b/ansible/inventory/multinode index 594906ca0dc19d42490c966a4c0f525de55566cb..95d0edc948d38d48e6074ef02e89ef7a07a8dbb5 100644 --- a/ansible/inventory/multinode +++ b/ansible/inventory/multinode @@ -239,6 +239,7 @@ cloudkitty [iscsid:children] compute storage +ironic-conductor [tgtd:children] storage diff --git a/ansible/roles/common/templates/cron-logrotate-iscsid.conf.j2 b/ansible/roles/common/templates/cron-logrotate-iscsid.conf.j2 new file mode 100644 index 0000000000000000000000000000000000000000..47fd93d1a0f33d477372bf52cca5beee63b4728e --- /dev/null +++ b/ansible/roles/common/templates/cron-logrotate-iscsid.conf.j2 @@ -0,0 +1,3 @@ +"/var/log/kolla/iscsi/iscsi.log" +{ +} diff --git a/ansible/roles/common/templates/cron.json.j2 b/ansible/roles/common/templates/cron.json.j2 index 7e1f4ab17a1587b281c0bc260d7f20e32481db02..e90ab4f9ca26e311c53d153df956a045260478e1 100644 --- a/ansible/roles/common/templates/cron.json.j2 +++ b/ansible/roles/common/templates/cron.json.j2 @@ -9,6 +9,7 @@ ( 'gnocchi', enable_gnocchi ), ( 'haproxy', enable_haproxy ), ( 'heat', enable_heat ), + ( 'iscsid', enable_iscsid ), ( 'keepalived', enable_haproxy ), ( 'keystone', enable_keystone ), ( 'magnum', enable_magnum ), diff --git a/ansible/roles/iscsi/meta/main.yml b/ansible/roles/iscsi/meta/main.yml new file mode 100644 index 0000000000000000000000000000000000000000..6b4fff8fef6f81d35b73a30c90de45639db41cc9 --- /dev/null +++ b/ansible/roles/iscsi/meta/main.yml @@ -0,0 +1,3 @@ +--- +dependencies: + - { role: common }