X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=manifests%2Fsite.pp;h=11bc9cac5a6c74f606eaa2f072780eef4cdb6c0b;hb=dad86ebc278becc47b67c2ce29acd4147b3317d5;hp=f922d2b665f0c0782f0c25510b43b4a5afd00a5f;hpb=1508e956adaa97b7a82c27537f4b124266dacdf0;p=perso%2FImmae%2FProjets%2FPuppet.git diff --git a/manifests/site.pp b/manifests/site.pp index f922d2b..11bc9ca 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -1,6 +1,6 @@ node default { - lookup('classes', Hash, 'deep').each |$class_name, $class_hash| { - if empty($class_hash) { + lookup('classes').each |$class_name, $class_hash| { + if $class_hash == undef or empty($class_hash) { include $class_name } else { class { $class_name: