Matt Zagrabelny
2011-Dec-21 22:50 UTC
[Puppet Users] installing packages from debian backports?
Hi Puppet Users, I am trying to install a package (request-tracker4) from Debian backports onto a stable (squeeze) Debian system using puppet. I''ve googled around and didn''t find anything concrete about the best way going about this. Does anyone have advice regarding this? The crux is that apt-get (or aptitude) currently is called like: /usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install request-tracker4 However to resolve dependencies contained within the backports repo, we need to add the ''-t squeeze-backports'' option: /usr/bin/apt-get -q -y -t squeeze-backports -o DPkg::Options::=--force-confold install request-tracker4 I was thinking of making a custom provider. Is that sane? Thanks for the hints! -matt zagrabelny -- 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.
Walter Heck
2011-Dec-21 23:37 UTC
Re: [Puppet Users] installing packages from debian backports?
Look into apt pinning, that is the way to pin specific packages to come from a specific origin. It''s done in /etc/apt/preferences, the deep inner workings are a tad voodoo, but nothing too crazy :) On Thu, Dec 22, 2011 at 00:50, Matt Zagrabelny <mzagrabe@d.umn.edu> wrote:> Hi Puppet Users, > > I am trying to install a package (request-tracker4) from Debian > backports onto a stable (squeeze) Debian system using puppet. I''ve > googled around and didn''t find anything concrete about the best way > going about this. > > Does anyone have advice regarding this? > > The crux is that apt-get (or aptitude) currently is called like: > > /usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install > request-tracker4 > > However to resolve dependencies contained within the backports repo, > we need to add the ''-t squeeze-backports'' option: > > /usr/bin/apt-get -q -y -t squeeze-backports -o > DPkg::Options::=--force-confold install request-tracker4 > > I was thinking of making a custom provider. Is that sane? > > Thanks for the hints! > > -matt zagrabelny > > -- > 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. > >-- Walter Heck -- follow @walterheck on twitter to see what I''m up to! -- Check out my new startup: Server Monitoring as a Service @ http://tribily.com Follow @tribily on Twitter and/or ''Like'' our Facebook page at http://www.facebook.com/tribily -- 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.
Matt Zagrabelny
2011-Dec-22 01:29 UTC
Re: [Puppet Users] installing packages from debian backports?
On Wed, Dec 21, 2011 at 5:37 PM, Walter Heck <walterheck@gmail.com> wrote:> Look into apt pinning, that is the way to pin specific packages to come from > a specific origin. It''s done in /etc/apt/preferences, the deep inner > workings are a tad voodoo, but nothing too crazy :)Thanks for the advice, Walter. There are a couple of options: 1) Pin all of squeeze-backports higher than squeeze. The drawback here is that more of squeeze-backports will get pulled in than just the dependencies of "request-tracker4". 2) Pin the dependent packages from s-b-p higher than squeeze. The drawback here is that I''ll need to manually enter all of the dependencies of rt4 into the pinning stanzas. Ideally, I''d like to use the -t option for apt-get/aptitude - that provides the cleanest package install process. Thanks for jogging my memory about pinning though, it should suffice if there is not clean way to use the ''-t'' option with puppet. Any other advice is (equally) welcome. Thanks, -mz> On Thu, Dec 22, 2011 at 00:50, Matt Zagrabelny <mzagrabe@d.umn.edu> wrote: >> >> Hi Puppet Users, >> >> I am trying to install a package (request-tracker4) from Debian >> backports onto a stable (squeeze) Debian system using puppet. I''ve >> googled around and didn''t find anything concrete about the best way >> going about this. >> >> Does anyone have advice regarding this? >> >> The crux is that apt-get (or aptitude) currently is called like: >> >> /usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install >> request-tracker4 >> >> However to resolve dependencies contained within the backports repo, >> we need to add the ''-t squeeze-backports'' option: >> >> /usr/bin/apt-get -q -y -t squeeze-backports -o >> DPkg::Options::=--force-confold install request-tracker4 >> >> I was thinking of making a custom provider. Is that sane? >> >> Thanks for the hints! >> >> -matt zagrabelny >> >> -- >> 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. >> > > > > -- > Walter Heck > > -- > follow @walterheck on twitter to see what I''m up to! > -- > Check out my new startup: Server Monitoring as a Service @ > http://tribily.com > Follow @tribily on Twitter and/or ''Like'' our Facebook page at > http://www.facebook.com/tribily > > -- > 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.-- 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.
Tom De Vylder
2011-Dec-22 09:19 UTC
Re: [Puppet Users] installing packages from debian backports?
On 22 Dec 2011, at 02:29, Matt Zagrabelny wrote:> On Wed, Dec 21, 2011 at 5:37 PM, Walter Heck <walterheck@gmail.com> wrote: >> Look into apt pinning, that is the way to pin specific packages to come from >> a specific origin. It''s done in /etc/apt/preferences, the deep inner >> workings are a tad voodoo, but nothing too crazy :) > > Thanks for the advice, Walter. > > There are a couple of options: > > 1) Pin all of squeeze-backports higher than squeeze. The drawback here > is that more of squeeze-backports will get pulled in than just the > dependencies of "request-tracker4". > > 2) Pin the dependent packages from s-b-p higher than squeeze. The > drawback here is that I''ll need to manually enter all of the > dependencies of rt4 into the pinning stanzas. > > Ideally, I''d like to use the -t option for apt-get/aptitude - that > provides the cleanest package install process. > > Thanks for jogging my memory about pinning though, it should suffice > if there is not clean way to use the ''-t'' option with puppet. > > Any other advice is (equally) welcome. > > Thanks, > > -mzHow about this: package { ''puppetmaster/squeeze-backports'': ensure => installed, } Looks a lot easier to me. It takes all the dependencies it needs from squeeze when available. If it can''t find any suitable dependencies it will try to use backports instead, but only for the requested package. Regards, Tom -- 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.
Walter Heck
2011-Dec-22 09:31 UTC
Re: [Puppet Users] installing packages from debian backports?
On Thu, Dec 22, 2011 at 11:19, Tom De Vylder <tom@penumbra.be> wrote:> How about this: > > package { ''puppetmaster/squeeze-backports'': > ensure => installed, > } > > Looks a lot easier to me. It takes all the dependencies it needs from > squeeze when available. > If it can''t find any suitable dependencies it will try to use backports > instead, but only for the requested package. >Is that documented behaviour? I couldn''t find that anywhere when I was looking for it ;) Although I think that does almost the same as pinning? From what I understand pinning will take the packages from backports if the required dependencies cannot be found in squeeze? It will just look to satisfy dependencies in squeeze first. cheers, -- Walter Heck -- follow @walterheck on twitter to see what I''m up to! -- Check out my new startup: Server Monitoring as a Service @ http://tribily.com Follow @tribily on Twitter and/or ''Like'' our Facebook page at http://www.facebook.com/tribily -- 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.
Matt Zagrabelny
2011-Dec-22 13:32 UTC
Re: [Puppet Users] installing packages from debian backports?
On Thu, Dec 22, 2011 at 3:31 AM, Walter Heck <walterheck@gmail.com> wrote:> > > On Thu, Dec 22, 2011 at 11:19, Tom De Vylder <tom@penumbra.be> wrote: >> >> How about this: >> >> package { ''puppetmaster/squeeze-backports'': >> ensure => installed, >> } >> >> Looks a lot easier to me. It takes all the dependencies it needs from >> squeeze when available. >> If it can''t find any suitable dependencies it will try to use backports >> instead, but only for the requested package. > > > Is that documented behaviour?It is documented in apt(-get/itude). From the man page: install pkg [ { =pkg_version_number | /target_release } ] Thanks for the good hints Tom and Walter. -mz -- 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.
Matt Zagrabelny
2011-Dec-22 16:16 UTC
Re: [Puppet Users] installing packages from debian backports?
On Thu, Dec 22, 2011 at 7:32 AM, Matt Zagrabelny <mzagrabe@d.umn.edu> wrote:> On Thu, Dec 22, 2011 at 3:31 AM, Walter Heck <walterheck@gmail.com> wrote: >> >> >> On Thu, Dec 22, 2011 at 11:19, Tom De Vylder <tom@penumbra.be> wrote: >>> >>> How about this: >>> >>> package { ''puppetmaster/squeeze-backports'': >>> ensure => installed, >>> } >>> >>> Looks a lot easier to me. It takes all the dependencies it needs from >>> squeeze when available. >>> If it can''t find any suitable dependencies it will try to use backports >>> instead, but only for the requested package. >> >> >> Is that documented behaviour? > > It is documented in apt(-get/itude). From the man page: > > install pkg [ { =pkg_version_number | /target_release } ] > > > Thanks for the good hints Tom and Walter. > > -mzUnfortunately, no dice. Dec 22 10:03:15 acasupport-web puppet-agent[32729]: (/Stage[main]/Request_tracker4::Install/Package[request-tracker4/squeeze-backports]/ensure) change from purged to present failed: Execution of ''/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install request-tracker4/squeeze-backports'' returned 100: Reading package lists... Building dependency tree... Reading state information... Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: request-tracker4 : Depends: libdbix-searchbuilder-perl (>= 1.59) but 1.56-1 is to be installed Depends: liblog-dispatch-perl (>= 2.23) but 2.22-1 is to be installed Depends: libhtml-rewriteattributes-perl (>= 0.04) but 0.03-1 is to be installed Depends: libplack-perl (>= 0.9971) but 0.9941-1 is to be installed E: Broken packages Dec 22 10:03:15 acasupport-web puppet-agent[32729]: (/Stage[main]/Request_tracker4::Install/Package[rt4-db-postgresql/squeeze-backports]) Dependency Package[request-tracker4/squeeze-backports] has failures: true Dec 22 10:03:15 acasupport-web puppet-agent[32729]: (/Stage[main]/Request_tracker4::Install/Package[rt4-db-postgresql/squeeze-backports]) Skipping because of failed dependencies From Martin Krafft''s Debian book: apt-get install package/release apt-get install package=version "Both of these methods have the inherit problem that the release or version selection only applies to the package for which has been specified. If the package defines dependencies that can only be satisfied from the same source, APT gives up." Later on Krafft reports: "A better way to control the source archive to be used for installations and upgrades is to override the default (or target) release... provide the --target-release (-t) switch for this purpose.)" Thus, apt-get -t target install package is different from apt-get install package/target Back to the drawing board... -mz -- 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.
Walter Heck
2011-Dec-22 22:39 UTC
Re: [Puppet Users] installing packages from debian backports?
I guess your best workaround then is to pin the package and all it''s dependencies to backports. On Thu, Dec 22, 2011 at 18:16, Matt Zagrabelny <mzagrabe@d.umn.edu> wrote:> On Thu, Dec 22, 2011 at 7:32 AM, Matt Zagrabelny <mzagrabe@d.umn.edu> > wrote: > > On Thu, Dec 22, 2011 at 3:31 AM, Walter Heck <walterheck@gmail.com> > wrote: > >> > >> > >> On Thu, Dec 22, 2011 at 11:19, Tom De Vylder <tom@penumbra.be> wrote: > >>> > >>> How about this: > >>> > >>> package { ''puppetmaster/squeeze-backports'': > >>> ensure => installed, > >>> } > >>> > >>> Looks a lot easier to me. It takes all the dependencies it needs from > >>> squeeze when available. > >>> If it can''t find any suitable dependencies it will try to use backports > >>> instead, but only for the requested package. > >> > >> > >> Is that documented behaviour? > > > > It is documented in apt(-get/itude). From the man page: > > > > install pkg [ { =pkg_version_number | /target_release } ] > > > > > > Thanks for the good hints Tom and Walter. > > > > -mz > > Unfortunately, no dice. > > Dec 22 10:03:15 acasupport-web puppet-agent[32729]: > > (/Stage[main]/Request_tracker4::Install/Package[request-tracker4/squeeze-backports]/ensure) > change from purged to present failed: Execution of ''/usr/bin/apt-get > -q -y -o DPkg::Options::=--force-confold install > request-tracker4/squeeze-backports'' returned 100: Reading package > lists... > Building dependency tree... > Reading state information... > Some packages could not be installed. This may mean that you have > requested an impossible situation or if you are using the unstable > distribution that some required packages have not yet been created > or been moved out of Incoming. > The following information may help to resolve the situation: > The following packages have unmet dependencies: > request-tracker4 : Depends: libdbix-searchbuilder-perl (>= 1.59) but > 1.56-1 is to be installed > Depends: liblog-dispatch-perl (>= 2.23) but 2.22-1 > is to be installed > Depends: libhtml-rewriteattributes-perl (>= 0.04) > but 0.03-1 is to be installed > Depends: libplack-perl (>= 0.9971) but 0.9941-1 is > to be installed > E: Broken packages > Dec 22 10:03:15 acasupport-web puppet-agent[32729]: > > (/Stage[main]/Request_tracker4::Install/Package[rt4-db-postgresql/squeeze-backports]) > Dependency Package[request-tracker4/squeeze-backports] has failures: > true > Dec 22 10:03:15 acasupport-web puppet-agent[32729]: > > (/Stage[main]/Request_tracker4::Install/Package[rt4-db-postgresql/squeeze-backports]) > Skipping because of failed dependencies > > From Martin Krafft''s Debian book: > > apt-get install package/release > apt-get install package=version > > "Both of these methods have the inherit problem that the release or > version selection only applies to the package for which has been > specified. If the package defines dependencies that can only be > satisfied from the same source, APT gives up." > > Later on Krafft reports: > > "A better way to control the source archive to be used for > installations and upgrades is to override the default (or target) > release... provide the --target-release (-t) switch for this > purpose.)" > > Thus, > > apt-get -t target install package > > is different from > > apt-get install package/target > > Back to the drawing board... > > -mz > > -- > 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. > >-- Walter Heck -- follow @walterheck on twitter to see what I''m up to! -- Check out my new startup: Server Monitoring as a Service @ http://tribily.com Follow @tribily on Twitter and/or ''Like'' our Facebook page at http://www.facebook.com/tribily -- 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.
Tom De Vylder
2011-Dec-23 12:01 UTC
Re: [Puppet Users] installing packages from debian backports?
Oh my bad, really. I forgot to mention you need to update your sources.list to include debian squeeze sources too. Regard, Tom On 22 Dec 2011, at 23:39, Walter Heck wrote:> I guess your best workaround then is to pin the package and all it''s dependencies to backports. > > On Thu, Dec 22, 2011 at 18:16, Matt Zagrabelny <mzagrabe@d.umn.edu> wrote: > On Thu, Dec 22, 2011 at 7:32 AM, Matt Zagrabelny <mzagrabe@d.umn.edu> wrote: > > On Thu, Dec 22, 2011 at 3:31 AM, Walter Heck <walterheck@gmail.com> wrote: > >> > >> > >> On Thu, Dec 22, 2011 at 11:19, Tom De Vylder <tom@penumbra.be> wrote: > >>> > >>> How about this: > >>> > >>> package { ''puppetmaster/squeeze-backports'': > >>> ensure => installed, > >>> } > >>> > >>> Looks a lot easier to me. It takes all the dependencies it needs from > >>> squeeze when available. > >>> If it can''t find any suitable dependencies it will try to use backports > >>> instead, but only for the requested package. > >> > >> > >> Is that documented behaviour? > > > > It is documented in apt(-get/itude). From the man page: > > > > install pkg [ { =pkg_version_number | /target_release } ] > > > > > > Thanks for the good hints Tom and Walter. > > > > -mz > > Unfortunately, no dice. > > Dec 22 10:03:15 acasupport-web puppet-agent[32729]: > (/Stage[main]/Request_tracker4::Install/Package[request-tracker4/squeeze-backports]/ensure) > change from purged to present failed: Execution of ''/usr/bin/apt-get > -q -y -o DPkg::Options::=--force-confold install > request-tracker4/squeeze-backports'' returned 100: Reading package > lists... > Building dependency tree... > Reading state information... > Some packages could not be installed. This may mean that you have > requested an impossible situation or if you are using the unstable > distribution that some required packages have not yet been created > or been moved out of Incoming. > The following information may help to resolve the situation: > The following packages have unmet dependencies: > request-tracker4 : Depends: libdbix-searchbuilder-perl (>= 1.59) but > 1.56-1 is to be installed > Depends: liblog-dispatch-perl (>= 2.23) but 2.22-1 > is to be installed > Depends: libhtml-rewriteattributes-perl (>= 0.04) > but 0.03-1 is to be installed > Depends: libplack-perl (>= 0.9971) but 0.9941-1 is > to be installed > E: Broken packages > Dec 22 10:03:15 acasupport-web puppet-agent[32729]: > (/Stage[main]/Request_tracker4::Install/Package[rt4-db-postgresql/squeeze-backports]) > Dependency Package[request-tracker4/squeeze-backports] has failures: > true > Dec 22 10:03:15 acasupport-web puppet-agent[32729]: > (/Stage[main]/Request_tracker4::Install/Package[rt4-db-postgresql/squeeze-backports]) > Skipping because of failed dependencies > > From Martin Krafft''s Debian book: > > apt-get install package/release > apt-get install package=version > > "Both of these methods have the inherit problem that the release or > version selection only applies to the package for which has been > specified. If the package defines dependencies that can only be > satisfied from the same source, APT gives up." > > Later on Krafft reports: > > "A better way to control the source archive to be used for > installations and upgrades is to override the default (or target) > release... provide the --target-release (-t) switch for this > purpose.)" > > Thus, > > apt-get -t target install package > > is different from > > apt-get install package/target > > Back to the drawing board... > > -mz > > -- > 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. > > > > > -- > Walter Heck > > -- > follow @walterheck on twitter to see what I''m up to! > -- > Check out my new startup: Server Monitoring as a Service @ http://tribily.com > Follow @tribily on Twitter and/or ''Like'' our Facebook page at http://www.facebook.com/tribily > > > -- > 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.-- 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.