Yelp / puppet-uchiwa

Puppet module for installing Uchiwa
Apache License 2.0
20 stars 59 forks source link

Bugfix: Apt update before the installation of the package #93

Closed theosotr closed 4 years ago

theosotr commented 4 years ago

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 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

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”

ddelnano commented 4 years ago

@theosotr we have stopped running Uchiwa internally. While we appreciate your effort, we will not be maintaining this repo any longer.