Managing the sources.list is pretty easy but have run into a problem when using my own repository with custom packages. When trying to install a file in the same run as when adding the repository for that file I get a failure in apt. To get around this I make the desired sources.list and then run apt-get update. Then running puppetd succeeds. Is there a way to copy the sources.list, run an apt-get update before any other packages need to be installed. Should I be looking at exec with the refreshonly parameter or will it fail as well since it is in the same catalog run? puppet 0.24.4 Chris --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Set up dependencies using "require" and/or "before"/"after", etc. On Fri, Apr 18, 2008 at 4:49 PM, Chris Blumentritt <cblument@gmail.com> wrote:> > Managing the sources.list is pretty easy but have run into a problem > when using my own repository with custom packages. When trying to > install a file in the same run as when adding the repository for that > file I get a failure in apt. To get around this I make the desired > sources.list and then run apt-get update. Then running puppetd > succeeds. > > Is there a way to copy the sources.list, run an apt-get update before > any other packages need to be installed. Should I be looking at exec > with the refreshonly parameter or will it fail as well since it is in > the same catalog run? > > puppet 0.24.4 > > Chris > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I recommend using a resource default like this (outside any class for all packages): http://pastie.org/183338 -Blake On Apr 18, 2008, at 4:49 PM, Chris Blumentritt wrote:> > Managing the sources.list is pretty easy but have run into a problem > when using my own repository with custom packages. When trying to > install a file in the same run as when adding the repository for that > file I get a failure in apt. To get around this I make the desired > sources.list and then run apt-get update. Then running puppetd > succeeds. > > Is there a way to copy the sources.list, run an apt-get update before > any other packages need to be installed. Should I be looking at exec > with the refreshonly parameter or will it fail as well since it is in > the same catalog run? > > puppet 0.24.4 > > Chris > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---