@@ -15,7 +15,7 @@ Role Variables
1515` libvirt_host_pools ` is a list of pools to define and start. Each item
1616should be a dict containing the following items:
1717- ` 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
1919 supported. ` lvm2 ` is supported as an alias for ` logical ` , but this alias is
2020 deprecated and will be removed in a future release.
2121- ` capacity ` The capacity, in bytes, of the pool. (optional)
@@ -24,9 +24,13 @@ should be a dict containing the following items:
2424 integer ** without** a leading zero; for example: ` mode: 755 ` . (only ` dir ` )
2525- ` owner ` The owner of the pool. (only ` dir ` )
2626- ` 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 ` ).
2829- ` 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 ` )
2931 type is ` logical ` )
32+ - ` username ` The username used for RADOS authentification. (only ` rbd ` )
33+ - ` passphrase ` The passphrase used for RADOS authentification. (only ` rbd ` )
3034
3135` libvirt_host_networks ` is a list of networks to define and start. Each item
3236should be a dict containing the following items:
@@ -108,6 +112,16 @@ Example Playbook
108112 target: /dev/vg1
109113 pvs:
110114 - /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+
111125 libvirt_host_networks:
112126 - name: br-example
113127 mode: bridge
0 commit comments