(GH-cat-9) syntax:hiera:yaml fixes
[puppet-modules/puppetlabs-apt.git] / manifests / mark.pp
index e43916204b901c5f2823192d5b48e951c454988c..f4b7de0a37bf65f4ddbd9342c0d10b1ff8c288c2 100644 (file)
@@ -1,19 +1,19 @@
-# defined typeapt::mark
+# @summary Manages apt-mark settings
 #
 # @param setting
 #   auto, manual, hold, unhold
 #   specifies the behavior of apt in case of no more dependencies installed
-#   https://manpages.debian.org/sretch/apt/apt-mark.8.en.html
+#   https://manpages.debian.org/stable/apt/apt-mark.8.en.html
 #
 define apt::mark (
   Enum['auto','manual','hold','unhold'] $setting,
-){
+) {
   case $setting {
     'unhold': {
       $unless_cmd = undef
     }
     default: {
-      $unless_cmd = "/usr/bin/apt-mark showm${setting} ${title} | /bin/fgrep -qs ${title}"
+      $unless_cmd = "/usr/bin/apt-mark show${setting} ${title} | /bin/fgrep -qs ${title}"
     }
   }
   exec { "/usr/bin/apt-mark ${setting} ${title}":
@@ -21,4 +21,3 @@ define apt::mark (
     unless => $unless_cmd,
   }
 }
-