whats the total number of ps in:
q: puppet: maintaining apt sources.list im using puppet to maintain a growing pile of debian machines. these will be maintained from their initialization onwards. this means that one step will be setting the apt sources.list file and then updating it. 
there are other modules that rely on this list being up to date and will fail if apt-get update hasnt been called. what im wondering is should i introduce some sort of ordering process (using stages or similar) to ensure that the package list is updated before attempting to install apps or just assume that it will likely fail on the first run but work on subsequent runs once the list is updated?
the ethos of puppet seems to be declaring a final state rather than a process. this leads me to believe that letting the errors occur is probably the way to go.

a: you can use an exec resource with refreshonly => true that gets notified when the sources.list file changes.  and have the class containing both the file management resource and the exec resource be a require from the package resources that need them.
the way id recommend approaching this in a simpler way would be to manage the sources through the apt::source resource type in the apt module from puppet labs, which handles the update as well.

user
There are 37 "p"s in the text you provided.
assistant