aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-03-25 19:26:31 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-03-25 19:26:31 -0300
commitc0298e672d66749c5430f92c7470c05e4541c2ea (patch)
treefc0637b9ff5c27d3c44f10746fae3a1c44bd27af
parente5a024869641d9ba607204d87f412f5690a7f053 (diff)
downloadpuppet-nodo-c0298e672d66749c5430f92c7470c05e4541c2ea.tar.gz
puppet-nodo-c0298e672d66749c5430f92c7470c05e4541c2ea.tar.bz2
Allow nodo::subsystem::virtual::instance be declared via hiera
-rw-r--r--manifests/resources.pp4
1 files changed, 4 insertions, 0 deletions
diff --git a/manifests/resources.pp b/manifests/resources.pp
index f999d82..02d1964 100644
--- a/manifests/resources.pp
+++ b/manifests/resources.pp
@@ -15,4 +15,8 @@ class nodo::resources {
# File lines
$file_lines = hiera('file_lines', {})
create_resources('file_line', $file_lines)
+
+ # Virtual machines
+ $vms = hiera('nodo::subsystem::virtual::instances', {})
+ create_resources('nodo::subsystem::virtual::instance', $vms)
}