update package list before installing new packages #174
Labels
No Label
bugfix
cleanup
discussion
documentation
doing
done
feature
improvement
packaging
Stale
testing
TODO
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: ungleich-public/cdist#174
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Created by: greendeath
I faced some issues, that the package list from apt gets not updated and then the installation fails because the package can't be found.
I currently only know from apt, but we should ensure that for every cdist package type does a refresh of the package lists before installing a package.
closed
Created by: tom-ee
__package_update_index got the
--maxage <seconds>
-parameter (for apt) w/ commit4d4d76bb38
.With
--maxage 3600
theapt-get update
only runs if the last update was at least 1 hour ago.Created by: tom-ee
For the specific issue: Updating the package cache introduces
a) longer runtimes for cdist
b) increased network-traffic and
c) more dependencies on external network
Depending on the interval cdist is running this executed the impact of this varies.
CFEngine has the concept of time and thus the ability to allow things like "update the package cache if it is older than X". For apt I did a hack by adding an optional parameter
--maxage N
to __package_upate_index to reduce the impact.A pre/post stage would be great though :)
Created by: telmich
My opinion is that we need to introduce something like a "pre" and "post" stage in cdist - @asteven and I discussed this briefly before - do you have the notes, @asteven?