diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-10-26 18:30:36 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-10-26 18:30:36 -0200 |
commit | ca767693df70f8c857853e8187287892f781c57d (patch) | |
tree | 58252e6e4e8d2f6076ce19f702925b6b48fea2ec | |
parent | 5fd3449cd0302d06fa9fc2d94424de23df56a512 (diff) | |
download | puppet-nodo-ca767693df70f8c857853e8187287892f781c57d.tar.gz puppet-nodo-ca767693df70f8c857853e8187287892f781c57d.tar.bz2 |
Use hiera_include: test if classes is defined
-rw-r--r-- | manifests/init.pp | 5 |
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') + } } |