X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=inline;f=modules%2Fprofile%2Fmanifests%2Ffstab.pp;h=3af316e2808bf23afeac853ae2f69d44d1089120;hb=f22a16c82d482441b8e1d815bfd90fce22ec6ce8;hp=46c360086dc526075304c0b31022cef9d05e042b;hpb=5adcfd482be6573cbaee94cbd7889e6098df36f8;p=perso%2FImmae%2FProjets%2FPuppet.git diff --git a/modules/profile/manifests/fstab.pp b/modules/profile/manifests/fstab.pp index 46c3600..3af316e 100644 --- a/modules/profile/manifests/fstab.pp +++ b/modules/profile/manifests/fstab.pp @@ -2,7 +2,7 @@ class profile::fstab ( Optional[Array] $mounts = [] ) { $mounts.each |$mount| { - ensure_package(["parted"]) + ensure_packages(["parted"]) unless empty($mount) { $infos = split($mount, ';') @@ -15,6 +15,12 @@ class profile::fstab ( device => "UUID=${infos[1]}", fstype => $infos[2] } + + @profile::monitoring::local_service { "Size on ${infos[0]} partition": + local => { + check_command => "check_local_disk!10%!5%!${infos[0]}", + }; + } } } }