X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fmark.pp;h=dfad6b83d9ee96bee41e40cd382f435078533778;hb=bf3451dd7e8726cb7352bc257a58daef15723c8b;hp=e43916204b901c5f2823192d5b48e951c454988c;hpb=54af7f5b8fc5520b6d61dab57fdb2690404a4ede;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/mark.pp b/manifests/mark.pp index e439162..dfad6b8 100644 --- a/manifests/mark.pp +++ b/manifests/mark.pp @@ -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}":