On Mar 21, 2013, at 7:16 PM, Sam Morrison <sorri...@gmail.com> wrote:
> Install all sources.list, apt-keys > then: > Run an apt-get update > then: > install Packages With the Puppet apt module, apt-get update gets called after installing a new source. Or at least that's how I've managed to make it work. But it does *not* call apt-get update if there have been no changes to sources.list.d. If that's what you need, I can share my config. But if you need to call apt-get update to find new packages added to repositories already in sources.list, I think you have to find another solution. It is for this (and oh so many other reasons) that I am learning to detest Debian-based distros, but I digress. > 2. Stages > > I get into huge dependency cycles doing this because I have classes that need > apt sources that pull in other classes too, eg nagios. This may be your best solution. I create all my apt and yum entries in a stage before main, then I don't have to track which package comes from which repo. But you could just invoke apt-get update every time with an unrestricted exec. You probably want apt-get update to only update periodically or when the upstream repositories have new packages, but it doesn't seem to work that way for me… -- Brian Lalor bla...@bravo5.org -- 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 puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.