X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=manifests%2Fsite.pp;h=11bc9cac5a6c74f606eaa2f072780eef4cdb6c0b;hb=f22a16c82d482441b8e1d815bfd90fce22ec6ce8;hp=14645863f2f0fe868aff3fa857705004ce53563d;hpb=596f9fefb01f1419e640f3f3a878443adc047b07;p=perso%2FImmae%2FProjets%2FPuppet.git diff --git a/manifests/site.pp b/manifests/site.pp index 1464586..11bc9ca 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -1,3 +1,12 @@ node default { - include cron-puppet + lookup('classes').each |$class_name, $class_hash| { + if $class_hash == undef or empty($class_hash) { + include $class_name + } else { + class { $class_name: + * => $class_hash + } + } + + } }