X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=manifests%2Fsite.pp;h=11bc9cac5a6c74f606eaa2f072780eef4cdb6c0b;hb=5d110ba1a1e8b2e0e7ab2cb0499940df86aebad3;hp=d8c98433781651ac523238c909ea39aa36c1e1f7;hpb=f756de713e30c9139ad1404f057361154dea4e34;p=perso%2FImmae%2FProjets%2FPuppet.git diff --git a/manifests/site.pp b/manifests/site.pp index d8c9843..11bc9ca 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -1,7 +1,12 @@ node default { - include stdlib - class { 'ovh_cleanup': } - class { 'locales': } - class { 'base_packages': } - class { '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 + } + } + + } }