aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-10-26 18:30:36 -0200
committerSilvio Rhatto <rhatto@riseup.net>2015-10-26 18:30:36 -0200
commitca767693df70f8c857853e8187287892f781c57d (patch)
tree58252e6e4e8d2f6076ce19f702925b6b48fea2ec
parent5fd3449cd0302d06fa9fc2d94424de23df56a512 (diff)
downloadpuppet-nodo-ca767693df70f8c857853e8187287892f781c57d.tar.gz
puppet-nodo-ca767693df70f8c857853e8187287892f781c57d.tar.bz2
Use hiera_include: test if classes is defined
-rw-r--r--manifests/init.pp5
1 files changed, 4 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 52ab8b8..a6d5883 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -25,5 +25,8 @@ class nodo(
}
# Include additional classes
- hiera_include('classes')
+ $classes = hiera('classes', false)
+ if $classes != false {
+ hiera_include('classes')
+ }
}