Skip to content

Commit 05e6c3c

Browse files
committed
Clarify the syntax for disks
And replace templates in the example by actual values to make it more clear what values can go there.
1 parent 7efc689 commit 05e6c3c

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ This specifies the type of pool to manage.
2525
Valid values for `type`: `lvm`.
2626

2727
##### `disks`
28-
This specifies the set of disks to use as backing storage for the pool.
28+
A list which specifies the set of disks to use as backing storage for the pool
29+
(a `/dev/` or `/dev/mapper/` prefix is prepended if the name is not an absolute path).
2930

3031
##### `volumes`
3132
This is a list of volumes that belong to the current pool. It follows the
@@ -82,18 +83,20 @@ Example Playbook
8283
roles:
8384
- name: storage
8485
storage_pools:
85-
- name: "{{ app_name }}"
86-
disks: "{{ app_data_wwns }}"
86+
- name: app
87+
disks:
88+
- /dev/sdb
89+
- /dev/sdc
8790
volumes:
8891
- name: shared
8992
size: "100 GiB"
90-
mount_point: "{{ app_root}}/shared"
93+
mount_point: "/mnt/app/shared"
9194
#fs_type: xfs
9295
state: present
9396
- name: users
9497
size: "400g"
9598
fs_type: ext4
96-
mount_point: "{{ app_root }}/users"
99+
mount_point: "/mnt/app/users"
97100
storage_volumes:
98101
- name: images
99102
type: disk

0 commit comments

Comments
 (0)