diff --git a/ansible/group_vars/all.yml b/ansible/group_vars/all.yml index 55feff1d5a..db179b8e2d 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 f402925a6c..8d6a009ee1 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 594906ca0d..95d0edc948 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 0000000000..47fd93d1a0 --- /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 7e1f4ab17a..e90ab4f9ca 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 0000000000..6b4fff8fef --- /dev/null +++ b/ansible/roles/iscsi/meta/main.yml @@ -0,0 +1,3 @@ +--- +dependencies: + - { role: common }