@@ -15,13 +15,15 @@ Role Variables
15
15
` libvirt_host_pools ` is a list of pools to define and start. Each item
16
16
should be a dict containing the following items:
17
17
- ` name ` The name of the pool.
18
- - ` type ` The type of the pool, currently only ` dir ` is supported.
19
- - ` capacity ` The capacity, in bytes, of the pool.
18
+ - ` type ` The type of the pool, currently only ` dir ` and ` lvm2 ` are supported.
19
+ - ` capacity ` The capacity, in bytes, of the pool. (optional)
20
20
- ` path ` The absolute path to the pool's backing directory.
21
21
- ` mode ` The access mode of the pool. N.B.: This should be specified as an
22
- integer ** without** a leading zero; for example: ` mode: 755 ` .
23
- - ` owner ` The owner of the pool.
24
- - ` group ` The group of the pool.
22
+ integer ** without** a leading zero; for example: ` mode: 755 ` . (only ` dir ` )
23
+ - ` owner ` The owner of the pool. (only ` dir ` )
24
+ - ` group ` The group of the pool. (only ` dir ` )
25
+ - ` source ` The name of the volume group. (only ` lvm2 ` )
26
+ - ` pvs ` A list of physical volumes the volume group consists of. (only ` lvm2 ` )
25
27
26
28
` libvirt_host_networks ` is a list of networks to define and start. Each item
27
29
should be a dict containing the following items:
@@ -97,6 +99,12 @@ Example Playbook
97
99
mode: 755
98
100
owner: my-user
99
101
group: my-group
102
+ - name: lvm_pool
103
+ type: lvm2
104
+ source: vg1
105
+ target: /dev/vg1
106
+ pvs:
107
+ - /dev/sda3
100
108
libvirt_host_networks:
101
109
- name: br-example
102
110
mode: bridge
0 commit comments