Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion roles/linstor/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@
linstor_roles: []
linstor_pool_name: "incus"
linstor_pool_driver: "lvmthin"
linstor_mapped_disks: []
8 changes: 7 additions & 1 deletion roles/linstor/tasks/storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@
ansible.builtin.command: >-
linstor physical-storage create-device-pool --storage-pool {{ linstor_pool_name }}
--pool-name linstor-{{ linstor_pool_name }} {{ linstor_pool_driver }} {{ item }}
{{ linstor_mapped_disks | join(' ') }}
{{
(
hostvars[item]["linstor_disks"] | default([])
| map('regex_replace', '^((?!/dev/disk/by-id/).*)$', '/dev/disk/by-id/\1')
| list
) | join(' ')
}}
register: linstor_create_storage_pool_output
loop: "{{ ansible_play_hosts }}"
when: >
Expand Down
3 changes: 0 additions & 3 deletions roles/linstor/vars/main.yml

This file was deleted.

Loading