Skip to content
This repository has been archived by the owner on Jan 16, 2020. It is now read-only.

Apt update before package installation #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

theosotr
Copy link

Hello

This commit fixes an ordering violation.
In particular, executing apt-update must precede package installation.
This is the console output confirming this ordering violation.

Notice: /Stage[main]/Syncthing::Install_package/Package[syncthing]/ensure: current_value purged, should be latest (noop)
Notice: Class[Syncthing::Install_package]: Would have triggered 'refresh' from 1 events
Notice: /Stage[main]/Apt/Apt::Setting[conf-update-stamp]/File[/etc/apt/apt.conf.d/15update-stamp]/ensure: current_value absent, should be file (noop)
Notice: Apt::Setting[conf-update-stamp]: Would have triggered 'refresh' from 1 events
Notice: Class[Apt::Update]: Would have triggered 'refresh' from 3 events
Notice: /Stage[main]/Apt::Update/Exec[apt_update]: Would have triggered 'refresh' from 1 events
Notice: Class[Apt::Update]: Would have triggered 'refresh' from 1 events

More details in the official documentation of puppetlabs-apt:
https://github.com/puppetlabs/puppetlabs-apt#adding-new-sources-or-ppas

If you are adding a new source and trying to install packagesfrom the new source on the same Puppet run, your package resourceshould depend on Class[’apt::update’], as well as depending on theApt::Source resource”

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant