[Feature] libvirt xml: pass rng to vm
[Fix] Doc
Issue: - It is not possible to pass [R]andom [N]umber [G]enerator
device to libvirt guest xml in order to control entropy.
- Doc has no information on how to provision vms using salt
Solution: - Pass rng parameters via kwargs from node: pillar
Attach rng xml object to generated xml.
- Provide with an example
Prod-Related: PROD-19214
Customer-Found
Change-Id: Iea111f2d927edf46f06bb7ccfad06d37b752fba9
diff --git a/README.rst b/README.rst
index 0b5160f..68e9264 100644
--- a/README.rst
+++ b/README.rst
@@ -340,6 +340,47 @@
salt-call event.send 'salt/key/remove'
+Control VM provisioning
+
+.. code-block:: yaml
+
+ virt:
+ disk:
+ three_disks:
+ - system:
+ size: 4096
+ image: ubuntu.qcow
+ - repository_snapshot:
+ size: 8192
+ image: snapshot.qcow
+ - cinder-volume:
+ size: 2048
+
+ salt:
+ control:
+ enabled: true
+ virt_enabled: true
+ size:
+ medium_three_disks:
+ cpu: 2
+ ram: 4
+ disk_profile: three_disks
+ cluster:
+ mycluster:
+ domain: neco.virt.domain.com
+ engine: virt
+ node:
+ ubuntu1:
+ provider: node01.domain.com
+ image: ubuntu.qcow
+ size: medium
+ img_dest: /var/lib/libvirt/ssdimages
+ rng:
+ backend: /dev/urandom
+ model: random
+ rate:
+ period: '1800'
+ bytes: '1500'
Jinja options
-------------