add disk and network profiles into virt
diff --git a/README.rst b/README.rst
index 80c7de9..ee38b34 100644
--- a/README.rst
+++ b/README.rst
@@ -181,3 +181,30 @@
salt-virt
---------
+
+Sample pillar
+
+.. code-block:: yaml
+
+ salt:
+ control:
+ enabled: True
+ virt_enabled: True
+ size:
+ medium:
+ cpu: 2
+ ram: 1024
+ cluster:
+ localnode:
+ domain: domain.com
+ engine: virt
+ config:
+ engine: salt
+ host: 127.0.0.1
+ node:
+ ubuntu01:
+ provider: node001.domain.com
+ image: ubuntu-14-04-x64-1456128611.qcow2
+ size: medium
+ disk_profile: database
+ net_profile: testing
\ No newline at end of file
diff --git a/salt/control/virt.sls b/salt/control/virt.sls
index d2601d1..d4cc4e2 100644
--- a/salt/control/virt.sls
+++ b/salt/control/virt.sls
@@ -32,7 +32,10 @@
- mem: {{ size.ram }}
- image: salt://{{ node.image }}
- start: True
- - kwargs: {'seed': True }
+ - disk: {{ node.disk_profile }}
+ - nic: {{ node.net_profile }}
+ - kwargs:
+ seed: True
- unless: virsh list --all | grep {{ node_name }}.{{ cluster.domain }}
#salt_control_seed_{{ cluster_name }}_{{ node_name }}: