Perhaps this is a Debian/Ubuntu question and not a puppet problem but... Seems as though the key is good but the install failed. # apt-key list /etc/apt/trusted.gpg -------------------- --- snip --- pub 2048R/7F0CEB10 2010-02-05 uid Richard Kreuter <richard@10gen.com> and the 7F0CEF10 key (10gen) is the key in question anyway, puppet failed to install the package and running the install from the command line, I can sort of see why... # apt-get install mongodb-10gen Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: ssl-cert Use ''apt-get autoremove'' to remove them. The following NEW packages will be installed: mongodb-10gen 0 upgraded, 1 newly installed, 0 to remove and 21 not upgraded. Need to get 27.3MB of archives. After this operation, 70.6MB of additional disk space will be used. WARNING: The following packages cannot be authenticated! mongodb-10gen Install these packages without verification [y/N]? n E: Some packages could not be authenticated puppet of course stumbles with the same problem... # puppet agent --test --verbose --ignorecache --server ubuntu.ttinet info: Retrieving plugin info: Loading facts in datacenter info: Loading facts in datacenter info: Caching catalog for ubuntu2.ttinet info: Applying configuration version ''1308777226'' err: /Stage[main]/Mongodb/Package[mongodb-10gen]/ensure: change from purged to present failed: Execution of ''/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install mongodb-10gen'' returned 100: Reading package lists... Building dependency tree... Reading state information... The following packages were automatically installed and are no longer required: ssl-cert Use ''apt-get autoremove'' to remove them. The following NEW packages will be installed: mongodb-10gen 0 upgraded, 1 newly installed, 0 to remove and 21 not upgraded. Need to get 27.3MB of archives. After this operation, 70.6MB of additional disk space will be used. WARNING: The following packages cannot be authenticated! mongodb-10gen E: There are problems and -y was used without --force-yes err: /Stage[main]/Mongodb/Service[mongodb]/ensure: change from stopped to running failed: Could not find init script for ''mongodb'' notice: Finished catalog run in 1.06 seconds and you can imagine that I am not very keen on automating anything with --force ?? -- Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ craig.white@ttiltd.com 1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ www.ttiassessments.com Need help communicating between generations at work to achieve your desired success? Let us help! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On 06/22/2011 11:29 PM, Craig White wrote:> Perhaps this is a Debian/Ubuntu question and not a puppet problem but... > > Seems as though the key is good but the install failed. > > # apt-key list > /etc/apt/trusted.gpg > -------------------- > --- snip --- > > pub 2048R/7F0CEB10 2010-02-05 > uid Richard Kreuter <richard@10gen.com> > > and the 7F0CEF10 key (10gen) is the key in question > > anyway, puppet failed to install the package and running the install from the command line, I can sort of see why...You need to run apt-get update after import of the key. apt-get install will read from local cache which still has no information regarding the key.> > # apt-get install mongodb-10gen > Reading package lists... Done > Building dependency tree > Reading state information... Done > The following packages were automatically installed and are no longer required: > ssl-cert > Use ''apt-get autoremove'' to remove them. > The following NEW packages will be installed: > mongodb-10gen > 0 upgraded, 1 newly installed, 0 to remove and 21 not upgraded. > Need to get 27.3MB of archives. > After this operation, 70.6MB of additional disk space will be used. > WARNING: The following packages cannot be authenticated! > mongodb-10gen > Install these packages without verification [y/N]? n > E: Some packages could not be authenticated > > puppet of course stumbles with the same problem... > # puppet agent --test --verbose --ignorecache --server ubuntu.ttinet > info: Retrieving plugin > info: Loading facts in datacenter > info: Loading facts in datacenter > info: Caching catalog for ubuntu2.ttinet > info: Applying configuration version ''1308777226'' > err: /Stage[main]/Mongodb/Package[mongodb-10gen]/ensure: change from purged to present failed: Execution of ''/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install mongodb-10gen'' returned 100: Reading package lists... > Building dependency tree... > Reading state information... > The following packages were automatically installed and are no longer required: > ssl-cert > Use ''apt-get autoremove'' to remove them. > The following NEW packages will be installed: > mongodb-10gen > 0 upgraded, 1 newly installed, 0 to remove and 21 not upgraded. > Need to get 27.3MB of archives. > After this operation, 70.6MB of additional disk space will be used. > WARNING: The following packages cannot be authenticated! > mongodb-10gen > E: There are problems and -y was used without --force-yes > > err: /Stage[main]/Mongodb/Service[mongodb]/ensure: change from stopped to running failed: Could not find init script for ''mongodb'' > notice: Finished catalog run in 1.06 seconds > > and you can imagine that I am not very keen on automating anything with --force > > ?? >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Jun 22, 2011, at 10:32 PM, Martin Alfke wrote:> On 06/22/2011 11:29 PM, Craig White wrote: >> Perhaps this is a Debian/Ubuntu question and not a puppet problem but... >> >> Seems as though the key is good but the install failed. >> >> # apt-key list >> /etc/apt/trusted.gpg >> -------------------- >> --- snip --- >> >> pub 2048R/7F0CEB10 2010-02-05 >> uid Richard Kreuter <richard@10gen.com> >> >> and the 7F0CEF10 key (10gen) is the key in question >> >> anyway, puppet failed to install the package and running the install from the command line, I can sort of see why... > > You need to run apt-get update after import of the key. > apt-get install will read from local cache which still has no > information regarding the key.---- duh... I figured that out yesterday and ''replied'' but apparently only to myself and not the list (not used to Apple Mail) this is what I wrote... Solved... apparently just a matter of apt-get update sheesh in my modules/apt/manifests/apt.pp I have exec{"/usr/bin/apt-get update": refreshonly => true, subscribe => File["/etc/apt/sources.list"], require => File["/etc/apt/sources.list"], } is there any way I can be certain that it happens? Craig -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.