---
+classes:
+ stdlib: ~
+
base_installation::puppet_code_path: "/etc/puppetlabs/code"
base_installation::system_locales: ["fr_FR.UTF-8", "en_US.UTF-8"]
base_installation::system_timezone: "Europe/Paris"
---
+classes:
+ base_installation:
+ stage: "setup"
+
base_installation::system_hostname: "new.immae.eu"
base_installation::grub_device: "/dev/sdb"
+++ /dev/null
-node default {
- include stdlib
-
- class { 'base_installation':
- stage => "setup",
- grub_device => "/dev/sdb",
- }
-}
--- /dev/null
+node default {
+ lookup('classes', Hash, 'deep').each |$class_name, $class_hash| {
+ if empty($class_hash) {
+ include $class_name
+ } else {
+ class { $class_name:
+ * => $class_hash
+ }
+ }
+
+ }
+}