@@ -15,7 +15,7 @@ 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 ` and ` logical ` are
18
+ - ` type ` The type of the pool, currently only ` dir ` , ` logical ` and ` rbd ` are
19
19
supported. ` lvm2 ` is supported as an alias for ` logical ` , but this alias is
20
20
deprecated and will be removed in a future release.
21
21
- ` capacity ` The capacity, in bytes, of the pool. (optional)
@@ -24,9 +24,13 @@ should be a dict containing the following items:
24
24
integer ** without** a leading zero; for example: ` mode: 755 ` . (only ` dir ` )
25
25
- ` owner ` The owner of the pool. (only ` dir ` )
26
26
- ` group ` The group of the pool. (only ` dir ` )
27
- - ` source ` The name of the volume group. (only when type is ` logical ` )
27
+ - ` source ` The name of the volume group (when type is ` logical ` ) or RBD pool
28
+ (when type is ` rbd ` ).
28
29
- ` pvs ` A list of physical volumes the volume group consists of. (only when
30
+ - ` hosts ` The list of the Ceph monitors IPs or hostnames. (only ` rbd ` )
29
31
type is ` logical ` )
32
+ - ` username ` The username used for RADOS authentification. (only ` rbd ` )
33
+ - ` passphrase ` The passphrase used for RADOS authentification. (only ` rbd ` )
30
34
31
35
` libvirt_host_networks ` is a list of networks to define and start. Each item
32
36
should be a dict containing the following items:
@@ -108,6 +112,16 @@ Example Playbook
108
112
target: /dev/vg1
109
113
pvs:
110
114
- /dev/sda3
115
+ - name: rbd-pool
116
+ type: rbd
117
+ source: rbd
118
+ hosts:
119
+ - 192.168.42.200
120
+ - 192.168.42.204
121
+ - 192.168.42.208
122
+ username: admin
123
+ passphrase: xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
124
+
111
125
libvirt_host_networks:
112
126
- name: br-example
113
127
mode: bridge
0 commit comments