From 1508e956adaa97b7a82c27537f4b124266dacdf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Tue, 29 Aug 2017 23:58:30 +0200 Subject: Move classes to hiera --- manifests/install_ovh_from_scratch.pp | 8 -------- manifests/site.pp | 12 ++++++++++++ 2 files changed, 12 insertions(+), 8 deletions(-) delete mode 100644 manifests/install_ovh_from_scratch.pp create mode 100644 manifests/site.pp (limited to 'manifests') diff --git a/manifests/install_ovh_from_scratch.pp b/manifests/install_ovh_from_scratch.pp deleted file mode 100644 index f5224fa..0000000 --- a/manifests/install_ovh_from_scratch.pp +++ /dev/null @@ -1,8 +0,0 @@ -node default { - include stdlib - - class { 'base_installation': - stage => "setup", - grub_device => "/dev/sdb", - } -} diff --git a/manifests/site.pp b/manifests/site.pp new file mode 100644 index 0000000..f922d2b --- /dev/null +++ b/manifests/site.pp @@ -0,0 +1,12 @@ +node default { + lookup('classes', Hash, 'deep').each |$class_name, $class_hash| { + if empty($class_hash) { + include $class_name + } else { + class { $class_name: + * => $class_hash + } + } + + } +} -- cgit v1.2.3