Hi,

running puppet with --debug will show you the check command that is run
to determine whether the package needs updating. It yields a zero exit
code apparently, so the 'unless' dependency is not hit.

https://github.com/puppetlabs/puppetlabs-apt/blob/0e3220711ba9ce05715c39c22771e34b81b41382/manifests/force.pp#L55

HTH,
Felix

On 02/24/2015 01:33 PM, Jochen Häberle wrote:
> Hi,
>
> I am having problems installing a kernel from backports on Debian Wheezy with 
> Puppet 3.7.4
>
> I am using puppetlabs/apt to manage Debian repositories and have the 
> following code for my note
>
>   notice("getting kernel from backports...")
>   apt::force { 'linux-image-amd64':
>     release     => 'wheezy-backports',
>     cfg_files   => 'unchanged',
>     cfg_missing => true,
>     require     => Apt::Source['Debian_Backports'],
>   } ->
>   package { 'linux-image-amd64':
>     ensure          => 'latest',
>   }
>
> The notice is reached, but the kernel-package is not touched and stays at the 
> main Debian version
>
> The Apt repositoriy is declared elsewhere as
>
> apt::source { 'Debian_Backports':
>   comment           => 'This is the Debian Backports mirror',
>   location          => 'http://ftp.de.debian.org/debian',
>   release           => 'wheezy-backports',
>   repos             => 'main contrib non-free',
>   pin               => '200',
>   include_src       => false,
>   include_deb       => true,
> }
>
> The source file is present and apt-show-versions gives me the kernel from 
> backports I want to get. apt-get update is executed.
>
> I do not see the problem. Could anypne pls help me out???
>
> Thanks in advance
>
> Jochen

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/54F3729E.3010306%40Alumni.TU-Berlin.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to