Upgrade some notifies to warnings
[mirror/dsa-puppet.git] / modules / ssh / manifests / keygen.pp
index 29fd063..0af3341 100644 (file)
@@ -3,7 +3,9 @@ define ssh::keygen(
   String $user = $name,
 ) {
   if $facts["${user}_user_exists"] == undef {
-    notify{"We do not have facters for user ${user} existance and keys -- add it to modules/debian_org/lib/facter/roleaccounts.rb": }
+    notify { "We do not have facters for user ${user} existance and keys -- add it to modules/debian_org/lib/facter/roleaccounts.rb":
+      loglevel => warning,
+    }
   } elsif $facts["${user}_user_exists"] {
     if ! $facts["${user}_key"] {
       exec { "create-${user}-ssh-key":
@@ -14,6 +16,8 @@ define ssh::keygen(
       }
     }
   } else {
-    notify{"User ${user} does not exist on this host.  Will not create ssh key": }
+    notify { "User ${user} does not exist on this host.  Will not create ssh key":
+      loglevel => warning,
+    }
   }
 }