X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=manifests%2Fsite.pp;h=f922d2b665f0c0782f0c25510b43b4a5afd00a5f;hb=1508e956adaa97b7a82c27537f4b124266dacdf0;hp=0c7fdf455453231651c57b14fc33d26680f77f03;hpb=2d02240aaac30d65e47de15198853fc95e32411b;p=perso%2FImmae%2FProjets%2FPuppet.git diff --git a/manifests/site.pp b/manifests/site.pp index 0c7fdf4..f922d2b 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -1,6 +1,12 @@ node default { - include stdlib - class { 'ovh_cleanup': } - class { 'base_packages': } - class { 'cron_puppet': } + lookup('classes', Hash, 'deep').each |$class_name, $class_hash| { + if empty($class_hash) { + include $class_name + } else { + class { $class_name: + * => $class_hash + } + } + + } }