It seems to me that there is not any dependency between Exec['apt_update'] and Package['uchiwa''].
Specifically, this is what I when Puppet tries to install uchiwa package before executing apt update.
Notice: /Stage[main]/Uchiwa::Install/User[uchiwa]/ensure: created
Error: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install uchiwa' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package uchiwa
Error: /Stage[main]/Uchiwa::Install/Package[uchiwa]/ensure: change from purged to latest failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install uchiwa' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package uchiwa
Notice: /Stage[main]/Uchiwa::Config/File[/etc/sensu/uchiwa.json]: Dependency Package[uchiwa] has failures: true
Warning: /Stage[main]/Uchiwa::Config/File[/etc/sensu/uchiwa.json]: Skipping because of failed dependencies
Notice: /Stage[main]/Apt::Update/Exec[apt_update]/returns: Ign:1 http://deb.debian.org/debian stretch InRelease
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”
Hi
It seems to me that there is not any dependency between Exec['apt_update'] and Package['uchiwa'']. Specifically, this is what I when Puppet tries to install
uchiwa
package before executingapt update
.More details in the official documentation of puppetlabs-apt: https://github.com/puppetlabs/puppetlabs-apt#adding-new-sources-or-ppas